1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2005 Jeremy Kolb.
6 Permission is hereby granted, free of charge, to any person ob/Sintaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the names of the authors or their
24 institutions shall not be used in advertising or otherwise to promote the
25 sale, use or other dealings in this Software without prior written
26 authorization from the authors.
30 Note that on X.org servers before 6.9 (and probably others as well) the length
31 field in the reply is computed incorrectly for GetFBConfigs and
32 VendorPrivateWithReply vendor_code 0x10004 (GetFBConfigsSGIX). For these
33 requests the reply structure begins:
35 <field type="CARD32" name="numVisuals" />
36 <field type="CARD32" name="numProps" />
37 The correct value for the length field is
38 numVisuals * numProps * 2
39 but on broken servers the "* 2" was missing. A workaround that is correct for
40 all implementations is to rewrite the length field on receipt on the client
41 side, using the expression above.
43 The patch that fixed this server bug in X.org CVS is here:
44 http://cvs.freedesktop.org/xorg/xserver/xorg/GL/glx/glxcmds.c?r1=1.6&r2=1.7
47 <xcb header="glx" extension-xname="GLX" extension-name="Glx"
48 major-version="1" minor-version="3">
49 <!-- target support: 1.3 -->
51 <import>xproto</import>
53 <xidtype name="PIXMAP" />
54 <xidtype name="CONTEXT" />
55 <xidtype name="PBUFFER" />
56 <xidtype name="WINDOW" />
57 <xidtype name="FBCONFIG" />
59 <xidunion name="DRAWABLE">
60 <type>xproto:WINDOW</type>
62 <type>glx:PIXMAP</type>
63 <type>glx:WINDOW</type>
66 <typedef oldname="float" newname="FLOAT32" />
67 <typedef oldname="double" newname="FLOAT64" />
68 <typedef oldname="CARD32" newname="BOOL32" />
69 <typedef oldname="CARD32" newname="CONTEXT_TAG" />
72 <error name="Generic" number="-1"> <!-- FIXME: fake number -->
73 <field type="CARD32" name="bad_value" />
74 <field type="CARD16" name="minor_opcode" />
75 <field type="CARD8" name="major_opcode" />
79 <errorcopy name="BadContext" number="0" ref="Generic" />
80 <errorcopy name="BadContextState" number="1" ref="Generic" />
81 <errorcopy name="BadDrawable" number="2" ref="Generic" />
82 <errorcopy name="BadPixmap" number="3" ref="Generic" />
83 <errorcopy name="BadContextTag" number="4" ref="Generic" />
84 <errorcopy name="BadCurrentWindow" number="5" ref="Generic" />
85 <errorcopy name="BadRenderRequest" number="6" ref="Generic" />
86 <errorcopy name="BadLargeRequest" number="7" ref="Generic" />
87 <errorcopy name="UnsupportedPrivateRequest" number="8" ref="Generic" />
88 <errorcopy name="BadFBConfig" number="9" ref="Generic" />
89 <errorcopy name="BadPbuffer" number="10" ref="Generic" />
90 <errorcopy name="BadCurrentDrawable" number="11" ref="Generic" />
91 <errorcopy name="BadWindow" number="12" ref="Generic" />
92 <errorcopy name="GLXBadProfileARB" number="13" ref="Generic" />
95 <event name="PbufferClobber" number="0">
97 <field type="CARD16" name="event_type" />
98 <field type="CARD16" name="draw_type" />
99 <field type="glx:DRAWABLE" name="drawable" />
100 <field type="CARD32" name="b_mask" />
101 <field type="CARD16" name="aux_buffer" />
102 <field type="CARD16" name="x" />
103 <field type="CARD16" name="y" />
104 <field type="CARD16" name="width" />
105 <field type="CARD16" name="height" />
106 <field type="CARD16" name="count" />
110 <!-- enums for PbufferClobber event/draw type -->
112 <item name="Damaged">
124 <item name="Pbuffer">
130 <request name="Render" opcode="1" combine-adjacent="true">
131 <field type="CONTEXT_TAG" name="context_tag" />
132 <list type="BYTE" name="data" />
135 <request name="RenderLarge" opcode="2">
136 <field type="CONTEXT_TAG" name="context_tag" />
137 <field type="CARD16" name="request_num" />
138 <field type="CARD16" name="request_total" />
139 <field type="CARD32" name="data_len" />
140 <list type="BYTE" name="data">
141 <fieldref>data_len</fieldref>
145 <request name="CreateContext" opcode="3">
146 <field type="glx:CONTEXT" name="context" />
147 <field type="VISUALID" name="visual" />
148 <field type="CARD32" name="screen" />
149 <field type="glx:CONTEXT" name="share_list" />
150 <field type="BOOL" name="is_direct" />
154 <request name="DestroyContext" opcode="4">
155 <field type="glx:CONTEXT" name="context" />
158 <request name="MakeCurrent" opcode="5">
159 <field type="glx:DRAWABLE" name="drawable" />
160 <field type="glx:CONTEXT" name="context" />
161 <field type="CONTEXT_TAG" name="old_context_tag" />
164 <field type="CONTEXT_TAG" name="context_tag" />
169 <request name="IsDirect" opcode="6">
170 <field type="glx:CONTEXT" name="context" />
173 <field type="BOOL" name="is_direct" />
178 <request name="QueryVersion" opcode="7">
179 <field type="CARD32" name="major_version" />
180 <field type="CARD32" name="minor_version" />
183 <field type="CARD32" name="major_version" />
184 <field type="CARD32" name="minor_version" />
189 <request name="WaitGL" opcode="8">
190 <field type="CONTEXT_TAG" name="context_tag" />
193 <request name="WaitX" opcode="9">
194 <field type="CONTEXT_TAG" name="context_tag" />
197 <request name="CopyContext" opcode="10">
198 <field type="glx:CONTEXT" name="src" />
199 <field type="glx:CONTEXT" name="dest" />
200 <field type="CARD32" name="mask" />
201 <field type="CONTEXT_TAG" name="src_context_tag" />
204 <!-- Enum for CopyContext: mask -->
206 <item name="GL_CURRENT_BIT"><bit>0</bit></item>
207 <item name="GL_POINT_BIT"><bit>1</bit></item>
208 <item name="GL_LINE_BIT"><bit>2</bit></item>
209 <item name="GL_POLYGON_BIT"><bit>3</bit></item>
210 <item name="GL_POLYGON_STIPPLE_BIT"><bit>4</bit></item>
211 <item name="GL_PIXEL_MODE_BIT"><bit>5</bit></item>
212 <item name="GL_LIGHTING_BIT"><bit>6</bit></item>
213 <item name="GL_FOG_BIT"><bit>7</bit></item>
214 <item name="GL_DEPTH_BUFFER_BIT"><bit>8</bit></item>
215 <item name="GL_ACCUM_BUFFER_BIT"><bit>9</bit></item>
216 <item name="GL_STENCIL_BUFFER_BIT"><bit>10</bit></item>
217 <item name="GL_VIEWPORT_BIT"><bit>11</bit></item>
218 <item name="GL_TRANSFORM_BIT"><bit>12</bit></item>
219 <item name="GL_ENABLE_BIT"><bit>13</bit></item>
220 <item name="GL_COLOR_BUFFER_BIT"><bit>14</bit></item>
221 <item name="GL_HINT_BIT"><bit>15</bit></item>
222 <item name="GL_EVAL_BIT"><bit>16</bit></item>
223 <item name="GL_LIST_BIT"><bit>17</bit></item>
224 <item name="GL_TEXTURE_BIT"><bit>18</bit></item>
225 <item name="GL_SCISSOR_BIT"><bit>19</bit></item>
226 <item name="GL_ALL_ATTRIB_BITS"><value>16777215<!--0x000ffffff--></value></item>
229 <request name="SwapBuffers" opcode="11">
230 <field type="CONTEXT_TAG" name="context_tag" />
231 <field type="glx:DRAWABLE" name="drawable" />
234 <request name="UseXFont" opcode="12">
235 <field type="CONTEXT_TAG" name="context_tag" />
236 <field type="FONT" name="font" />
237 <field type="CARD32" name="first" />
238 <field type="CARD32" name="count" />
239 <field type="CARD32" name="list_base" />
242 <request name="CreateGLXPixmap" opcode="13">
243 <field type="CARD32" name="screen" />
244 <field type="VISUALID" name="visual" />
245 <field type="xproto:PIXMAP" name="pixmap" />
246 <field type="glx:PIXMAP" name="glx_pixmap" />
250 <request name="GetVisualConfigs" opcode="14">
251 <field type="CARD32" name="screen" />
254 <field type="CARD32" name="num_visuals" />
255 <field type="CARD32" name="num_properties" />
257 <list type="CARD32" name="property_list">
258 <fieldref>length</fieldref>
263 <request name="DestroyGLXPixmap" opcode="15">
264 <field type="glx:PIXMAP" name="glx_pixmap" />
268 Context tag is not in the proto, should be part of the list of bytes
269 but every VendorPrivate and VendorPrivateWithReply request uses them
270 so it is safe to put them in. That's how Mesa does it.
272 <request name="VendorPrivate" opcode="16">
273 <field type="CARD32" name="vendor_code" />
274 <field type="CONTEXT_TAG" name="context_tag" />
275 <list type="BYTE" name="data" />
278 <request name="VendorPrivateWithReply" opcode="17">
279 <field type="CARD32" name="vendor_code" />
280 <field type="CONTEXT_TAG" name="context_tag" />
281 <list type="BYTE" name="data" />
284 <field type="CARD32" name="retval" />
285 <list type="BYTE" name="data1">
288 <list type="BYTE" name="data2">
290 <fieldref>length</fieldref>
297 <request name="QueryExtensionsString" opcode="18">
298 <field type="CARD32" name="screen" />
302 <field type="CARD32" name="n" />
307 <request name="QueryServerString" opcode="19">
308 <field type="CARD32" name="screen" />
309 <field type="CARD32" name="name" />
313 <field type="CARD32" name="str_len" />
315 <list type="char" name="string">
316 <fieldref>str_len</fieldref>
321 <request name="ClientInfo" opcode="20">
322 <field type="CARD32" name="major_version" />
323 <field type="CARD32" name="minor_version" />
324 <field type="CARD32" name="str_len" />
325 <list type="char" name="string">
326 <fieldref>str_len</fieldref>
330 <!-- Start of GLX 1.3 Requests -->
332 <request name="GetFBConfigs" opcode="21">
333 <field type="CARD32" name="screen" />
336 <field type="CARD32" name="num_FB_configs" />
337 <field type="CARD32" name="num_properties" />
340 <valueparam value-mask-type="CARD32"
341 value-mask-name="value_mask"
342 value-list-name="value_list" />
344 <list type="CARD32" name="property_list">
345 <fieldref>length</fieldref>
350 <request name="CreatePixmap" opcode="22">
351 <field type="CARD32" name="screen" />
352 <field type="FBCONFIG" name="fbconfig" />
353 <field type="xproto:PIXMAP" name="pixmap" />
354 <field type="glx:PIXMAP" name="glx_pixmap" />
355 <field type="CARD32" name="num_attribs" />
356 <list type="CARD32" name="attribs">
358 <fieldref>num_attribs</fieldref>
364 <request name="DestroyPixmap" opcode="23">
365 <field type="glx:PIXMAP" name="glx_pixmap" />
368 <request name="CreateNewContext" opcode="24">
369 <field type="glx:CONTEXT" name="context" />
370 <field type="FBCONFIG" name="fbconfig" />
371 <field type="CARD32" name="screen" />
372 <field type="CARD32" name="render_type" />
373 <field type="glx:CONTEXT" name="share_list" />
374 <field type="BOOL" name="is_direct" />
378 <request name="QueryContext" opcode="25">
379 <field type="glx:CONTEXT" name="context" />
382 <field type="CARD32" name="num_attribs"/>
384 <list type="CARD32" name="attribs">
386 <fieldref>num_attribs</fieldref>
393 <request name="MakeContextCurrent" opcode="26">
394 <field type="CONTEXT_TAG" name="old_context_tag" />
395 <field type="glx:DRAWABLE" name="drawable" />
396 <field type="glx:DRAWABLE" name="read_drawable" />
397 <field type="glx:CONTEXT" name="context" />
400 <field type="CONTEXT_TAG" name="context_tag" />
405 <request name="CreatePbuffer" opcode="27">
406 <field type="CARD32" name="screen" />
407 <field type="FBCONFIG" name="fbconfig" />
408 <field type="PBUFFER" name="pbuffer" />
409 <field type="CARD32" name="num_attribs" />
410 <list type="CARD32" name="attribs">
412 <fieldref>num_attribs</fieldref>
418 <request name="DestroyPbuffer" opcode="28">
419 <field type="PBUFFER" name="pbuffer" />
422 <request name="GetDrawableAttributes" opcode="29">
423 <field type="glx:DRAWABLE" name="drawable" />
426 <field type="CARD32" name="num_attribs" />
428 <list type="CARD32" name="attribs">
430 <fieldref>num_attribs</fieldref>
437 <request name="ChangeDrawableAttributes" opcode="30">
438 <field type="glx:DRAWABLE" name="drawable" />
439 <field type="CARD32" name="num_attribs" />
440 <list type="CARD32" name="attribs">
442 <fieldref>num_attribs</fieldref>
448 <request name="CreateWindow" opcode="31">
449 <field type="CARD32" name="screen" />
450 <field type="FBCONFIG" name="fbconfig" />
451 <field type="xproto:WINDOW" name="window" />
452 <field type="glx:WINDOW" name="glx_window" />
453 <field type="CARD32" name="num_attribs" />
454 <list type="CARD32" name="attribs">
456 <fieldref>num_attribs</fieldref>
462 <request name="DeleteWindow" opcode="32">
463 <field type="glx:WINDOW" name="glxwindow" />
466 <!-- Start of GLX_ARB_create_context and GLX_ARB_create_context_profile
468 <request name="SetClientInfoARB" opcode="33">
469 <field type="CARD32" name="major_version" />
470 <field type="CARD32" name="minor_version" />
471 <field type="CARD32" name="num_versions" />
472 <field type="CARD32" name="gl_str_len" />
473 <field type="CARD32" name="glx_str_len" />
474 <list type="CARD32" name="gl_versions">
476 <fieldref>num_versions</fieldref>
480 <list type="char" name="gl_extension_string">
481 <fieldref>gl_str_len</fieldref>
483 <list type="char" name="glx_extension_string">
484 <fieldref>glx_str_len</fieldref>
488 <request name="CreateContextAttribsARB" opcode="34">
489 <field type="glx:CONTEXT" name="context" />
490 <field type="FBCONFIG" name="fbconfig" />
491 <field type="CARD32" name="screen" />
492 <field type="glx:CONTEXT" name="share_list" />
493 <field type="BOOL" name="is_direct" />
495 <field type="CARD32" name="num_attribs" />
496 <list type="CARD32" name="attribs">
498 <fieldref>num_attribs</fieldref>
504 <request name="SetClientInfo2ARB" opcode="35">
505 <field type="CARD32" name="major_version" />
506 <field type="CARD32" name="minor_version" />
507 <field type="CARD32" name="num_versions" />
508 <field type="CARD32" name="gl_str_len" />
509 <field type="CARD32" name="glx_str_len" />
510 <list type="CARD32" name="gl_versions">
512 <fieldref>num_versions</fieldref>
516 <list type="char" name="gl_extension_string">
517 <fieldref>gl_str_len</fieldref>
519 <list type="char" name="glx_extension_string">
520 <fieldref>glx_str_len</fieldref>
524 <!-- Requests for GL Non-rendering Commands (single ops) -->
526 <request name="NewList" opcode="101">
527 <field type="CONTEXT_TAG" name="context_tag" />
528 <field type="CARD32" name="list" />
529 <field type="CARD32" name="mode" />
532 <request name="EndList" opcode="102">
533 <field type="CONTEXT_TAG" name="context_tag" />
536 <request name="DeleteLists" opcode="103">
537 <field type="CONTEXT_TAG" name="context_tag" />
538 <field type="CARD32" name="list" />
539 <field type="INT32" name="range" />
542 <request name="GenLists" opcode="104">
543 <field type="CONTEXT_TAG" name="context_tag" />
544 <field type="INT32" name="range" />
547 <field type="CARD32" name="ret_val" />
551 <request name="FeedbackBuffer" opcode="105">
552 <field type="CONTEXT_TAG" name="context_tag" />
553 <field type="INT32" name="size" />
554 <field type="INT32" name="type" />
557 <request name="SelectBuffer" opcode="106">
558 <field type="CONTEXT_TAG" name="context_tag" />
559 <field type="INT32" name="size" />
560 <!-- the reply is actually returned in the data
561 of the next RenderMode request -->
565 <request name="RenderMode" opcode="107">
566 <field type="CONTEXT_TAG" name="context_tag" />
567 <field type="CARD32" name="mode" />
569 This reply is only if RM was previously feedback/selection.
570 If it was in feedback mode then data is FLOAT32.
571 If previously in render mode there is no reply.
575 <field type="CARD32" name="ret_val" />
576 <field type="CARD32" name="n" />
577 <field type="CARD32" name="new_mode" />
579 <list type="CARD32" name="data">
580 <fieldref>n</fieldref>
586 <item name="GL_RENDER"><value>7168</value></item>
587 <item name="GL_FEEDBACK"><value>7169</value></item>
588 <item name="GL_SELECT"><value>7170</value></item>
591 <request name="Finish" opcode="108">
592 <field type="CONTEXT_TAG" name="context_tag" />
598 <request name="PixelStoref" opcode="109">
599 <field type="CONTEXT_TAG" name="context_tag" />
600 <field type="CARD32" name="pname" />
601 <field type="FLOAT32" name="datum" />
604 <request name="PixelStorei" opcode="110">
605 <field type="CONTEXT_TAG" name="context_tag" />
606 <field type="CARD32" name="pname" />
607 <field type="INT32" name="datum" />
610 <request name="ReadPixels" opcode="111">
611 <field type="CONTEXT_TAG" name="context_tag" />
612 <field type="INT32" name="x" />
613 <field type="INT32" name="y" />
614 <field type="INT32" name="width" />
615 <field type="INT32" name="height" />
616 <field type="CARD32" name="format" />
617 <field type="CARD32" name="type" />
618 <field type="BOOL" name="swap_bytes" />
619 <field type="BOOL" name="lsb_first" />
623 <list type="BYTE" name="data">
625 <fieldref>length</fieldref>
633 All the Get* functions can return different stuff for replies.
634 Hopefully xcb will support multiple reply structures at some point
636 Starts on page 58/180
638 <request name="GetBooleanv" opcode="112">
639 <field type="CONTEXT_TAG" name="context_tag" />
640 <field type="INT32" name="pname" />
644 <field type="CARD32" name="n" />
645 <field type="BOOL" name="datum" />
647 <list type="BOOL" name="data">
648 <fieldref>n</fieldref>
653 <request name="GetClipPlane" opcode="113">
654 <field type="CONTEXT_TAG" name="context_tag" />
655 <field type="INT32" name="plane" />
659 <list type="FLOAT64" name="data">
661 <fieldref>length</fieldref>
668 <request name="GetDoublev" opcode="114">
669 <field type="CONTEXT_TAG" name="context_tag" />
670 <field type="CARD32" name="pname" />
674 <field type="CARD32" name="n" />
675 <field type="FLOAT64" name="datum" />
677 <list type="FLOAT64" name="data">
678 <fieldref>n</fieldref>
683 <request name="GetError" opcode="115">
684 <field type="CONTEXT_TAG" name="context_tag" />
687 <field type="INT32" name="error" />
691 <request name="GetFloatv" opcode="116">
692 <field type="CONTEXT_TAG" name="context_tag" />
693 <field type="CARD32" name="pname" />
697 <field type="CARD32" name="n" />
698 <field type="FLOAT32" name="datum" />
700 <list type="FLOAT32" name="data">
701 <fieldref>n</fieldref>
706 <request name="GetIntegerv" opcode="117">
707 <field type="CONTEXT_TAG" name="context_tag" />
708 <field type="CARD32" name="pname" />
712 <field type="CARD32" name="n" />
713 <field type="INT32" name="datum" />
715 <list type="INT32" name="data">
716 <fieldref>n</fieldref>
721 <request name="GetLightfv" opcode="118">
722 <field type="CONTEXT_TAG" name="context_tag" />
723 <field type="CARD32" name="light" />
724 <field type="CARD32" name="pname" />
728 <field type="CARD32" name="n" />
729 <field type="FLOAT32" name="datum" />
731 <list type="FLOAT32" name="data">
732 <fieldref>n</fieldref>
737 <request name="GetLightiv" opcode="119">
738 <field type="CONTEXT_TAG" name="context_tag" />
739 <field type="CARD32" name="light" />
740 <field type="CARD32" name="pname" />
744 <field type="CARD32" name="n" />
745 <field type="INT32" name="datum" />
747 <list type="INT32" name="data">
748 <fieldref>n</fieldref>
753 <request name="GetMapdv" opcode="120">
754 <field type="CONTEXT_TAG" name="context_tag" />
755 <field type="CARD32" name="target" />
756 <field type="CARD32" name="query" />
760 <field type="CARD32" name="n" />
761 <field type="FLOAT64" name="datum" />
763 <list type="FLOAT64" name="data">
764 <fieldref>n</fieldref>
769 <request name="GetMapfv" opcode="121">
770 <field type="CONTEXT_TAG" name="context_tag" />
771 <field type="CARD32" name="target" />
772 <field type="CARD32" name="query" />
776 <field type="CARD32" name="n" />
777 <field type="FLOAT32" name="datum" />
779 <list type="FLOAT32" name="data">
780 <fieldref>n</fieldref>
785 <request name="GetMapiv" opcode="122">
786 <field type="CONTEXT_TAG" name="context_tag" />
787 <field type="CARD32" name="target" />
788 <field type="CARD32" name="query" />
792 <field type="CARD32" name="n" />
793 <field type="INT32" name="datum" />
795 <list type="INT32" name="data">
796 <fieldref>n</fieldref>
801 <request name="GetMaterialfv" opcode="123">
802 <field type="CONTEXT_TAG" name="context_tag" />
803 <field type="CARD32" name="face" />
804 <field type="CARD32" name="pname" />
808 <field type="CARD32" name="n" />
809 <field type="FLOAT32" name="datum" />
811 <list type="FLOAT32" name="data">
812 <fieldref>n</fieldref>
817 <request name="GetMaterialiv" opcode="124">
818 <field type="CONTEXT_TAG" name="context_tag" />
819 <field type="CARD32" name="face" />
820 <field type="CARD32" name="pname" />
824 <field type="CARD32" name="n" />
825 <field type="INT32" name="datum" />
827 <list type="INT32" name="data">
828 <fieldref>n</fieldref>
833 <request name="GetPixelMapfv" opcode="125">
834 <field type="CONTEXT_TAG" name="context_tag" />
835 <field type="CARD32" name="map" />
839 <field type="CARD32" name="n" />
840 <field type="FLOAT32" name="datum" />
842 <list type="FLOAT32" name="data">
843 <fieldref>n</fieldref>
848 <request name="GetPixelMapuiv" opcode="126">
849 <field type="CONTEXT_TAG" name="context_tag" />
850 <field type="CARD32" name="map" />
854 <field type="CARD32" name="n" />
855 <field type="CARD32" name="datum" />
857 <list type="CARD32" name="data">
858 <fieldref>n</fieldref>
863 <request name="GetPixelMapusv" opcode="127">
864 <field type="CONTEXT_TAG" name="context_tag" />
865 <field type="CARD32" name="map" />
869 <field type="CARD32" name="n" />
870 <field type="CARD16" name="datum" />
872 <list type="CARD16" name="data">
873 <fieldref>n</fieldref>
878 <request name="GetPolygonStipple" opcode="128">
879 <field type="CONTEXT_TAG" name="context_tag" />
880 <field type="BOOL" name="lsb_first" />
884 <list type="BYTE" name="data">
886 <fieldref>length</fieldref>
894 <request name="GetString" opcode="129">
895 <field type="CONTEXT_TAG" name="context_tag" />
896 <field type="CARD32" name="name" />
900 <field type="CARD32" name="n" />
902 <list type="char" name="string">
903 <fieldref>n</fieldref>
908 <request name="GetTexEnvfv" opcode="130">
909 <field type="CONTEXT_TAG" name="context_tag" />
910 <field type="CARD32" name="target" />
911 <field type="CARD32" name="pname" />
915 <field type="CARD32" name="n" />
916 <field type="FLOAT32" name="datum" />
918 <list type="FLOAT32" name="data">
919 <fieldref>n</fieldref>
924 <request name="GetTexEnviv" opcode="131">
925 <field type="CONTEXT_TAG" name="context_tag" />
926 <field type="CARD32" name="target" />
927 <field type="CARD32" name="pname" />
931 <field type="CARD32" name="n" />
932 <field type="INT32" name="datum" />
934 <list type="INT32" name="data">
935 <fieldref>n</fieldref>
940 <request name="GetTexGendv" opcode="132">
941 <field type="CONTEXT_TAG" name="context_tag" />
942 <field type="CARD32" name="coord" />
943 <field type="CARD32" name="pname" />
947 <field type="CARD32" name="n" />
948 <field type="FLOAT64" name="datum" />
950 <list type="FLOAT64" name="data">
951 <fieldref>n</fieldref>
956 <request name="GetTexGenfv" opcode="133">
957 <field type="CONTEXT_TAG" name="context_tag" />
958 <field type="CARD32" name="coord" />
959 <field type="CARD32" name="pname" />
963 <field type="CARD32" name="n" />
964 <field type="FLOAT32" name="datum" />
966 <list type="FLOAT32" name="data">
967 <fieldref>n</fieldref>
972 <request name="GetTexGeniv" opcode="134">
973 <field type="CONTEXT_TAG" name="context_tag" />
974 <field type="CARD32" name="coord" />
975 <field type="CARD32" name="pname" />
979 <field type="CARD32" name="n" />
980 <field type="INT32" name="datum" />
982 <list type="INT32" name="data">
983 <fieldref>n</fieldref>
988 <request name="GetTexImage" opcode="135">
989 <field type="CONTEXT_TAG" name="context_tag" />
990 <field type="CARD32" name="target" />
991 <field type="INT32" name="level" />
992 <field type="CARD32" name="format" />
993 <field type="CARD32" name="type" />
994 <field type="BOOL" name="swap_bytes" />
998 <field type="INT32" name="width" />
999 <field type="INT32" name="height" />
1000 <field type="INT32" name="depth" />
1002 <list type="BYTE" name="data">
1004 <fieldref>length</fieldref>
1012 <request name="GetTexParameterfv" opcode="136">
1013 <field type="CONTEXT_TAG" name="context_tag" />
1014 <field type="CARD32" name="target" />
1015 <field type="CARD32" name="pname" />
1019 <field type="CARD32" name="n" />
1020 <field type="FLOAT32" name="datum" />
1022 <list type="FLOAT32" name="data">
1023 <fieldref>n</fieldref>
1028 <request name="GetTexParameteriv" opcode="137">
1029 <field type="CONTEXT_TAG" name="context_tag" />
1030 <field type="CARD32" name="target" />
1031 <field type="CARD32" name="pname" />
1035 <field type="CARD32" name="n" />
1036 <field type="INT32" name="datum" />
1038 <list type="INT32" name="data">
1039 <fieldref>n</fieldref>
1044 <request name="GetTexLevelParameterfv" opcode="138">
1045 <field type="CONTEXT_TAG" name="context_tag" />
1046 <field type="CARD32" name="target" />
1047 <field type="INT32" name="level" />
1048 <field type="CARD32" name="pname" />
1052 <field type="CARD32" name="n" />
1053 <field type="FLOAT32" name="datum" />
1055 <list type="FLOAT32" name="data">
1056 <fieldref>n</fieldref>
1061 <request name="GetTexLevelParameteriv" opcode="139">
1062 <field type="CONTEXT_TAG" name="context_tag" />
1063 <field type="CARD32" name="target" />
1064 <field type="INT32" name="level" />
1065 <field type="CARD32" name="pname" />
1069 <field type="CARD32" name="n" />
1070 <field type="INT32" name="datum" />
1072 <list type="INT32" name="data">
1073 <fieldref>n</fieldref>
1078 <request name="IsList" opcode="141" >
1079 <field type="CONTEXT_TAG" name="context_tag" />
1080 <field type="CARD32" name="list" />
1083 <field type="BOOL32" name="ret_val" />
1087 <request name="Flush" opcode="142">
1088 <field type="CONTEXT_TAG" name="context_tag" />
1091 <request name="AreTexturesResident" opcode="143">
1092 <field type="CONTEXT_TAG" name="context_tag" />
1093 <field type="INT32" name="n" />
1094 <list type="CARD32" name="textures">
1095 <fieldref>n</fieldref>
1099 <field type="BOOL32" name="ret_val" />
1101 <list type="BOOL" name="data">
1103 <fieldref>length</fieldref>
1110 <request name="DeleteTextures" opcode="144">
1111 <field type="CONTEXT_TAG" name="context_tag" />
1112 <field type="INT32" name="n" />
1113 <list type="CARD32" name="textures">
1114 <fieldref>n</fieldref>
1118 <request name="GenTextures" opcode="145">
1119 <field type="CONTEXT_TAG" name="context_tag" />
1120 <field type="INT32" name="n" />
1124 <list type="CARD32" name="data">
1125 <fieldref>length</fieldref>
1130 <request name="IsTexture" opcode="146">
1131 <field type="CONTEXT_TAG" name="context_tag" />
1132 <field type="CARD32" name="texture" />
1135 <field type="BOOL32" name="ret_val" />
1139 <request name="GetColorTable" opcode="147">
1140 <field type="CONTEXT_TAG" name="context_tag" />
1141 <field type="CARD32" name="target" />
1142 <field type="CARD32" name="format" />
1143 <field type="CARD32" name="type" />
1144 <field type="BOOL" name="swap_bytes" />
1148 <field type="INT32" name="width" />
1150 <list type="BYTE" name="data">
1152 <fieldref>length</fieldref>
1159 <request name="GetColorTableParameterfv" opcode="148">
1160 <field type="CONTEXT_TAG" name="context_tag" />
1161 <field type="CARD32" name="target" />
1162 <field type="CARD32" name="pname" />
1166 <field type="CARD32" name="n" />
1167 <field type="FLOAT32" name="datum" />
1169 <list type="FLOAT32" name="data">
1170 <fieldref>n</fieldref>
1175 <request name="GetColorTableParameteriv" opcode="149">
1176 <field type="CONTEXT_TAG" name="context_tag" />
1177 <field type="CARD32" name="target" />
1178 <field type="CARD32" name="pname" />
1182 <field type="CARD32" name="n" />
1183 <field type="INT32" name="datum" />
1185 <list type="INT32" name="data">
1186 <fieldref>n</fieldref>
1191 <request name="GetConvolutionFilter" opcode="150">
1192 <field type="CONTEXT_TAG" name="context_tag" />
1193 <field type="CARD32" name="target" />
1194 <field type="CARD32" name="format" />
1195 <field type="CARD32" name="type" />
1196 <field type="BOOL" name="swap_bytes" />
1200 <field type="INT32" name="width" />
1201 <field type="INT32" name="height" />
1203 <list type="BYTE" name="data">
1205 <fieldref>length</fieldref>
1213 <request name="GetConvolutionParameterfv" opcode="151">
1214 <field type="CONTEXT_TAG" name="context_tag" />
1215 <field type="CARD32" name="target" />
1216 <field type="CARD32" name="pname" />
1220 <field type="CARD32" name="n" />
1221 <field type="FLOAT32" name="datum" />
1223 <list type="FLOAT32" name="data">
1224 <fieldref>n</fieldref>
1229 <request name="GetConvolutionParameteriv" opcode="152">
1230 <field type="CONTEXT_TAG" name="context_tag" />
1231 <field type="CARD32" name="target" />
1232 <field type="CARD32" name="pname" />
1236 <field type="CARD32" name="n" />
1237 <field type="INT32" name="datum" />
1239 <list type="INT32" name="data">
1240 <fieldref>n</fieldref>
1245 <request name="GetSeparableFilter" opcode="153">
1246 <field type="CONTEXT_TAG" name="context_tag" />
1247 <field type="CARD32" name="target" />
1248 <field type="CARD32" name="format" />
1249 <field type="CARD32" name="type" />
1250 <field type="BOOL" name="swap_bytes" />
1254 <field type="INT32" name="row_w" />
1255 <field type="INT32" name="col_h" />
1257 <list type="BYTE" name="rows_and_cols">
1259 <fieldref>length</fieldref>
1266 <request name="GetHistogram" opcode="154">
1267 <field type="CONTEXT_TAG" name="context_tag" />
1268 <field type="CARD32" name="target" />
1269 <field type="CARD32" name="format" />
1270 <field type="CARD32" name="type" />
1271 <field type="BOOL" name="swap_bytes" />
1272 <field type="BOOL" name="reset" />
1276 <field type="INT32" name="width" />
1278 <list type="BYTE" name="data">
1280 <fieldref>length</fieldref>
1288 <request name="GetHistogramParameterfv" opcode="155">
1289 <field type="CONTEXT_TAG" name="context_tag" />
1290 <field type="CARD32" name="target" />
1291 <field type="CARD32" name="pname" />
1295 <field type="CARD32" name="n" />
1296 <field type="FLOAT32" name="datum" />
1298 <list type="FLOAT32" name="data">
1299 <fieldref>n</fieldref>
1304 <request name="GetHistogramParameteriv" opcode="156">
1305 <field type="CONTEXT_TAG" name="context_tag" />
1306 <field type="CARD32" name="target" />
1307 <field type="CARD32" name="pname" />
1311 <field type="CARD32" name="n" />
1312 <field type="INT32" name="datum" />
1314 <list type="INT32" name="data">
1315 <fieldref>n</fieldref>
1320 <request name="GetMinmax" opcode="157">
1321 <field type="CONTEXT_TAG" name="context_tag" />
1322 <field type="CARD32" name="target" />
1323 <field type="CARD32" name="format" />
1324 <field type="CARD32" name="type" />
1325 <field type="BOOL" name="swap_bytes" />
1326 <field type="BOOL" name="reset" />
1330 <list type="BYTE" name="data">
1332 <fieldref>length</fieldref>
1339 <request name="GetMinmaxParameterfv" opcode="158">
1340 <field type="CONTEXT_TAG" name="context_tag" />
1341 <field type="CARD32" name="target" />
1342 <field type="CARD32" name="pname" />
1346 <field type="CARD32" name="n" />
1347 <field type="FLOAT32" name="datum" />
1349 <list type="FLOAT32" name="data">
1350 <fieldref>n</fieldref>
1355 <request name="GetMinmaxParameteriv" opcode="159">
1356 <field type="CONTEXT_TAG" name="context_tag" />
1357 <field type="CARD32" name="target" />
1358 <field type="CARD32" name="pname" />
1362 <field type="CARD32" name="n" />
1363 <field type="INT32" name="datum" />
1365 <list type="INT32" name="data">
1366 <fieldref>n</fieldref>
1374 * XXX: So far only define non-rendering commands.
1375 * Only those extensions that affect the GLX wire protocol are listed.
1379 GL_ARB_texture_compression
1380 http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_compression.txt
1382 <request name="GetCompressedTexImageARB" opcode="160">
1383 <field type="CONTEXT_TAG" name="context_tag" />
1384 <field type="CARD32" name="target" />
1385 <field type="INT32" name="level" />
1389 <field type="INT32" name="size" />
1391 <list type="BYTE" name="data">
1393 <fieldref>length</fieldref>
1402 GL_ARB_occlusion_query
1403 http://oss.sgi.com/projects/ogl-sample/registry/ARB/occlusion_query.txt
1406 <request name="DeleteQueriesARB" opcode="161">
1407 <field type="CONTEXT_TAG" name="context_tag" />
1408 <field type="INT32" name="n" />
1409 <list type="CARD32" name="ids">
1410 <fieldref>n</fieldref>
1414 <request name="GenQueriesARB" opcode="162">
1415 <field type="CONTEXT_TAG" name="context_tag" />
1416 <field type="INT32" name="n" />
1420 <list type="CARD32" name="data">
1421 <fieldref>length</fieldref>
1426 <request name="IsQueryARB" opcode="163">
1427 <field type="CONTEXT_TAG" name="context_tag" />
1428 <field type="CARD32" name="id" />
1431 <field type="BOOL32" name="ret_val" />
1435 <request name="GetQueryivARB" opcode="164">
1436 <field type="CONTEXT_TAG" name="context_tag" />
1437 <field type="CARD32" name="target" />
1438 <field type="CARD32" name="pname" />
1442 <field type="CARD32" name="n" />
1443 <field type="INT32" name="datum" />
1445 <list type="INT32" name="data">
1446 <fieldref>n</fieldref>
1451 <request name="GetQueryObjectivARB" opcode="165">
1452 <field type="CONTEXT_TAG" name="context_tag" />
1453 <field type="CARD32" name="id" />
1454 <field type="CARD32" name="pname" />
1458 <field type="CARD32" name="n" />
1459 <field type="INT32" name="datum" />
1461 <list type="INT32" name="data">
1462 <fieldref>n</fieldref>
1467 <request name="GetQueryObjectuivARB" opcode="166">
1468 <field type="CONTEXT_TAG" name="context_tag" />
1469 <field type="CARD32" name="id" />
1470 <field type="CARD32" name="pname" />
1474 <field type="CARD32" name="n" />
1475 <field type="CARD32" name="datum" />
1477 <list type="CARD32" name="data">
1478 <fieldref>n</fieldref>
1484 GL_ARB_vertex_program
1485 http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_program.txt
1486 XXX: Need to write up vops
1490 GL_ARB_fragment_program
1491 http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt
1492 XXX: Need to write up vops
1496 GL_SGIS_texture_filter4
1497 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_filter4.txt
1498 XXX: Need to write up vops
1503 http://oss.sgi.com/projects/ogl-sample/registry/EXT/histogram.txt
1504 XXX: Need to write up vops
1509 http://oss.sgi.com/projects/ogl-sample/registry/EXT/convolution.txt
1510 XXX: Need to write up vops
1515 http://oss.sgi.com/projects/ogl-sample/registry/SGI/color_table.txt
1516 XXX: Need to write up vops
1520 GL_EXT_texture_object
1521 http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_object.txt
1522 XXX: Need to write up vops
1526 GL_SGIS_detail_texture
1527 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/detail_texture.txt
1528 XXX: Need to write up vops
1532 GL_SGIS_sharpen_texture
1533 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/sharpen_texture.txt
1534 XXX: Need to write up vops
1538 GL_SGI_make_current_read
1539 http://oss.sgi.com/projects/ogl-sample/registry/SGI/make_current_read.txt
1540 XXX: Need to write up vops
1544 GL_EXT_import_context
1545 http://oss.sgi.com/projects/ogl-sample/registry/EXT/import_context.txt
1546 XXX: Need to write up vops
1551 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/fbconfig.txt
1552 XXX: Need to write up vops
1557 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/pbuffer.txt
1558 XXX: Need to write up vops
1562 GL_EXT_pixel_transform
1563 http://oss.sgi.com/projects/ogl-sample/registry/EXT/pixel_transform.txt
1564 XXX: Need to write up vops
1568 GL_NV_register_combiners
1569 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners.txt
1570 XXX: Need to write up vops
1575 http://oss.sgi.com/projects/ogl-sample/registry/NV/fence.txt
1576 XXX: Need to write up vops
1580 GL_NV_register_combiners2
1581 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners2.txt
1582 XXX: Need to write up vops
1586 GL_NV_vertex_program
1587 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1588 XXX: Need to write up vops
1592 GL_NV_vertex_program
1593 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1594 XXX: Need to write up vops
1598 GL_NV_occlusion_query
1599 http://oss.sgi.com/projects/ogl-sample/registry/NV/occlusion_query.txt
1600 XXX: Need to write up vops
1604 GL_NV_fragment_program
1605 http://oss.sgi.com/projects/ogl-sample/registry/NV/fragment_program.txt
1606 XXX: Need to write up vops
1610 GL_OES_single_precision
1611 http://oss.sgi.com/projects/ogl-sample/registry/OES/single_precision.txt
1612 XXX: Need to write up vops