From: Tony Cheng <[email protected]>

Change-Id: Ie6e0a797be309a5a130b62d4425783d45b419a85
Signed-off-by: Tony Cheng <[email protected]>
Reviewed-by: Anthony Koo <[email protected]>
Acked-by: Harry Wentland <[email protected]>
---
 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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to