[Xcb] [PATCH 3/3] dri2: Add proper padding before driver_name

Marcin Kościelnicki koriakin at 0x04.net
Thu May 13 14:06:00 PDT 2010


---
 src/dri2.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/dri2.xml b/src/dri2.xml
index 7fea948..dbd43f8 100644
--- a/src/dri2.xml
+++ b/src/dri2.xml
@@ -85,6 +85,20 @@ authorization from the authors.
       <list type="char" name="driver_name">
         <fieldref>driver_name_length</fieldref>
       </list>
+      <list type="void" name="alignment_pad">
+	  <op op="-">
+	      <op op="&amp;">
+		  <op op="+">
+		      <fieldref>driver_name_length</fieldref>
+		      <value> 3 </value>
+		  </op>
+		  <unop op="~">
+		      <value>3</value>
+		  </unop>
+	      </op>
+	      <fieldref>driver_name_length</fieldref>
+	  </op>
+      </list>
       <list type="char" name="device_name">
         <fieldref>device_name_length</fieldref>
       </list>
-- 
1.7.0.2



More information about the Xcb mailing list