linux/drivers/gpu/drm/amd/display/dc/calcs
Nick Desaulniers 0f0727d971 drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines
arch/x86/Makefile disables SSE and SSE2 for the whole kernel.  The
AMDGPU drivers modified in this patch re-enable SSE but not SSE2.  Turn
on SSE2 to support emitting double precision floating point instructions
rather than calls to non-existent (usually available from gcc_s or
compiler_rt) floating point helper routines for Clang.

This was originally landed in:
commit 1011745073 ("drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines")
but reverted in:
commit 193392ed9f ("Revert "drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines"")
due to bugreports from GCC builds. Add guards to only do so for Clang.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=109487
Link: https://github.com/ClangBuiltLinux/linux/issues/327

Suggested-by: Sedat Dilek <sedat.dilek@gmail.com>
Suggested-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-30 23:18:33 -05:00
..
bw_fixed.c amdgpu/dc: allow inlining constant int to fixed a lot better. 2017-09-29 13:03:35 -04:00
calcs_logger.h drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00
custom_float.c drm/amd/display: get rid of 32.32 unsigned fixed point 2018-05-18 16:08:21 -05:00
dce_calcs.c drm/amd/display: add dcc programming for dual plane 2019-07-18 14:27:26 -05:00
dcn_calc_auto.c drm/amdgpu/display: fix compiler errors [-Werror,-Wparentheses-equality] 2019-02-06 13:29:19 -05:00
dcn_calc_auto.h drm/amd/display: make clk mgr soc specific 2019-05-31 10:39:29 -05:00
dcn_calc_math.c drm/amd/display: add some math functions for dcn_calc_math 2019-06-11 12:49:21 -05:00
dcn_calc_math.h drm/amd/display: add some math functions for dcn_calc_math 2019-06-11 12:49:21 -05:00
dcn_calcs.c drm/amd/display: add dcc programming for dual plane 2019-07-18 14:27:26 -05:00
Makefile drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines 2019-07-30 23:18:33 -05:00