Add the fence sync object equivalent of
XSyncAwait()

Signed-off-by: James Jones <jajo...@nvidia.com>
Reviewed-by: Aaron Plattner <aplatt...@nvidia.com>
---
 syncproto.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/syncproto.h b/syncproto.h
index 7e0a568..1453e44 100644
--- a/syncproto.h
+++ b/syncproto.h
@@ -72,6 +72,7 @@ PERFORMANCE OF THIS SOFTWARE.
 #define X_SyncResetFence              16
 #define X_SyncDestroyFence            17
 #define X_SyncQueryFence              18
+#define X_SyncAwaitFence              19
 
 /* cover up types from sync.h to make sure they're the right size for
  * protocol packaging.  These will be undef'ed after all the protocol
@@ -402,6 +403,17 @@ typedef struct _xSyncQueryFenceReq {
 } xSyncQueryFenceReq;
 #define sz_xSyncQueryFenceReq          8
 
+/*
+ * Wait for any of a list of fence sync objects
+ * to reach the "triggered" state.
+ */
+typedef struct _xSyncAwaitFenceReq {
+    CARD8      reqType;
+    CARD8      syncReqType;
+    CARD16     length B16;
+} xSyncAwaitFenceReq;
+#define sz_xSyncAwaitFenceReq          4
+
 typedef struct {
     BYTE       type;
     CARD8      unused;
-- 
1.7.1

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to