From: Eric Yang Date: Fri, 3 Nov 2017 20:21:37 +0000 (-0400) Subject: drm/amd/display: always call set output tf X-Git-Tag: v4.16-rc1~31^2~33^2~154 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=35b71a3f6e5f81fe494e0ed8e82deb640ecfc6ec;p=uclinux-h8%2Flinux.git drm/amd/display: always call set output tf Temporary solution to fix gamma adjustment not working. Signed-off-by: Eric Yang Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- 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) {