]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd/display: enable option to disable HDR related updates.
authorTony Cheng <tony.cheng@amd.com>
Fri, 23 Dec 2016 16:08:43 +0000 (11:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:07:58 +0000 (17:07 -0400)
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>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 12620df7056dfd74f9ca6781344251b4faabf815..69819d8345432bb5bb89db14a41828ee6953ed29 100644 (file)
@@ -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);