Skip to content

Commit 52bb214

Browse files
Hugo Hualexdeucher
authored andcommitted
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>
1 parent 29956d0 commit 52bb214

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,7 @@ static void dcn20_update_dchubp_dpp(
15651565
/* Any updates are handled in dc interface, just need
15661566
* to apply existing for plane enable / opp change */
15671567
if (pipe_ctx->update_flags.bits.enable || pipe_ctx->update_flags.bits.opp_changed
1568+
|| pipe_ctx->update_flags.bits.plane_changed
15681569
|| pipe_ctx->stream->update_flags.bits.gamut_remap
15691570
|| pipe_ctx->stream->update_flags.bits.out_csc) {
15701571
/* dpp/cm gamut remap*/

0 commit comments

Comments
 (0)