summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTony Cheng <tony.cheng@amd.com>2017-01-23 17:51:17 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:12:15 -0400
commit954815153b4b1213237d389be15d5448f67154ff (patch)
tree5b71f57d04a956575d2205fffe2efccbf51e6e36 /drivers
parented1519403227490d517c2d59755d68d3c31afa12 (diff)
downloadlinux-954815153b4b1213237d389be15d5448f67154ff.tar.bz2
drm/amd/display: enable color gamma programming
Signed-off-by: Tony Cheng <tony.cheng@amd.com> Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c6
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 01d614781def..c627b907528c 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 c3aca8d44d4c..f485f70bf3ef 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 {