]> git.baikalelectronics.ru Git - 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)
commitefd99a4c2379c615573b3981551e75dad8533904
tree2ccd3026e8935e4c86387900e90446f9312972e1
parent2fea3dfe45b526002e828eba0d76adfd94f632fa
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