Browse Source

drm/amd/display: enable option to disable HDR related updates.

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Tony Cheng 8 years ago
parent
commit
649aa6f4fc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/gpu/drm/amd/display/dc/core/dc.c

+ 3 - 0
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) {
 			if (updates[i].hdr_static_metadata) {
 				resource_build_info_frame(pipe_ctx);
 				resource_build_info_frame(pipe_ctx);
 				core_dc->hwss.update_info_frame(pipe_ctx);
 				core_dc->hwss.update_info_frame(pipe_ctx);