summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Jones <jajones@nvidia.com>2010-02-24 15:57:29 -0800
committerJames Jones <jajones@nvidia.com>2010-12-03 16:50:41 -0800
commit6e696a0a4c9a115c7f080c2bdee3d8afc16b134f (patch)
treea4f4874e3c3e6116296c6aa87a6fc6ba4557499e
parent220b824f20dc3dd0fd6eae6e2896fb63aefbf11a (diff)
Add protocol for XSyncAwaitFence()
Add the fence sync object equivalent of XSyncAwait() Signed-off-by: James Jones <jajones@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--syncproto.h12
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;