]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amd/display: update gamut remap if plane has changed
authorHugo Hu <hugo.hu@amd.com>
Thu, 1 Sep 2022 02:08:35 +0000 (10:08 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:12:09 +0000 (15:12 +0100)
commitbdc288916b6833042aaac8ea21038740b981889a
tree2643b09f0f4a6645288c7328b6b912c95f63cdd5
parentbc02c5b7cfece454a66df609b8d221c497280c4c
drm/amd/display: update gamut remap if plane has changed

BugLink: https://bugs.launchpad.net/bugs/1995637
[ Upstream commit 52bb21499cf54fa65b56d97cd0d68579c90207dd ]

[Why]
The desktop plane and full-screen game plane may have different
gamut remap coefficients, if switching between desktop and
full-screen game without updating the gamut remap will cause
incorrect color.

[How]
Update gamut remap if planes change.

Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Hugo Hu <hugo.hu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c