drm/amd/display: fix BT.2020 YCbCr output CSC matrices for DCE
authorNathan Lucas <nlucasgit@gmail.com>
Sun, 2 Aug 2026 14:35:24 +0000 (08:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 13:43:19 +0000 (09:43 -0400)
commit14c8726b79d19934d6eb6d35c612e3f7204af2c6
tree85fbc31758ba5658d043d9c2f2904f52805d2258
parent3b906e1dc7e3c9ff9f7940f6828b367a6a9ec73c
drm/amd/display: fix BT.2020 YCbCr output CSC matrices for DCE

The commit cited by the Fixes tag added separate limited and full-range
BT.2020 YCbCr entries to the DCE output CSC tables, but populated both
entries with the same matrix copied from the common DC table. That
matrix combined full-range scaling with limited-range luma offset and was
incorrect for both limited and full-range output.

Replace the coefficients in both entries in the DCE paths with those from
the new COLOR_SPACE_YCBCR2020_LIMITED_TYPE
and COLOR_SPACE_YCBCR2020_FULL_TYPE entries in the preceding commit
("drm/amd/display: fix BT.2020 YCbCr limited output CSC matrix").

Fixes: 51e6668ab4ba ("drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs")
Assisted-by: OpenAI-Codex:GPT-5.6-Sol
Tested-by: Igor Paunovic <royalnet026@gmail.com>
Tested-by: Satyajit Roy <sroy14@alum.utk.edu>
Signed-off-by: Nathan Lucas <nlucasgit@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c