Commit a5eeb70d authored by Rodrigo Siqueira's avatar Rodrigo Siqueira Committed by Alex Deucher
Browse files

drm/amd/display: Add SubVP control lock

parent 48e03843
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -3201,15 +3201,19 @@ static void commit_planes_for_stream(struct dc *dc,

	}

#ifdef CONFIG_DRM_AMD_DC_DCN
		if (update_type != UPDATE_TYPE_FAST)
			if (dc->hwss.commit_subvp_config)
				dc->hwss.commit_subvp_config(dc, context);
#endif
		if (should_lock_all_pipes && dc->hwss.interdependent_update_lock)

		if (should_lock_all_pipes && dc->hwss.interdependent_update_lock) {
			dc->hwss.interdependent_update_lock(dc, context, false);
		else
			if (dc->hwss.subvp_pipe_control_lock)
				dc->hwss.subvp_pipe_control_lock(dc, context, false, should_lock_all_pipes, NULL, subvp_prev_use);
		} else {
			dc->hwss.pipe_control_lock(dc, top_pipe_to_program, false);
			if (dc->hwss.subvp_pipe_control_lock)
				dc->hwss.subvp_pipe_control_lock(dc, context, false, should_lock_all_pipes, top_pipe_to_program, subvp_prev_use);
		}

	if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
		if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {