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

Commit d10bc83d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 7b34682e b9e9fc0e
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;