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

Commit 4b0b9649 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Narendra Muppalla
Browse files

drm/msm/sde: Enable dirty bits for const alpha change



Enable dirty plane and dirty rects bits in case of
const alpha change in planes. If not, corruption might
be observed in this case.

Change-Id: I82e1786fabbca9be2cb6e1eb1aa270a45e257b68
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: default avatarNarendra Muppalla <NarendraM@codeaurora.org>
parent 87ef03a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3253,7 +3253,8 @@ static void _sde_plane_sspp_atomic_check_mode_changed(struct sde_plane *psde,

	if (!fb || !old_fb) {
		SDE_DEBUG_PLANE(psde, "can't compare fb handles\n");
	} else if (fb->format->format != old_fb->format->format) {
	} else if ((fb->format->format != old_fb->format->format) ||
			pstate->const_alpha_en != old_pstate->const_alpha_en) {
		SDE_DEBUG_PLANE(psde, "format change\n");
		pstate->dirty |= SDE_PLANE_DIRTY_FORMAT | SDE_PLANE_DIRTY_RECTS;
	} else {