summaryrefslogtreecommitdiff
path: root/lib/sw_sync.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-01-03 14:57:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-01-04 11:43:41 +0000
commita3f0d75d19aa252d3896af4763d6a9a5172f8814 (patch)
tree7a99b5ae1ed68e9d813bae33aa6ed61a867c2b73 /lib/sw_sync.h
parent31811f4b6c5a95de82e47ddf1f37739c3b2cfc58 (diff)
igt/gem_exec_fence: Check sync_file->status after the fence is signaled
After the fence is signaled, the status feed reports whether or not the request completed successfully. We set this to -EIO if a hang was detected. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/sw_sync.h')
-rw-r--r--lib/sw_sync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sw_sync.h b/lib/sw_sync.h
index 82268908..571fe6a1 100644
--- a/lib/sw_sync.h
+++ b/lib/sw_sync.h
@@ -41,8 +41,11 @@ int sw_sync_timeline_create_fence(int timeline, uint32_t seqno);
int sync_fence_merge(int fence1, int fence2);
int sync_fence_wait(int fence, int timeout);
+int sync_fence_status(int fence);
int sync_fence_count(int fence);
int sync_fence_count_status(int fence, int status);
+#define SYNC_FENCE_OK 1
+
#endif