mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user