linux/drivers/gpu/drm/amd/display/dc/dml
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
..
dcn20 drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
dc_features.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
display_mode_enums.h drm/amd/display: Fix LB BPP and Cursor width 2019-06-22 09:34:12 -05:00
display_mode_lib.c drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
display_mode_lib.h drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
display_mode_structs.h drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
display_mode_vba.c drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
display_mode_vba.h drm/amd/display: Fix incorrect vba type 2019-06-22 09:34:13 -05:00
display_rq_dlg_helpers.c drm/amd/display: clean up dml_init_instance 2019-03-19 15:36:49 -05:00
display_rq_dlg_helpers.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
dml1_display_rq_dlg_calc.c drm/amd/display: Fix boolean expression in get_surf_rq_param 2019-01-14 15:04:50 -05:00
dml1_display_rq_dlg_calc.h drm/amd/display: dc: Remove unused display_mode_vba.c 2018-02-19 14:18:32 -05:00
dml_common_defs.c amdgpu/dc: inline dml_round_to_multiple 2017-10-21 16:53:03 -04:00
dml_common_defs.h drm/amd/display: Move DTRACE and dml_print defines 2018-03-14 15:08:45 -05:00
dml_inline_defs.h drm/amd/display: add some math functions for dcn_calc_math 2019-06-11 12:49:21 -05:00
dml_logger.h drm/amd/display: Use MACROS instead of dm_logger 2018-03-14 15:08:45 -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