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

Commit b9ed6bdf authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

drm/msm/sde: fix dim_layer stage validation against planes



Currently in atomic_check, dim_layer stages are checked against
pipe stages without accounting for STAGE_0 offset. Add the offset
for proper validation.

Change-Id: Id867d3cc64871dfb7e7404dda263319a824d85b3
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 1a395d00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2759,7 +2759,8 @@ static int sde_crtc_atomic_check(struct drm_crtc *crtc,

		/* check dim layer stage with every plane */
		for (i = 0; i < cstate->num_dim_layers; i++) {
			if (pstates[cnt].stage == cstate->dim_layer[i].stage) {
			if (cstate->dim_layer[i].stage
					== (pstates[cnt].stage + SDE_STAGE_0)) {
				SDE_ERROR(
					"plane:%d/dim_layer:%i-same stage:%d\n",
					plane->base.id, i,