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

Commit 5c4f6bfa authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: avoid alpha fast clear on z_stage 0



Avoid alpha fast clear enable on z_stage 0 because
some client may stage non-opaque layer on this stage
with fast clear UBWC data on RGBA plane.

Change-Id: Ida5747401c5855875ed32c4b75163cd8b872dbbe
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 2467fe92
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3569,7 +3569,8 @@ static int sde_plane_sspp_atomic_check(struct drm_plane *plane,

	pstate->const_alpha_en = fmt->alpha_enable &&
		(SDE_DRM_BLEND_OP_OPAQUE !=
		 sde_plane_get_property(pstate, PLANE_PROP_BLEND_OP));
		 sde_plane_get_property(pstate, PLANE_PROP_BLEND_OP)) &&
		(pstate->stage != SDE_STAGE_0);

modeset_update:
	if (!ret)