aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_drv.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-05-08 18:27:14 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-02 03:57:04 -0400
commitdff6c24698a4d05d9a90de97612ec520c6fa8bd8 (patch)
tree4ac7bb52652f0ad314f626dae44c837afe709c3c /drivers/gpu/drm/omapdrm/omap_drv.c
parentd980278bd8fc5b4054d4a7593620ad3ec6e1104a (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index e2e935813cc4..932e96b75528 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -178,8 +178,10 @@ cleanup:
178static int omap_modeset_init_properties(struct drm_device *dev) 178static int omap_modeset_init_properties(struct drm_device *dev)
179{ 179{
180 struct omap_drm_private *priv = dev->dev_private; 180 struct omap_drm_private *priv = dev->dev_private;
181 unsigned int num_planes = priv->dispc_ops->get_num_ovls();
181 182
182 priv->zorder_prop = drm_property_create_range(dev, 0, "zorder", 0, 3); 183 priv->zorder_prop = drm_property_create_range(dev, 0, "zorder", 0,
184 num_planes - 1);
183 if (!priv->zorder_prop) 185 if (!priv->zorder_prop)
184 return -ENOMEM; 186 return -ENOMEM;
185 187