From 74a61f46f3e1ec4cc6c0044358746ce573fc175b Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Fri, 18 Sep 2026 16:37:39 -0400 Subject: [PATCH] drm/amd/display: enable shaper when programming 3DLUT 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 Signed-off-by: Harry Wentland Signed-off-by: Roman Li Tested-by: Dan Wheeler --- 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 d55dc06167a8b..5fdb2d2e5273c 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 @@ -1837,6 +1837,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; -- GitLab