linux/drivers/gpu/drm/amd/display/dc/basics
Clay King 1c5e6cd829 drm/amd/display: adjust floating point format for gamut remap when needed
[Why]
The MPCCs different gamut remap matrices allow for S2D13 and S3D12 floating
point formats, but only S2D13 is used. There may be cases where more
integer bits are required.

[How]
Switch to S3D12 if any entries in the remap matrix cannot fit in S2D13.
Otherwise, prefer the extra precision of S2D13. Communicate the max value
that hw can support to dm via dc color caps.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Clay King <clayking@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-07-28 19:17:31 -04:00
..
bw_fixed.c drm/amd/display: Move bw_fixed from DML folder 2023-10-09 16:48:37 -04:00
calcs_logger.h drm/amd/display: Move dce_calcs from DML folder 2023-10-09 16:48:22 -04:00
conversion.c drm/amd/display: adjust floating point format for gamut remap when needed 2026-07-28 19:17:31 -04:00
conversion.h drm/amd/display: adjust floating point format for gamut remap when needed 2026-07-28 19:17:31 -04:00
custom_float.c drm/amd/display: Fix implicit narrowing conversion warnings 2026-04-17 15:41:15 -04:00
dc_common.c drm/amd/display: Fix BT2020 YCbCr limited/full range input 2025-02-19 15:14:10 -05:00
dc_common.h Revert "drm/amd/display: Unblank hubp based on plane visibility" 2021-02-18 16:43:10 -05:00
dce_calcs.c drm/amd/display: Fix type mismatches using guards and explicit casts 2026-05-05 09:56:52 -04:00
fixpt31_32.c drm/amd/display: Fixed Silence complier warnings in dc 2026-03-30 15:12:15 -04:00
logger.h drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
Makefile drm/amd/display: Move bw_fixed from DML folder 2023-10-09 16:48:37 -04:00
vector.c drm/amd/display: Use krealloc_array() in dal_vector_reserve() 2026-06-03 13:35:57 -04:00