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

Commit f7f336ea authored by Jayant Shekhar's avatar Jayant Shekhar
Browse files

drm/msm/sde: Fix source split atomic check



Source split atomic check should be performed if the
pipes layout index is same else avoid the error check.

Change-Id: I5fdf57e400e098d4ff0060fce3e2a263b85a46b5
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 0e4627b5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4838,12 +4838,21 @@ static int sde_crtc_atomic_check(struct drm_crtc *crtc,
		struct sde_rect left_rect, right_rect;
		int32_t left_pid, right_pid;
		int32_t stage;
		int32_t left_layout, right_layout;

		prv_pstate = &pstates[i - 1];
		cur_pstate = &pstates[i];
		if (prv_pstate->stage != cur_pstate->stage)
			continue;

		left_layout = sde_plane_get_property(prv_pstate->sde_pstate,
				PLANE_PROP_LAYOUT);
		right_layout = sde_plane_get_property(cur_pstate->sde_pstate,
				PLANE_PROP_LAYOUT);

		if (left_layout != right_layout)
			continue;

		stage = cur_pstate->stage;

		left_pid = prv_pstate->sde_pstate->base.plane->base.id;