[PATCH xextproto 4/4] Add protocol for XSyncAwaitFence()

James Jones jajones at nvidia.com
Tue Sep 21 16:30:30 PDT 2010


Add the fence sync object equivalent of
XSyncAwait()

Signed-off-by: James Jones <jajones at nvidia.com>
Reviewed-by: Aaron Plattner <aplattner at 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



More information about the xorg-devel mailing list