xf86drm: add drmSyncobjEventfd
This is a wrapper for DRM_IOCTL_SYNCOBJ_EVENTFD. Signed-off-by: Simon Ser <contact@emersion.fr>main
parent
431becd4e0
commit
c6013245ce
|
@ -187,6 +187,7 @@ drmSLNext
|
|||
drmSwitchToContext
|
||||
drmSyncobjCreate
|
||||
drmSyncobjDestroy
|
||||
drmSyncobjEventfd
|
||||
drmSyncobjExportSyncFile
|
||||
drmSyncobjFDToHandle
|
||||
drmSyncobjHandleToFD
|
||||
|
|
14
xf86drm.c
14
xf86drm.c
|
@ -5102,6 +5102,20 @@ drm_public int drmSyncobjTransfer(int fd,
|
|||
return ret;
|
||||
}
|
||||
|
||||
drm_public int drmSyncobjEventfd(int fd, uint32_t handle, uint64_t point, int ev_fd,
|
||||
uint32_t flags)
|
||||
{
|
||||
struct drm_syncobj_eventfd args;
|
||||
|
||||
memclear(args);
|
||||
args.handle = handle;
|
||||
args.point = point;
|
||||
args.fd = ev_fd;
|
||||
args.flags = flags;
|
||||
|
||||
return drmIoctl(fd, DRM_IOCTL_SYNCOBJ_EVENTFD, &args);
|
||||
}
|
||||
|
||||
static char *
|
||||
drmGetFormatModifierFromSimpleTokens(uint64_t modifier)
|
||||
{
|
||||
|
|
|
@ -947,6 +947,8 @@ extern int drmSyncobjTransfer(int fd,
|
|||
uint32_t dst_handle, uint64_t dst_point,
|
||||
uint32_t src_handle, uint64_t src_point,
|
||||
uint32_t flags);
|
||||
extern int drmSyncobjEventfd(int fd, uint32_t handle, uint64_t point, int ev_fd,
|
||||
uint32_t flags);
|
||||
|
||||
extern char *
|
||||
drmGetFormatModifierVendor(uint64_t modifier);
|
||||
|
|
Loading…
Reference in New Issue