diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2732-drm-amd-display-always-call-set-output-tf.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2732-drm-amd-display-always-call-set-output-tf.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2732-drm-amd-display-always-call-set-output-tf.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2732-drm-amd-display-always-call-set-output-tf.patch new file mode 100644 index 00000000..3656bd43 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2732-drm-amd-display-always-call-set-output-tf.patch @@ -0,0 +1,39 @@ +From 7be72b949973ae23e2c39a50ed503d192803b442 Mon Sep 17 00:00:00 2001 +From: Eric Yang <Eric.Yang2@amd.com> +Date: Fri, 3 Nov 2017 16:21:37 -0400 +Subject: [PATCH 2732/4131] 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> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +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 13483ee..58aaa9d 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) { +-- +2.7.4 + |