Skip to content

Commit 3efcaf7

Browse files
Nicholas Kazlauskasalexdeucher
authored andcommitted
drm/amd/display: Program viewport when source pos changes for DCN20 hw seq
[Why] For medium updates that change nothing but the source rect position the viewport doesn't change on DCN20. We're missing the check for the position update bit that was there in the DCN10 hardware sequencer. [How] Check the position bit along with the scaling bit like we were doing with DCN20. We shouldn't actually hit a case where context != current_state in our programming/commit model but guard against it anyway since it was guarded for the other bits. Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: Zhan Liu <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 56b922c commit 3efcaf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ static void dcn20_update_dchubp_dpp(
13731373
}
13741374

13751375
if (pipe_ctx->update_flags.bits.viewport ||
1376+
(context == dc->current_state && plane_state->update_flags.bits.position_change) ||
13761377
(context == dc->current_state && plane_state->update_flags.bits.scaling_change) ||
13771378
(context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) {
13781379

0 commit comments

Comments
 (0)