drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs
authorLeorize <leorize+oss@disroot.org>
Thu, 28 May 2026 06:58:54 +0000 (23:58 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:31:32 +0000 (13:31 -0400)
commit51e6668ab4baf55b082c376318d51ef965757196
treefd8e855dc3b9ac1d7befbe327f9b302ee69f3969
parent7d5668d634667d961e264409a43eefff812f8570
drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs

DCE-based hardware does not have the CSC matrices for BT.2020, which
causes the driver to fallback to the GPU built-in matrices. This does
not appear to cause any issues for RGB sinks, but causes major color
artifacts for YCbCr ones (e.g. black becomes green).

This commit adds the missing CSC matrices (taken from DC common) to DCE
CSC tables, resolving the issue.

Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/3358
Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5333
Assisted-by: oh-my-pi:GPT-5.5
Signed-off-by: Leorize <leorize+oss@disroot.org>
Reviewed-by: Alex Hung <alex.hung@amd.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