Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd311d88 authored by Neil Armstrong's avatar Neil Armstrong
Browse files

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: f9a23481 ("drm/meson: Support Overlay plane for video rendering")
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: default avatarKevin Hilman <khilman@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190429075247.7946-1-narmstrong@baylibre.com
parent 7355965d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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");
+3 −0
Original line number Diff line number Diff line
@@ -371,6 +371,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;