projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2421f54
)
drm/rockchip: vop: zpos set to INT_MAX if not enabled
author
Mark Yao
<mark.yao@rock-chips.com>
Tue, 8 Aug 2017 08:46:20 +0000
(16:46 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 9 Aug 2017 01:39:27 +0000
(09:39 +0800)
Change-Id: Ia78c26f400d0cc4192cae183f83b7f06575c9332
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 8d7cba2e7b79223a54e0471fe9c2c49426410f12..813cdee9b428d3409d5dfe5be8f6d23c463f90e1 100644
(file)
--- a/
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@
-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;
}