[PATCH 1/3] staging: drm/omap: avoid multiple planes having same z-order
Rob Clark
rob.clark at linaro.org
Sun Mar 11 19:11:20 PDT 2012
From: Rob Clark <rob at ti.com>
Multiple video pipes on same output with same z-order is an undefined
behavior. Set a unique z-order value based on overlay number/id.
Signed-off-by: Rob Clark <rob at ti.com>
---
drivers/staging/omapdrm/omap_plane.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omapdrm/omap_plane.c b/drivers/staging/omapdrm/omap_plane.c
index 55ddc58..9b3bfa0 100644
--- a/drivers/staging/omapdrm/omap_plane.c
+++ b/drivers/staging/omapdrm/omap_plane.c
@@ -439,7 +439,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev,
if (priv)
omap_plane->info.zorder = 0;
else
- omap_plane->info.zorder = 1;
+ omap_plane->info.zorder = ovl->id;
update_manager(plane);
--
1.7.5.4
More information about the dri-devel
mailing list