Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d6a741b authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher
Browse files

drm/amd/display: Use pipe_control_lock instead of tg lock.

parent 7deff545
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1940,7 +1940,7 @@ static void dcn10_apply_ctx_for_surface(

	tg = top_pipe_to_program->stream_res.tg;

	tg->funcs->lock(tg);
	dcn10_pipe_control_lock(dc, top_pipe_to_program, true);

	if (num_planes == 0) {

@@ -1989,7 +1989,7 @@ static void dcn10_apply_ctx_for_surface(
	if (num_planes > 0)
		program_all_pipe_in_tree(dc, top_pipe_to_program, context);

	tg->funcs->unlock(tg);
	dcn10_pipe_control_lock(dc, top_pipe_to_program, false);

	if (num_planes == 0)
		false_optc_underflow_wa(dc, stream, tg);