summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorChunming Zhou <david1.zhou@amd.com>2019-07-24 15:55:20 +0800
committerChunming Zhou <david1.zhou@amd.com>2019-10-26 03:11:14 +0000
commit0a7ad7df1472a3002cc1baa8e9879350bc59acfa (patch)
tree3609bc96d8d2351be4ee3113483ac46ceb67f496 /xf86drm.c
parent07f671759507cccec004e23c6344b93f947a38e3 (diff)
downloadlibdrm-0a7ad7df1472a3002cc1baa8e9879350bc59acfa.tar.gz
libdrm-0a7ad7df1472a3002cc1baa8e9879350bc59acfa.tar.bz2
libdrm-0a7ad7df1472a3002cc1baa8e9879350bc59acfa.zip
libdrm: wrap new flexible syncobj query interface v2
v2: nit-picks fix Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: Christian König <Christian.Koenig@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> For the xf86drm.[ch] part : Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index b7d58659..7ae41c37 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -4252,6 +4252,21 @@ drm_public int drmSyncobjQuery(int fd, uint32_t *handles, uint64_t *points,
return 0;
}
+drm_public int drmSyncobjQuery2(int fd, uint32_t *handles, uint64_t *points,
+ uint32_t handle_count, uint32_t flags)
+{
+ struct drm_syncobj_timeline_array args;
+
+ memclear(args);
+ args.handles = (uintptr_t)handles;
+ args.points = (uintptr_t)points;
+ args.count_handles = handle_count;
+ args.flags = flags;
+
+ return drmIoctl(fd, DRM_IOCTL_SYNCOBJ_QUERY, &args);
+}
+
+
drm_public int drmSyncobjTransfer(int fd,
uint32_t dst_handle, uint64_t dst_point,
uint32_t src_handle, uint64_t src_point,