|
@@ -1321,22 +1321,22 @@ void dc_update_surfaces_for_stream(struct dc *dc,
|
|
|
|
|
|
if (pipe_ctx->surface != surface)
|
|
|
continue;
|
|
|
- /*lock all the MCPP if blnd is enable for DRR*/
|
|
|
- if ((update_type == UPDATE_TYPE_FAST &&
|
|
|
- (dc_stream->freesync_ctx.enabled == true &&
|
|
|
- surface_count != context->res_ctx.pool->pipe_count)) &&
|
|
|
- !pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) {
|
|
|
- lock_mask = PIPE_LOCK_CONTROL_MPCC_ADDR;
|
|
|
+
|
|
|
+ if (update_type == UPDATE_TYPE_FULL) {
|
|
|
+ /* only apply for top pipe */
|
|
|
+ if (!pipe_ctx->top_pipe) {
|
|
|
+ core_dc->hwss.apply_ctx_for_surface(core_dc,
|
|
|
+ surface, context);
|
|
|
+ context_timing_trace(dc, &context->res_ctx);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- if (update_type != UPDATE_TYPE_FAST &&
|
|
|
- !pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) {
|
|
|
+ if (!pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) {
|
|
|
lock_mask = PIPE_LOCK_CONTROL_GRAPHICS |
|
|
|
PIPE_LOCK_CONTROL_SCL |
|
|
|
PIPE_LOCK_CONTROL_BLENDER |
|
|
|
PIPE_LOCK_CONTROL_MODE;
|
|
|
- }
|
|
|
- if (lock_mask != 0) {
|
|
|
+
|
|
|
core_dc->hwss.pipe_control_lock(
|
|
|
core_dc,
|
|
|
pipe_ctx,
|
|
@@ -1344,15 +1344,6 @@ void dc_update_surfaces_for_stream(struct dc *dc,
|
|
|
true);
|
|
|
}
|
|
|
|
|
|
- if (update_type == UPDATE_TYPE_FULL) {
|
|
|
- /* only apply for top pipe */
|
|
|
- if (!pipe_ctx->top_pipe) {
|
|
|
- core_dc->hwss.apply_ctx_for_surface(core_dc,
|
|
|
- surface, context);
|
|
|
- context_timing_trace(dc, &context->res_ctx);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if (updates[i].flip_addr)
|
|
|
core_dc->hwss.update_plane_addr(core_dc, pipe_ctx);
|
|
|
|
|
@@ -1382,9 +1373,6 @@ void dc_update_surfaces_for_stream(struct dc *dc,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if ((update_type == UPDATE_TYPE_FAST) && lock_mask == 0)
|
|
|
- return;
|
|
|
-
|
|
|
for (i = context->res_ctx.pool->pipe_count - 1; i >= 0; i--) {
|
|
|
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
|
|
|
|