staging: drm/omap: avoid multiple planes having same z-order
authorRob Clark <rob@ti.com>
Mon, 12 Mar 2012 02:11:20 +0000 (21:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Mar 2012 22:44:44 +0000 (15:44 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_plane.c

index 55ddc58..9b3bfa0 100644 (file)
@@ -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);