summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Hu <hugo.hu@amd.com>2022-09-01 10:08:35 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-09-19 15:13:16 -0400
commit441595baa55ac7b60fc9a344228faafa275f3354 (patch)
treec7d6d1049b393eb12d296561858e75b41cffa353
parenteccff6cdde6f47dcd88fca8c638e0d651f0e09f8 (diff)
downloadlinux-stable-441595baa55ac7b60fc9a344228faafa275f3354.tar.gz
linux-stable-441595baa55ac7b60fc9a344228faafa275f3354.tar.bz2
linux-stable-441595baa55ac7b60fc9a344228faafa275f3354.zip
drm/amd/display: update gamut remap if plane has changed
[Why] The desktop plane and full-screen game plane may have different gamut remap coefficients, if switching between desktop and full-screen game without updating the gamut remap will cause incorrect color. [How] Update gamut remap if planes change. Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Hugo Hu <hugo.hu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
index ab56f14d6247..e1d271fe9e64 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
@@ -1573,6 +1573,7 @@ static void dcn20_update_dchubp_dpp(
/* Any updates are handled in dc interface, just need
* to apply existing for plane enable / opp change */
if (pipe_ctx->update_flags.bits.enable || pipe_ctx->update_flags.bits.opp_changed
+ || pipe_ctx->update_flags.bits.plane_changed
|| pipe_ctx->stream->update_flags.bits.gamut_remap
|| pipe_ctx->stream->update_flags.bits.out_csc) {
/* dpp/cm gamut remap*/