]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Move FPU Guards From DML To DC - Part 3
authorRafal Ostrowski <rafal.ostrowski@amd.com>
Mon, 23 Feb 2026 05:13:32 +0000 (06:13 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 19:08:45 +0000 (15:08 -0400)
commit32c1c35b6d8bd8b7ea9ab3d1454b56b605f17dd1
tree5a38c3cff5116c11e72dbbb27332dfa28bc4a14d
parent4bb2f0721ed8a2a70f864b9358bd6cd4d92199b3
drm/amd/display: Move FPU Guards From DML To DC - Part 3

[Why]
FPU guards (DC_FP_START/DC_FP_END) are required to wrap around code that
can manipulates floats. To do this properly, the FPU guards must be used
in a file that is not compiled as a FPU unit. If the guards are used in
a file that is a FPU unit, other sections in the file that aren't guarded
may be end up being compiled to use FPU operations.

[How]
Added DC_FP_START and DC_FP_END to DC functions that call DML functions
using FPU.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Rafal Ostrowski <rafal.ostrowski@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/Makefile
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper_fpu.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper_fpu.h
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.c