]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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 18:42:38 +0000 (14:42 -0400)
commit6590fe323ce2807f5d9454e7fccf3fab875d4352
tree88ca5818cf8ccb471b7216a2f82c5ffe11bd1daf
parente43ffb69e0438cddd72aaa30898b4dc446f664f8
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>
(cherry picked from commit 51e6668ab4baf55b082c376318d51ef965757196)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c