diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2020-07-08 16:20:12 +0300 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2020-08-05 14:01:19 +0300 |
commit | 28c1e6980d6e200d6c12c33cbadefcaea7765d95 (patch) | |
tree | 2ac6e6ff38c6db920ab3f258bf6b4affe0f5890e /lib/igt_syncobj.h | |
parent | 1810f3687cc56d90b473e408f1ac3a307eb3f251 (diff) |
igt: add timeline test cases
v2: adapt to new transfer ioctl
v3: Drop useless uint64_t casts (Lionel)
Fix timeline query prototypes (Lionel)
Test multi wait with timeline & binary syncobjs (Lionel)
v4: Switch from drmIoctl to igt_ioctl in tests/*.c (Chris)
Clear out errno in helper functions (Chris)
v5: Fix lib comments on transfer helpers (Lionel)
v6: Add igt_describe() (Lionel)
v7: Fix reset-during-wait-for-submit (point value was left
uninitialized and we picked up a > 1 value mostly by chance).
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v6)
Diffstat (limited to 'lib/igt_syncobj.h')
-rw-r--r-- | lib/igt_syncobj.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/igt_syncobj.h b/lib/igt_syncobj.h index 51ad2364..20f1f18f 100644 --- a/lib/igt_syncobj.h +++ b/lib/igt_syncobj.h @@ -41,7 +41,26 @@ int syncobj_wait_err(int fd, uint32_t *handles, uint32_t count, bool syncobj_wait(int fd, uint32_t *handles, uint32_t count, uint64_t abs_timeout_nsec, uint32_t flags, uint32_t *first_signaled); +int __syncobj_timeline_wait_ioctl(int fd, + struct drm_syncobj_timeline_wait *args); +bool syncobj_timeline_wait(int fd, uint32_t *handles, uint64_t *points, + unsigned num_handles, + int64_t timeout_nsec, unsigned flags, + uint32_t *first_signaled); +int syncobj_timeline_wait_err(int fd, uint32_t *handles, uint64_t *points, + unsigned num_handles, + int64_t timeout_nsec, unsigned flags); void syncobj_reset(int fd, uint32_t *handles, uint32_t count); void syncobj_signal(int fd, uint32_t *handles, uint32_t count); +void syncobj_timeline_query(int fd, uint32_t *handles, uint64_t *points, + uint32_t count); +void syncobj_binary_to_timeline(int fd, uint32_t timeline_handle, + uint64_t point, uint32_t binary_handle); +void syncobj_timeline_to_binary(int fd, uint32_t binary_handle, + uint32_t timeline_handle, + uint64_t point, + uint32_t flags); +void syncobj_timeline_signal(int fd, uint32_t *handles, uint64_t *points, + uint32_t count); #endif /* IGT_SYNCOBJ_H */ |