From: Tony Cheng Date: Mon, 23 Jan 2017 22:51:17 +0000 (-0500) Subject: drm/amd/display: enable color gamma programming X-Git-Tag: v4.19~2140^2~23^2~741 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=954815153b4b1213237d389be15d5448f67154ff;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: enable color gamma programming Signed-off-by: Tony Cheng Reviewed-by: Yongqiang Sun 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 01d6147..c627b90 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1498,9 +1498,6 @@ void dc_update_surfaces_for_stream(struct dc *dc, } } - if (dc->debug.disable_color_module) - continue; /* skip below color updates */ - if (updates[i].gamma && updates[i].gamma != surface->public.gamma_correction) { if (surface->public.gamma_correction != NULL) @@ -1579,9 +1576,6 @@ void dc_update_surfaces_for_stream(struct dc *dc, if (cur_pipe_ctx->surface == pipe_ctx->surface) is_new_pipe_surface = false; - if (dc->debug.disable_color_module) - continue; /* skip below color updates */ - if (is_new_pipe_surface || updates[i].in_transfer_func) core_dc->hwss.set_input_transfer_func( diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index c3aca8d..f485f70 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -147,7 +147,6 @@ struct dc_debug { bool disable_dfs_bypass; bool disable_clock_gate; bool disable_dmcu; - bool disable_color_module; }; struct dc {