Skip to contentSkip to conversation

drm/meson: Add zpos immutable property to planes

PATCH In review Neil Armstrong 2 participants 2 messages Apr 29, 2019 – Jun 6, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/meson: Add zpos immutable property to planes

Add immutable zpos property to primary and overlay planes to specify the current fixed zpos position.

Fixes f9a2348196d1 ("drm/meson: Support Overlay plane for video rendering")
---
 drivers/gpu/drm/meson/meson_overlay.c | 3 +++
 drivers/gpu/drm/meson/meson_plane.c   | 3 +++
 2 files changed, 6 insertions(+)
drivers/gpu/drm/meson/meson_overlay.c +3 -0
index bdbf925ff3e8..dceb3df5e652 100644
@@ -578,6 +578,9 @@ int meson_overlay_create(struct meson_drm *priv)
 
 	drm_plane_helper_add(plane, &meson_overlay_helper_funcs);
 
+	/* For now, VD Overlay plane is always on the back */
+	drm_plane_create_zpos_immutable_property(plane, 0);
+
 	priv->overlay_plane = plane;
 
 	DRM_DEBUG_DRIVER("\n");
drivers/gpu/drm/meson/meson_plane.c +3 -0
index b8f6b08a89a6..2f7f4dfce45b 100644
@@ -399,6 +399,9 @@ int meson_plane_create(struct meson_drm *priv)
 
 	drm_plane_helper_add(plane, &meson_plane_helper_funcs);
 
+	/* For now, OSD Primary plane is always on the front */
+	drm_plane_create_zpos_immutable_property(plane, 1);
+
 	priv->primary_plane = plane;
 
 	return 0;
Signature · 1 line
2.21.0