OSDN Git Service

drm/amd/display: always call set output tf
authorEric Yang <Eric.Yang2@amd.com>
Fri, 3 Nov 2017 20:21:37 +0000 (16:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:35 +0000 (12:47 -0500)
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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 73e7afb..666c6c0 100644 (file)
@@ -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) {