Commit 92a65e32 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: extended the programming sequence to VFlip as well

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 67a27705
...@@ -1316,6 +1316,9 @@ void dc_update_surfaces_for_stream(struct dc *dc, ...@@ -1316,6 +1316,9 @@ void dc_update_surfaces_for_stream(struct dc *dc,
for (j = 0; j < context->res_ctx.pool->pipe_count; j++) { for (j = 0; j < context->res_ctx.pool->pipe_count; j++) {
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
struct pipe_ctx *cur_pipe_ctx;
bool is_new_pipe_surface = true;
if (pipe_ctx->surface != surface) if (pipe_ctx->surface != surface)
continue; continue;
/*lock all the MCPP if blnd is enable for DRR*/ /*lock all the MCPP if blnd is enable for DRR*/
...@@ -1324,26 +1327,16 @@ void dc_update_surfaces_for_stream(struct dc *dc, ...@@ -1324,26 +1327,16 @@ void dc_update_surfaces_for_stream(struct dc *dc,
surface_count != context->res_ctx.pool->pipe_count)) && surface_count != context->res_ctx.pool->pipe_count)) &&
!pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) { !pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) {
lock_mask = PIPE_LOCK_CONTROL_MPCC_ADDR; lock_mask = PIPE_LOCK_CONTROL_MPCC_ADDR;
core_dc->hwss.pipe_control_lock(
core_dc,
pipe_ctx,
lock_mask,
true);
}
} }
for (j = 0; j < context->res_ctx.pool->pipe_count; j++) {
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
struct pipe_ctx *cur_pipe_ctx;
bool is_new_pipe_surface = true;
if (pipe_ctx->surface != surface)
continue;
if (update_type != UPDATE_TYPE_FAST && if (update_type != UPDATE_TYPE_FAST &&
!pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) { !pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) {
lock_mask = PIPE_LOCK_CONTROL_GRAPHICS | lock_mask = PIPE_LOCK_CONTROL_GRAPHICS |
PIPE_LOCK_CONTROL_SCL | PIPE_LOCK_CONTROL_SCL |
PIPE_LOCK_CONTROL_BLENDER | PIPE_LOCK_CONTROL_BLENDER |
PIPE_LOCK_CONTROL_MODE; PIPE_LOCK_CONTROL_MODE;
}
if (lock_mask != 0) {
core_dc->hwss.pipe_control_lock( core_dc->hwss.pipe_control_lock(
core_dc, core_dc,
pipe_ctx, pipe_ctx,
...@@ -1389,7 +1382,7 @@ void dc_update_surfaces_for_stream(struct dc *dc, ...@@ -1389,7 +1382,7 @@ void dc_update_surfaces_for_stream(struct dc *dc,
} }
} }
if (update_type == UPDATE_TYPE_FAST && (lock_mask == 0)) if ((update_type == UPDATE_TYPE_FAST) && lock_mask == 0)
return; return;
for (i = context->res_ctx.pool->pipe_count - 1; i >= 0; i--) { for (i = context->res_ctx.pool->pipe_count - 1; i >= 0; i--) {
......
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