Commit 4fd33412 authored by Aric Cyr's avatar Aric Cyr Committed by Alex Deucher

drm/amd/display: program manual trigger only for bottom most pipe

[Why]
We only want to manual trigger end-of-frame when the bottom-most
pipe is flipped to prevent overlays from ending the frame too early.

[How]
Check that the manual trigger is only firing on bottom plane.
Signed-off-by: default avatarAric Cyr <aric.cyr@amd.com>
Reviewed-by: default avatarJun Lei <Jun.Lei@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ad34ade
...@@ -1781,14 +1781,14 @@ static void commit_planes_for_stream(struct dc *dc, ...@@ -1781,14 +1781,14 @@ static void commit_planes_for_stream(struct dc *dc,
dc->hwss.pipe_control_lock(dc, top_pipe_to_program, false); dc->hwss.pipe_control_lock(dc, top_pipe_to_program, false);
} }
// Fire manual trigger // Fire manual trigger only when bottom plane is flipped
for (i = 0; i < dc->res_pool->pipe_count; i++) { for (j = 0; j < dc->res_pool->pipe_count; j++) {
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
if (pipe_ctx->top_pipe || if (pipe_ctx->bottom_pipe ||
!pipe_ctx->stream || !pipe_ctx->stream ||
pipe_ctx->stream != stream || pipe_ctx->stream != stream ||
!srf_updates[i].flip_addr) !pipe_ctx->plane_state->update_flags.bits.addr_update)
continue; continue;
if (pipe_ctx->stream_res.tg->funcs->program_manual_trigger) if (pipe_ctx->stream_res.tg->funcs->program_manual_trigger)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment