Commit 4e772ae5 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher
Browse files

drm/amd/display: blank otg before power gate front end.

parent 641106d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2298,9 +2298,11 @@ static void dcn10_apply_ctx_for_surface(
			struct pipe_ctx *old_pipe_ctx =
							&dc->current_context->res_ctx.pipe_ctx[i];

			if (old_pipe_ctx->stream_res.tg && old_pipe_ctx->stream_res.tg->inst == be_idx)
			if (old_pipe_ctx->stream_res.tg && old_pipe_ctx->stream_res.tg->inst == be_idx) {
				old_pipe_ctx->stream_res.tg->funcs->set_blank(old_pipe_ctx->stream_res.tg, true);
				dcn10_power_down_fe(dc, old_pipe_ctx->pipe_idx);
			}
		}
		return;
	}