]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: add gamut coefficient set A and B
authorJingwen Zhu <jingwen.zhu@amd.com>
Fri, 25 Feb 2022 08:55:59 +0000 (16:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:25:15 +0000 (14:25 -0400)
[Why]
Screen shake on DCN3 night light SDR BR3.

[How]
Change the logic to use double buffer reisgter on gamut settings.

Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Jingwen Zhu <jingwen.zhu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c

index 387eec6161629e236f35d93d8655dc2b70ec7f1c..87dbeca189847beeb57990e7e3b187a5b0451ad6 100644 (file)
@@ -408,6 +408,6 @@ void dpp3_cm_set_gamut_remap(
                        gamut_mode = 1;
 
                //follow dcn2 approach for now - using only coefficient set A
-               program_gamut_remap(dpp, arr_reg_val, GAMUT_REMAP_COEFF);
+               program_gamut_remap(dpp, arr_reg_val, gamut_mode);
        }
 }