From b66848eb85c2a646c852ea4644f43e1a86517245 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 11 Mar 2012 21:11:20 -0500 Subject: [PATCH] staging: drm/omap: avoid multiple planes having same z-order 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/omapdrm/omap_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/omapdrm/omap_plane.c b/drivers/staging/omapdrm/omap_plane.c index 55ddc580fe68..9b3bfa02a91c 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); -- 2.30.2