From: Harry Wentland <[email protected]>

The plane-XR30-XR30-3dlut_17_12_rgb kms_colorop test fails on DCN 4.x.
We need to make sure we set shaper_enable to enable the shaper block,
otherwise the 3DLUT block will stay inactive.

Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Roman Li <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
index eea7e7dcfa30..56d5b9cc8385 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
@@ -1836,6 +1836,7 @@ __set_dm_plane_colorop_3dlut(struct drm_plane_state 
*plane_state,
                        tf->tf = TRANSFER_FUNCTION_LINEAR;
                        tf->sdr_ref_white_level = SDR_WHITE_LEVEL_INIT_VALUE;
                        ret = __set_output_tf_32(tf, NULL, 0, false);
+                       dc_plane_state->cm.flags.bits.shaper_enable = 1;
                }
        } else {
                dc_plane_state->cm.flags.bits.lut3d_enable = 0;
-- 
2.34.1

Reply via email to