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

Commit b9e9fc0e authored by Yashwanth's avatar Yashwanth
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 7d5a603a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2637,8 +2637,13 @@ static int sde_plane_sspp_atomic_check(struct drm_plane *plane,
		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;
	}


	if (ret)
		return ret;