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

Commit 45e57a9f authored by Yashwanth's avatar Yashwanth Committed by santosh
Browse files

disp: msm: sde: add ubwc verification during plane atomic check



In targets where ubwc is not supported, atomic check
should fail and return a error value if the input format
is ubwc.

Change-Id: I21a40f510cc852e64fbcc05a5fb4848da4b4faaa
Signed-off-by: default avatarYashwanth <yvulapu@codeaurora.org>
parent 11aab5f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2621,6 +2621,10 @@ static int _sde_plane_sspp_atomic_check_helper(struct sde_plane *psde,
		SDE_ERROR_PLANE(psde, "invalid dest rect %u, %u, %ux%u\n",
				dst.x, dst.y, dst.w, dst.h);
		ret = -EINVAL;
	} else if (SDE_FORMAT_IS_UBWC(fmt) &&
		!psde->catalog->ubwc_version) {
		SDE_ERROR_PLANE(psde, "ubwc not supported\n");
		ret = -EINVAL;
	}

	return ret;