summaryrefslogtreecommitdiff
path: root/vigs/vigs.c
diff options
context:
space:
mode:
Diffstat (limited to 'vigs/vigs.c')
-rw-r--r--vigs/vigs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/vigs/vigs.c b/vigs/vigs.c
index f49d777e..0e1a4181 100644
--- a/vigs/vigs.c
+++ b/vigs/vigs.c
@@ -657,3 +657,19 @@ int vigs_drm_fence_check(struct vigs_drm_fence *fence)
return 0;
}
+
+int vigs_drm_plane_set_zpos(struct vigs_drm_device *dev,
+ uint32_t plane_id,
+ int zpos)
+{
+ struct drm_vigs_plane_set_zpos req =
+ {
+ .plane_id = plane_id,
+ .zpos = zpos
+ };
+ int ret;
+
+ ret = drmIoctl(dev->fd, DRM_IOCTL_VIGS_PLANE_SET_ZPOS, &req);
+
+ return (ret != 0) ? -errno : 0;
+}