Unverified Commit 2ba60df8 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14677 drm/amd/display: Fix null check for pipe_ctx->plane_state in dcn20_program_pipe

parents efd2b2d8 9be560f2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1733,9 +1733,9 @@ static void dcn20_program_pipe(
		dc->res_pool->hubbub->funcs->program_det_size(
			dc->res_pool->hubbub, pipe_ctx->plane_res.hubp->inst, pipe_ctx->det_buffer_size_kb);

	if (pipe_ctx->update_flags.raw ||
	    (pipe_ctx->plane_state && pipe_ctx->plane_state->update_flags.raw) ||
	    pipe_ctx->stream->update_flags.raw)
	if (pipe_ctx->plane_state && (pipe_ctx->update_flags.raw ||
	    pipe_ctx->plane_state->update_flags.raw ||
	    pipe_ctx->stream->update_flags.raw))
		dcn20_update_dchubp_dpp(dc, pipe_ctx, context);

	if (pipe_ctx->plane_state && (pipe_ctx->update_flags.bits.enable ||