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

Commit 9d9ff919 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

drm/msm/sde: fix excl_rect validation in crtc



u16 flag is passed incorrectly while populating the
plane's src rect to compare against excl_rect. Fix it
to pass the correct flag.

Change-Id: Icc8686e4fe4644b1a7d7b479af211c29bec927bd
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 13ff59f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2576,7 +2576,7 @@ static int _sde_crtc_excl_rect_overlap_check(struct plane_state pstates[],
	for (i = curr_cnt; i < cnt; i++) {
		pstate = pstates[i].drm_pstate;
		POPULATE_RECT(&dst_rect, pstate->crtc_x, pstate->crtc_y,
				pstate->crtc_w, pstate->crtc_h, true);
				pstate->crtc_w, pstate->crtc_h, false);
		sde_kms_rect_intersect(&dst_rect, excl_rect, &intersect);

		if (intersect.w == excl_rect->w && intersect.h == excl_rect->h