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

Commit 7be8c9d2 authored by Shubhashree Dhar's avatar Shubhashree Dhar
Browse files

drm/msm/sde: fix mixer width for validating plane dest roi



Fix mixer width for validating plane destination rectangle
in dual dsi/multiple mixer topology cases.

Change-Id: Ie958411d1baa3776fcda54e9d023127f2229f232
Signed-off-by: default avatarShubhashree Dhar <dhar@codeaurora.org>
parent 16b2abac
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5365,11 +5365,11 @@ static int sde_crtc_atomic_check(struct drm_crtc *crtc,

		cnt++;

		if ((pstate->crtc_h > mixer_height)
				|| (pstate->crtc_w > mixer_width)) {
		if ((pstate->crtc_h > mixer_height) ||
		 (pstate->crtc_w > (mixer_width * sde_crtc->num_mixers))) {
			SDE_ERROR("plane w/h:%x*%x more than mixer w/h:%x*%x\n",
			pstate->crtc_w, pstate->crtc_h,
					mixer_width, mixer_height);
			sde_crtc->num_mixers * mixer_width, mixer_height);
			rc = -E2BIG;
			goto end;
		}