drm: omapdrm: Add zpos property
Create a standard zpos property for every plane as an alias to the omapdrm-specific zorder property. Unlike the zorder property that has to be instantiated for both planes and CRTCs due to backward compatibility, the zpos property is only instantiated for planes. When userspace will have switched to the zpos property the zorder property will be removed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
d980278bd8
commit
dff6c24698
@@ -178,8 +178,10 @@ cleanup:
|
||||
static int omap_modeset_init_properties(struct drm_device *dev)
|
||||
{
|
||||
struct omap_drm_private *priv = dev->dev_private;
|
||||
unsigned int num_planes = priv->dispc_ops->get_num_ovls();
|
||||
|
||||
priv->zorder_prop = drm_property_create_range(dev, 0, "zorder", 0, 3);
|
||||
priv->zorder_prop = drm_property_create_range(dev, 0, "zorder", 0,
|
||||
num_planes - 1);
|
||||
if (!priv->zorder_prop)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user