Commit 27e2e207 authored by SivapiriyanKumarasamy's avatar SivapiriyanKumarasamy Committed by Alex Deucher

drm/amd/display: Program vline interrupt on FAST update

Signed-off-by: default avatarSivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1e7e86c4
...@@ -1350,6 +1350,13 @@ static void commit_planes_do_stream_update(struct dc *dc, ...@@ -1350,6 +1350,13 @@ static void commit_planes_do_stream_update(struct dc *dc,
stream_update->adjust->v_total_min, stream_update->adjust->v_total_min,
stream_update->adjust->v_total_max); 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*/ /* Full fe update*/
if (update_type == UPDATE_TYPE_FAST) if (update_type == UPDATE_TYPE_FAST)
continue; continue;
...@@ -1377,12 +1384,6 @@ static void commit_planes_do_stream_update(struct dc *dc, ...@@ -1377,12 +1384,6 @@ static void commit_planes_do_stream_update(struct dc *dc,
pipe_ctx->stream_res.abm, stream->abm_level); 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 || if (stream_update->hdr_static_metadata ||
stream_update->vrr_infopacket) { stream_update->vrr_infopacket) {
resource_build_info_frame(pipe_ctx); resource_build_info_frame(pipe_ctx);
......
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