From: Tony Cheng Date: Fri, 23 Dec 2016 16:08:43 +0000 (-0500) Subject: drm/amd/display: enable option to disable HDR related updates. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=649aa6f4fc40395153834ea78531e0cffd5ee49d;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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);