drm/meson: Add zpos immutable property to planes
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")
Signed-off-by Neil Armstrong <[email protected]>
--- 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
@@ -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
@@ -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
Quoted 5 lines · Neil Armstrong
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")Signed-off-by Neil Armstrong <[email protected]>
Reviewed-by Kevin Hilman <[email protected]>