From 99dc76b4a6d6019546d4843b23070842753a4f89 Mon Sep 17 00:00:00 2001 From: Tony Cheng Date: Fri, 23 Dec 2016 11:08:43 -0500 Subject: [PATCH 0111/4131] drm/amd/display: enable option to disable HDR related updates. Signed-off-by: Tony Cheng Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- 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 12620df..69819d8 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.7.4