drm/rockchip: vop: zpos set to INT_MAX if not enabled

Change-Id: Ia78c26f400d0cc4192cae183f83b7f06575c9332
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2017-08-08 16:46:20 +08:00
committed by Huang, Tao
parent 2421f54c77
commit b34356fc63

View File

@@ -2037,7 +2037,11 @@ static int vop_crtc_atomic_check(struct drm_crtc *crtc,
if (!pstate)
pstate = plane->state;
plane_state = to_vop_plane_state(pstate);
pzpos[cnt].zpos = plane_state->zpos;
if (!plane_state->enable)
pzpos[cnt].zpos = INT_MAX;
else
pzpos[cnt].zpos = plane_state->zpos;
pzpos[cnt++].win_id = win->win_id;
}