]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amd/display: Fix CSC remap matrix not being applied on dcn30
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 8 Jul 2020 20:30:26 +0000 (16:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jul 2020 21:41:18 +0000 (17:41 -0400)
commitc7f1daa1d62b373cdcf6817e9edb94c121c9ebd9
tree2ccd3026e8935e4c86387900e90446f9312972e1
parentc74f9322484869c10117eb068998250df3714486
drm/amd/display: Fix CSC remap matrix not being applied on dcn30

[Why]
DCN3 has two gamut remap matrices. When using CSC adjustment the CM
remap is set to bypass and MPCC remap is used. However to bypass CM
some state in the context is modified and not restored correctly
resulting in subsequent calls to disable MPCC remap as well.

[How]
Fix logic for save/restore of remap enable flag when programming MPCC
remap matrix.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c