diff mbox

[1/3] staging: drm/omap: avoid multiple planes having same z-order

Message ID 1331518282-6870-1-git-send-email-rob.clark@linaro.org
State Accepted
Commit b66848eb85c2a646c852ea4644f43e1a86517245
Headers show

Commit Message

Rob Clark March 12, 2012, 2:11 a.m. UTC
From: Rob Clark <rob@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@ti.com>
---
 drivers/staging/omapdrm/omap_plane.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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);