summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/core
diff options
context:
space:
mode:
authorTony Cheng <tony.cheng@amd.com>2016-12-23 11:08:43 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:07:58 -0400
commit649aa6f4fc40395153834ea78531e0cffd5ee49d (patch)
tree5fb6937b763562239e20152d07c9b4e6a31888d8 /drivers/gpu/drm/amd/display/dc/core
parentafed48a00c26cb6cbe2cfe72ce459dc3e13b42d4 (diff)
downloadlinux-stable-649aa6f4fc40395153834ea78531e0cffd5ee49d.tar.gz
linux-stable-649aa6f4fc40395153834ea78531e0cffd5ee49d.tar.bz2
linux-stable-649aa6f4fc40395153834ea78531e0cffd5ee49d.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c3
1 files changed, 3 insertions, 0 deletions
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);