Skip to content

Commit

Permalink
staging: drm/omap: avoid multiple planes having same z-order
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Clark authored and Greg Kroah-Hartman committed Mar 13, 2012
1 parent 4d3bfdd commit b66848e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/omapdrm/omap_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b66848e

Please sign in to comment.