Commit b66848eb authored by Rob Clark's avatar Rob Clark Committed by Greg Kroah-Hartman

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: default avatarRob Clark <rob@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d3bfdda
...@@ -439,7 +439,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, ...@@ -439,7 +439,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev,
if (priv) if (priv)
omap_plane->info.zorder = 0; omap_plane->info.zorder = 0;
else else
omap_plane->info.zorder = 1; omap_plane->info.zorder = ovl->id;
update_manager(plane); update_manager(plane);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment