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

Commit 990ff50f authored by Jayant Shekhar's avatar Jayant Shekhar
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>
parent 9731a9e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3269,7 +3269,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->pixel_format != old_fb->pixel_format) {
	} else if ((fb->pixel_format != old_fb->pixel_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 {