From: Tony Cheng <tony.cheng@xxxxxxx> Change-Id: Ie6e0a797be309a5a130b62d4425783d45b419a85 Signed-off-by: Tony Cheng <tony.cheng at amd.com> Reviewed-by: Anthony Koo <Anthony.Koo at amd.com> Acked-by: Harry Wentland <Harry.Wentland at amd.com> --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 12620df7056d..69819d834543 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1526,6 +1526,9 @@ void dc_update_surfaces_for_target(struct dc *dc, struct dc_surface_update *upda } } + if (dc->debug.disable_color_module) + continue; /* skip below color updates */ + if (updates[i].hdr_static_metadata) { resource_build_info_frame(pipe_ctx); core_dc->hwss.update_info_frame(pipe_ctx); -- 2.9.3