Commit 873bbf2d authored by Alvin Lee's avatar Alvin Lee Committed by Alex Deucher
Browse files

drm/amd/display: Clear update flags at end of flip



Clear update flags so the next flip does not have any redundant
programming (if a subsequent flip does not have a stream or plane
update, the update flags are not cleared).

Fixes: 0baae624 ("drm/amd/display: Refactor fast update to use new HWSS build sequence")
Reviewed-by: default avatarJun Lei <jun.lei@amd.com>
Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlvin Lee <alvin.lee2@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c8f29354
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3577,6 +3577,13 @@ static void commit_planes_for_stream_fast(struct dc *dc,
	hwss_execute_sequence(dc,
			context->block_sequence,
			context->block_sequence_steps);
	/* Clear update flags so next flip doesn't have redundant programming
	 * (if there's no stream update, the update flags are not cleared).
	 */
	if (top_pipe_to_program->plane_state)
		top_pipe_to_program->plane_state->update_flags.raw = 0;
	if (top_pipe_to_program->stream)
		top_pipe_to_program->stream->update_flags.raw = 0;
}

static void commit_planes_for_stream(struct dc *dc,