[Xcb] [PATCH v2] Add support for fence sync objects

James Jones jajones at nvidia.com
Tue May 10 16:02:14 PDT 2011


Thanks for the review Julien.  What's the process for getting reviewed patches committed in XCB?  I don't seem to have commit access myself, and didn't see anything mentioned on the developers guide.

-James

nvpublic

On 5/10/11 3:55 PM, "James Jones" <jajones at nvidia.com> wrote:

-Add XML to define the fence sync objects and operations
 added in XSync version 3.1.

-Bump sync module version to 3.1

Signed-off-by: James Jones <jajones at nvidia.com>
Reviewed-by: Julien Cristau <jcristau at debian.org>
---
 src/sync.xml |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/src/sync.xml b/src/sync.xml
index e309233..516d149 100644
--- a/src/sync.xml
+++ b/src/sync.xml
@@ -5,7 +5,7 @@ All Rights Reserved.  See the file COPYING in this directory
 for licensing information.
 -->
 <xcb header="sync" extension-xname="SYNC" extension-name="Sync"
-    major-version="3" minor-version="0">
+    major-version="3" minor-version="1">
   <import>xproto</import>

   <xidtype name="ALARM" />
@@ -18,6 +18,8 @@ for licensing information.

   <xidtype name="COUNTER" />

+  <xidtype name="FENCE" />
+
   <enum name="TESTTYPE">
     <item name="PositiveTransition" />
     <item name="NegativeTransition" />
@@ -173,6 +175,37 @@ for licensing information.
     </reply>
   </request>

+  <request name="CreateFence" opcode="14">
+    <field type="DRAWABLE" name="drawable" />
+    <field type="FENCE" name="fence" />
+    <field type="BOOL" name="initially_triggered" />
+  </request>
+
+  <request name="TriggerFence" opcode="15">
+    <field type="FENCE" name="fence" />
+  </request>
+
+  <request name="ResetFence" opcode="16">
+    <field type="FENCE" name="fence" />
+  </request>
+
+  <request name="DestroyFence" opcode="17">
+    <field type="FENCE" name="fence" />
+  </request>
+
+  <request name="QueryFence" opcode="18">
+    <field type="FENCE" name="fence" />
+    <reply>
+      <pad bytes="1" />
+      <field type="BOOL" name="triggered" />
+      <pad bytes="23" />
+    </reply>
+  </request>
+
+  <request name="AwaitFence" opcode="19">
+    <list type="FENCE" name="fence_list" />
+  </request>
+
   <event name="CounterNotify" number="0">
     <field type="CARD8" name="kind" />
     <field type="COUNTER" name="counter" />
--
1.7.1


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110510/793dde6b/attachment.htm>


More information about the Xcb mailing list