summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn10
diff options
context:
space:
mode:
authorEric Yang2017-11-03 21:21:37 +0100
committerAlex Deucher2017-12-06 18:47:35 +0100
commit35b71a3f6e5f81fe494e0ed8e82deb640ecfc6ec (patch)
treec9fb89344a63248a05624c1993de7d3d04adfffb /drivers/gpu/drm/amd/display/dc/dcn10
parentdrm/amd/display: Fixed not set scaler bug. (diff)
downloadkernel-qcow2-linux-35b71a3f6e5f81fe494e0ed8e82deb640ecfc6ec.tar.gz
kernel-qcow2-linux-35b71a3f6e5f81fe494e0ed8e82deb640ecfc6ec.tar.xz
kernel-qcow2-linux-35b71a3f6e5f81fe494e0ed8e82deb640ecfc6ec.zip
drm/amd/display: always call set output tf
Temporary solution to fix gamma adjustment not working. Signed-off-by: Eric Yang <Eric.Yang2@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@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/dcn10')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 73e7afb360b1..666c6c0f882a 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -2058,8 +2058,14 @@ static void program_all_pipe_in_tree(
if (cur_pipe_ctx->plane_state != pipe_ctx->plane_state) {
dc->hwss.set_input_transfer_func(pipe_ctx, pipe_ctx->plane_state);
- dc->hwss.set_output_transfer_func(pipe_ctx, pipe_ctx->stream);
}
+
+ /*
+ * TODO: This can be further optimized/cleaned up
+ * Always call this for now since it does memcmp inside before
+ * doing heavy calculation and programming
+ */
+ dc->hwss.set_output_transfer_func(pipe_ctx, pipe_ctx->stream);
}
if (dc->debug.sanity_checks) {