From: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@xxxxxxx> Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy at amd.com> Reviewed-by: Tony Cheng <Tony.Cheng at amd.com> Reviewed-by: Anthony Koo <Anthony.Koo at amd.com> Acked-by: Harry Wentland <harry.wentland at amd.com> --- drivers/gpu/drm/amd/display/dc/core/dc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index c88f6612bfb6..d7307b38c0a8 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1290,6 +1290,13 @@ static void commit_planes_do_stream_update(struct dc *dc, stream_update->adjust->v_total_min, stream_update->adjust->v_total_max); + if (stream_update->periodic_fn_vsync_delta && + pipe_ctx->stream_res.tg && + pipe_ctx->stream_res.tg->funcs->program_vline_interrupt) + pipe_ctx->stream_res.tg->funcs->program_vline_interrupt( + pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, + pipe_ctx->stream->periodic_fn_vsync_delta); + /* Full fe update*/ if (update_type == UPDATE_TYPE_FAST) continue; @@ -1317,12 +1324,6 @@ static void commit_planes_do_stream_update(struct dc *dc, pipe_ctx->stream_res.abm, stream->abm_level); } - if (stream_update->periodic_fn_vsync_delta && - pipe_ctx->stream_res.tg->funcs->program_vline_interrupt) - pipe_ctx->stream_res.tg->funcs->program_vline_interrupt( - pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, - pipe_ctx->stream->periodic_fn_vsync_delta); - if (stream_update->hdr_static_metadata || stream_update->vrr_infopacket) { resource_build_info_frame(pipe_ctx); -- 2.17.0