diff options
Diffstat (limited to 'vigs')
-rw-r--r-- | vigs/Makefile.am | 2 | ||||
-rw-r--r-- | vigs/vigs.c | 16 | ||||
-rw-r--r-- | vigs/vigs.h | 13 |
3 files changed, 30 insertions, 1 deletions
diff --git a/vigs/Makefile.am b/vigs/Makefile.am index f15ceff7..195bbf31 100644 --- a/vigs/Makefile.am +++ b/vigs/Makefile.am @@ -12,7 +12,7 @@ AM_CFLAGS = \ libdrm_vigs_la_LTLIBRARIES = libdrm_vigs.la libdrm_vigs_ladir = $(libdir) -libdrm_vigs_la_LDFLAGS = -version-number 6:0:0 -no-undefined +libdrm_vigs_la_LDFLAGS = -version-number 7:0:0 -no-undefined libdrm_vigs_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@ libdrm_vigs_la_SOURCES = vigs.c 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; +} diff --git a/vigs/vigs.h b/vigs/vigs.h index 87c6b0fa..08300904 100644 --- a/vigs/vigs.h +++ b/vigs/vigs.h @@ -231,6 +231,19 @@ int vigs_drm_fence_check(struct vigs_drm_fence *fence); * @} */ +/* + * Plane functions. + * @{ + */ + +int vigs_drm_plane_set_zpos(struct vigs_drm_device *dev, + uint32_t plane_id, + int zpos); + +/* + * @} + */ + #ifdef __cplusplus }; #endif /* __cplusplus */ |