[Xcb-commit] src

Julien Danjou jdanjou at kemper.freedesktop.org
Wed May 11 01:23:28 PDT 2011


 src/sync.xml |   35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

New commits:
commit fb2af7c138f2138b065ec2da5070a9fc940af54f
Author: James Jones <jajones at nvidia.com>
Date:   Tue May 10 15:55:09 2011 -0700

    Add support for fence sync objects
    
    -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>
    Signed-off-by: Julien Danjou <julien at danjou.info>

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" />


More information about the xcb-commit mailing list