[Xcb-commit] xcb-proto/src/extensions glx.xml,1.8,1.9

Jamey Sharp xcb-commit at lists.freedesktop.org
Fri Feb 10 11:29:41 PST 2006


Update of /cvs/xcb/xcb-proto/src/extensions
In directory gabe:/tmp/cvs-serv19793/src/extensions

Modified Files:
	glx.xml 
Log Message:
Add note regarding buggy X server implementations of GLX, and how to work
around them.


Index: glx.xml
===================================================================
RCS file: /cvs/xcb/xcb-proto/src/extensions/glx.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- glx.xml	10 May 2005 00:55:12 -0000	1.8
+++ glx.xml	10 Feb 2006 19:29:38 -0000	1.9
@@ -26,6 +26,24 @@
 authorization from the authors.
 -->
 
+<!--
+Note that on X.org servers before 6.9 (and probably others as well) the length
+field in the reply is computed incorrectly for GetFBConfigs and
+VendorPrivateWithReply vendor_code 0x10004 (GetFBConfigsSGIX). For these
+requests the reply structure begins:
+	<pad bytes="1" />
+	<field type="CARD32" name="numVisuals" />
+	<field type="CARD32" name="numProps" />
+The correct value for the length field is
+	numVisuals * numProps * 2
+but on broken servers the "* 2" was missing. A workaround that is correct for
+all implementations is to rewrite the length field on receipt on the client
+side, using the expression above.
+
+The patch that fixed this server bug in X.org CVS is here:
+	http://cvs.freedesktop.org/xorg/xserver/xorg/GL/glx/glxcmds.c?r1=1.6&r2=1.7
+-->
+
 <xcb header="glx" extension-xname="GLX" extension-name="Glx">
 	<!-- target support: 1.3 -->
 



More information about the xcb-commit mailing list