diff options
author | Dave Airlie <airlied@redhat.com> | 2017-06-17 11:01:01 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-06-29 05:32:34 +1000 |
commit | fc4922793f1871577bb44b1d69ec3801acb23eb6 (patch) | |
tree | 065a467df0d8341e14a51c898c2708d8b0546101 /xf86drm.h | |
parent | 3832374dafb8d0b1b69d8856be28352514afab5d (diff) | |
download | drm-fc4922793f1871577bb44b1d69ec3801acb23eb6.tar.gz |
libdrm: add drm syncobj create/destroy/import/export
These ioctls are now in drm next so add the first set of libdrm APIs.
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r-- | xf86drm.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -853,6 +853,14 @@ extern int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_device extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b); +extern int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle); +extern int drmSyncobjDestroy(int fd, uint32_t handle); +extern int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd); +extern int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle); + +extern int drmSyncobjImportSyncFile(int fd, uint32_t handle, int sync_file_fd); +extern int drmSyncobjExportSyncFile(int fd, uint32_t handle, int *sync_file_fd); + #if defined(__cplusplus) } #endif |