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

Commit ffb87429 authored by Clarence Ip's avatar Clarence Ip
Browse files

drm/msm/sde: avoid checking roi symmetry if zero mixers



Avoid checking whether the mixer ROI's are the same if the
number of mixers is zero.

Change-Id: Iefb92b2fc788a73187f0cfe0023dd7c07e603357
Signed-off-by: default avatarClarence Ip <cip@codeaurora.org>
parent 172033f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -979,7 +979,7 @@ static int _sde_crtc_check_rois_centered_and_symmetric(struct drm_crtc *crtc,
	 * On certain HW, if using 2 LM, ROIs must be split evenly between the
	 * LMs and be of equal width.
	 */
	if (sde_crtc->num_mixers == 1)
	if (sde_crtc->num_mixers < 2)
		return 0;

	roi[0] = &crtc_state->lm_roi[0];