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" />
94 <event name="PbufferClobber" number="0">
95 <field type="CARD16" name="event_type" />
96 <field type="CARD16" name="draw_type" />
97 <field type="glx:DRAWABLE" name="drawable" />
98 <field type="CARD32" name="b_mask" />
99 <field type="CARD16" name="aux_buffer" />
100 <field type="CARD16" name="x" />
101 <field type="CARD16" name="y" />
102 <field type="CARD16" name="width" />
103 <field type="CARD16" name="height" />
104 <field type="CARD16" name="count" />
108 <!-- enums for PbufferClobber event/draw type -->
110 <item name="Damaged">
111 <value>0x8017</value>
114 <value>0x8018</value>
120 <value>0x8019</value>
122 <item name="Pbuffer">
123 <value>0x801A</value>
128 <request name="Render" opcode="1" combine-adjacent="true">
129 <field type="CONTEXT_TAG" name="context_tag" />
130 <list type="BYTE" name="data" />
133 <request name="RenderLarge" opcode="2">
134 <field type="CONTEXT_TAG" name="context_tag" />
135 <field type="CARD16" name="request_num" />
136 <field type="CARD16" name="request_total" />
137 <field type="CARD32" name="data_len" />
138 <list type="BYTE" name="data">
139 <fieldref>data_len</fieldref>
143 <request name="CreateContext" opcode="3">
144 <field type="glx:CONTEXT" name="context" />
145 <field type="VISUALID" name="visual" />
146 <field type="CARD32" name="screen" />
147 <field type="glx:CONTEXT" name="share_list" />
148 <field type="BOOL" name="is_direct" />
152 <request name="DestroyContext" opcode="4">
153 <field type="glx:CONTEXT" name="context" />
156 <request name="MakeCurrent" opcode="5">
157 <field type="glx:DRAWABLE" name="drawable" />
158 <field type="glx:CONTEXT" name="context" />
159 <field type="CONTEXT_TAG" name="old_context_tag" />
162 <field type="CONTEXT_TAG" name="context_tag" />
167 <request name="IsDirect" opcode="6">
168 <field type="glx:CONTEXT" name="context" />
171 <field type="BOOL" name="is_direct" />
176 <request name="QueryVersion" opcode="7">
177 <field type="CARD32" name="major_version" />
178 <field type="CARD32" name="minor_version" />
181 <field type="CARD32" name="major_version" />
182 <field type="CARD32" name="minor_version" />
187 <request name="WaitGL" opcode="8">
188 <field type="CONTEXT_TAG" name="context_tag" />
191 <request name="WaitX" opcode="9">
192 <field type="CONTEXT_TAG" name="context_tag" />
195 <request name="CopyContext" opcode="10">
196 <field type="glx:CONTEXT" name="src" />
197 <field type="glx:CONTEXT" name="dest" />
198 <field type="CARD32" name="mask" />
199 <field type="CONTEXT_TAG" name="src_context_tag" />
202 <!-- Enum for CopyContext: mask -->
204 <item name="GL_CURRENT_BIT"><value>0x00000001</value></item>
205 <item name="GL_POINT_BIT"><value>0x00000002</value></item>
206 <item name="GL_LINE_BIT"><value>0x00000004</value></item>
207 <item name="GL_POLYGON_BIT"><value>0x00000008</value></item>
208 <item name="GL_POLYGON_STIPPLE_BIT"><value>0x00000010</value></item>
209 <item name="GL_PIXEL_MODE_BIT"><value>0x00000020</value></item>
210 <item name="GL_LIGHTING_BIT"><value>0x00000040</value></item>
211 <item name="GL_FOG_BIT"><value>0x00000080</value></item>
212 <item name="GL_DEPTH_BUFFER_BIT"><value>0x00000100</value></item>
213 <item name="GL_ACCUM_BUFFER_BIT"><value>0x00000200</value></item>
214 <item name="GL_STENCIL_BUFFER_BIT"><value>0x00000400</value></item>
215 <item name="GL_VIEWPORT_BIT"><value>0x00000800</value></item>
216 <item name="GL_TRANSFORM_BIT"><value>0x00001000</value></item>
217 <item name="GL_ENABLE_BIT"><value>0x00002000</value></item>
218 <item name="GL_COLOR_BUFFER_BIT"><value>0x00004000</value></item>
219 <item name="GL_HINT_BIT"><value>0x00008000</value></item>
220 <item name="GL_EVAL_BIT"><value>0x00010000</value></item>
221 <item name="GL_LIST_BIT"><value>0x00020000</value></item>
222 <item name="GL_TEXTURE_BIT"><value>0x00040000</value></item>
223 <item name="GL_SCISSOR_BIT"><value>0x00080000</value></item>
224 <item name="GL_ALL_ATTRIB_BITS"><value>0x000ffffff</value></item>
227 <request name="SwapBuffers" opcode="11">
228 <field type="CONTEXT_TAG" name="context_tag" />
229 <field type="glx:DRAWABLE" name="drawable" />
232 <request name="UseXFont" opcode="12">
233 <field type="CONTEXT_TAG" name="context_tag" />
234 <field type="FONT" name="font" />
235 <field type="CARD32" name="first" />
236 <field type="CARD32" name="count" />
237 <field type="CARD32" name="list_base" />
240 <request name="CreateGLXPixmap" opcode="13">
241 <field type="CARD32" name="screen" />
242 <field type="VISUALID" name="visual" />
243 <field type="xproto:PIXMAP" name="pixmap" />
244 <field type="glx:PIXMAP" name="glx_pixmap" />
248 <request name="GetVisualConfigs" opcode="14">
249 <field type="CARD32" name="screen" />
252 <field type="CARD32" name="num_visuals" />
253 <field type="CARD32" name="num_properties" />
255 <list type="CARD32" name="property_list" />
259 <request name="DestroyGLXPixmap" opcode="15">
260 <field type="glx:PIXMAP" name="glx_pixmap" />
264 Context tag is not in the proto, should be part of the list of bytes
265 but every VendorPrivate and VendorPrivateWithReply request uses them
266 so it is safe to put them in. That's how Mesa does it.
268 <request name="VendorPrivate" opcode="16">
269 <field type="CARD32" name="vendor_code" />
270 <field type="CONTEXT_TAG" name="context_tag" />
271 <list type="BYTE" name="data" />
274 <request name="VendorPrivateWithReply" opcode="17">
275 <field type="CARD32" name="vendor_code" />
276 <field type="CONTEXT_TAG" name="context_tag" />
277 <list type="BYTE" name="data" />
280 <field type="CARD32" name="retval" />
281 <list type="BYTE" name="data1">
284 <list type="BYTE" name="data2" />
288 <request name="QueryExtensionsString" opcode="18">
289 <field type="CARD32" name="screen" />
293 <field type="CARD32" name="n" />
298 <request name="QueryServerString" opcode="19">
299 <field type="CARD32" name="screen" />
300 <field type="CARD32" name="name" />
304 <field type="CARD32" name="str_len" />
306 <list type="CARD8" name="string">
307 <fieldref>str_len</fieldref>
312 <request name="ClientInfo" opcode="20">
313 <field type="CARD32" name="major_version" />
314 <field type="CARD32" name="minor_version" />
315 <field type="CARD32" name="str_len" />
316 <list type="CARD8" name="string">
317 <fieldref>str_len</fieldref>
321 <!-- Start of GLX 1.3 Requests -->
323 <request name="GetFBConfigs" opcode="21">
324 <field type="CARD32" name="screen" />
327 <field type="CARD32" name="num_FB_configs" />
328 <field type="CARD32" name="num_properties" />
331 <valueparam value-mask-type="CARD32"
332 value-mask-name="value_mask"
333 value-list-name="value_list" />
335 <list type="CARD32" name="property_list" />
339 <request name="CreatePixmap" opcode="22">
340 <field type="CARD32" name="screen" />
341 <field type="CARD32" name="fbconfig" />
342 <field type="xproto:PIXMAP" name="pixmap" />
343 <field type="glx:PIXMAP" name="glx_pixmap" />
344 <field type="CARD32" name="num_attribs" />
345 <list type="CARD32" name="attribs">
347 <fieldref>num_attribs</fieldref>
353 <request name="DestroyPixmap" opcode="23">
354 <field type="glx:PIXMAP" name="glx_pixmap" />
357 <request name="CreateNewContext" opcode="24">
358 <field type="glx:CONTEXT" name="context" />
359 <field type="CARD32" name="fbconfig" />
360 <field type="CARD32" name="screen" />
361 <field type="CARD32" name="render_type" />
362 <field type="CARD32" name="share_list" />
363 <field type="BOOL" name="is_direct" />
364 <field type="CARD8" name="reserved1" />
365 <field type="CARD16" name="reserved2" />
368 <request name="QueryContext" opcode="25">
369 <field type="glx:CONTEXT" name="context" />
372 <field type="CARD32" name="num_attribs"/>
374 <list type="CARD32" name="attribs">
376 <fieldref>num_attribs</fieldref>
383 <request name="MakeContextCurrent" opcode="26">
384 <field type="CONTEXT_TAG" name="old_context_tag" />
385 <field type="glx:DRAWABLE" name="drawable" />
386 <field type="glx:DRAWABLE" name="read_drawable" />
387 <field type="glx:CONTEXT" name="context" />
390 <field type="CONTEXT_TAG" name="context_tag" />
395 <request name="CreatePbuffer" opcode="27">
396 <field type="CARD32" name="screen" />
397 <field type="FBCONFIG" name="fbconfig" />
398 <field type="PBUFFER" name="pbuffer" />
399 <field type="CARD32" name="num_attribs" />
400 <list type="CARD32" name="attribs">
402 <fieldref>num_attribs</fieldref>
408 <request name="DestroyPbuffer" opcode="28">
409 <field type="PBUFFER" name="pbuffer" />
412 <request name="GetDrawableAttributes" opcode="29">
413 <field type="glx:DRAWABLE" name="drawable" />
416 <field type="CARD32" name="num_attribs" />
418 <list type="CARD32" name="attribs">
420 <fieldref>num_attribs</fieldref>
427 <request name="ChangeDrawableAttributes" opcode="30">
428 <field type="glx:DRAWABLE" name="drawable" />
429 <field type="CARD32" name="num_attribs" />
430 <list type="CARD32" name="attribs">
432 <fieldref>num_attribs</fieldref>
438 <request name="CreateWindow" opcode="31">
439 <field type="CARD32" name="screen" />
440 <field type="FBCONFIG" name="fbconfig" />
441 <field type="xproto:WINDOW" name="window" />
442 <field type="glx:WINDOW" name="glx_window" />
443 <field type="CARD32" name="num_attribs" />
444 <list type="CARD32" name="attribs">
446 <fieldref>num_attribs</fieldref>
452 <request name="DeleteWindow" opcode="32">
453 <field type="glx:WINDOW" name="glxwindow" />
456 <!-- Requests for GL Non-rendering Commands (single ops) -->
458 <request name="NewList" opcode="101">
459 <field type="CONTEXT_TAG" name="context_tag" />
460 <field type="CARD32" name="list" />
461 <field type="CARD32" name="mode" />
464 <request name="EndList" opcode="102">
465 <field type="CONTEXT_TAG" name="context_tag" />
468 <request name="DeleteLists" opcode="103">
469 <field type="CONTEXT_TAG" name="context_tag" />
470 <field type="CARD32" name="list" />
471 <field type="INT32" name="range" />
474 <request name="GenLists" opcode="104">
475 <field type="CONTEXT_TAG" name="context_tag" />
476 <field type="INT32" name="range" />
479 <field type="CARD32" name="ret_val" />
483 <request name="FeedbackBuffer" opcode="105">
484 <field type="CONTEXT_TAG" name="context_tag" />
485 <field type="INT32" name="size" />
486 <field type="INT32" name="type" />
489 <request name="SelectBuffer" opcode="106">
490 <field type="CONTEXT_TAG" name="context_tag" />
491 <field type="INT32" name="size" />
492 <!-- the reply is actually returned in the data
493 of the next RenderMode request -->
497 <request name="RenderMode" opcode="107">
498 <field type="CONTEXT_TAG" name="context_tag" />
499 <field type="CARD32" name="mode" />
501 This reply is only if RM was previously feedback/selection.
502 If it was in feedback mode then data is FLOAT32.
503 If previously in render mode there is no reply.
507 <field type="CARD32" name="ret_val" />
508 <field type="CARD32" name="n" />
509 <field type="CARD32" name="new_mode" />
511 <list type="CARD32" name="data">
512 <fieldref>n</fieldref>
518 <item name="GL_RENDER"><value>0x1C00</value></item>
519 <item name="GL_FEEDBACK"><value>0x1C01</value></item>
520 <item name="GL_SELECT"><value>0x1C02</value></item>
523 <request name="Finish" opcode="108">
524 <field type="CONTEXT_TAG" name="context_tag" />
530 <request name="PixelStoref" opcode="109">
531 <field type="CONTEXT_TAG" name="context_tag" />
532 <field type="CARD32" name="pname" />
533 <field type="FLOAT32" name="datum" />
536 <request name="PixelStorei" opcode="110">
537 <field type="CONTEXT_TAG" name="context_tag" />
538 <field type="CARD32" name="pname" />
539 <field type="INT32" name="datum" />
542 <request name="ReadPixels" opcode="111">
543 <field type="CONTEXT_TAG" name="context_tag" />
544 <field type="INT32" name="x" />
545 <field type="INT32" name="y" />
546 <field type="INT32" name="width" />
547 <field type="INT32" name="height" />
548 <field type="CARD32" name="format" />
549 <field type="CARD32" name="type" />
550 <field type="BOOL" name="swap_bytes" />
551 <field type="BOOL" name="lsb_first" />
555 <list type="BYTE" name="data" />
560 All the Get* functions can return different stuff for replies.
561 Hopefully xcb will support multiple reply structures at some point
563 Starts on page 58/180
565 <request name="GetBooleanv" opcode="112">
566 <field type="CONTEXT_TAG" name="context_tag" />
567 <field type="INT32" name="pname" />
571 <field type="CARD32" name="n" />
572 <field type="BOOL" name="datum" />
574 <list type="BOOL" name="data">
575 <fieldref>n</fieldref>
580 <request name="GetClipPlane" opcode="113">
581 <field type="CONTEXT_TAG" name="context_tag" />
582 <field type="INT32" name="plane" />
586 <list type="FLOAT64" name="data" />
590 <request name="GetDoublev" opcode="114">
591 <field type="CONTEXT_TAG" name="context_tag" />
592 <field type="CARD32" name="pname" />
596 <field type="CARD32" name="n" />
597 <field type="FLOAT64" name="datum" />
599 <list type="FLOAT64" name="data">
600 <fieldref>n</fieldref>
605 <request name="GetError" opcode="115">
606 <field type="CONTEXT_TAG" name="context_tag" />
609 <field type="INT32" name="error" />
613 <request name="GetFloatv" opcode="116">
614 <field type="CONTEXT_TAG" name="context_tag" />
615 <field type="CARD32" name="pname" />
619 <field type="CARD32" name="n" />
620 <field type="FLOAT32" name="datum" />
622 <list type="FLOAT32" name="data">
623 <fieldref>n</fieldref>
628 <request name="GetIntegerv" opcode="117">
629 <field type="CONTEXT_TAG" name="context_tag" />
630 <field type="CARD32" name="pname" />
634 <field type="CARD32" name="n" />
635 <field type="INT32" name="datum" />
637 <list type="INT32" name="data">
638 <fieldref>n</fieldref>
643 <request name="GetLightfv" opcode="118">
644 <field type="CONTEXT_TAG" name="context_tag" />
645 <field type="CARD32" name="light" />
646 <field type="CARD32" name="pname" />
650 <field type="CARD32" name="n" />
651 <field type="FLOAT32" name="datum" />
653 <list type="FLOAT32" name="data">
654 <fieldref>n</fieldref>
659 <request name="GetLightiv" opcode="119">
660 <field type="CONTEXT_TAG" name="context_tag" />
661 <field type="CARD32" name="light" />
662 <field type="CARD32" name="pname" />
666 <field type="CARD32" name="n" />
667 <field type="INT32" name="datum" />
669 <list type="INT32" name="data">
670 <fieldref>n</fieldref>
675 <request name="GetMapdv" opcode="120">
676 <field type="CONTEXT_TAG" name="context_tag" />
677 <field type="CARD32" name="target" />
678 <field type="CARD32" name="query" />
682 <field type="CARD32" name="n" />
683 <field type="FLOAT64" name="datum" />
685 <list type="FLOAT64" name="data">
686 <fieldref>n</fieldref>
691 <request name="GetMapfv" opcode="121">
692 <field type="CONTEXT_TAG" name="context_tag" />
693 <field type="CARD32" name="target" />
694 <field type="CARD32" name="query" />
698 <field type="CARD32" name="n" />
699 <field type="FLOAT32" name="datum" />
701 <list type="FLOAT32" name="data">
702 <fieldref>n</fieldref>
707 <request name="GetMapiv" opcode="122">
708 <field type="CONTEXT_TAG" name="context_tag" />
709 <field type="CARD32" name="target" />
710 <field type="CARD32" name="query" />
714 <field type="CARD32" name="n" />
715 <field type="INT32" name="datum" />
717 <list type="INT32" name="data">
718 <fieldref>n</fieldref>
723 <request name="GetMaterialfv" opcode="123">
724 <field type="CONTEXT_TAG" name="context_tag" />
725 <field type="CARD32" name="face" />
726 <field type="CARD32" name="pname" />
730 <field type="CARD32" name="n" />
731 <field type="FLOAT32" name="datum" />
733 <list type="FLOAT32" name="data">
734 <fieldref>n</fieldref>
739 <request name="GetMaterialiv" opcode="124">
740 <field type="CONTEXT_TAG" name="context_tag" />
741 <field type="CARD32" name="face" />
742 <field type="CARD32" name="pname" />
746 <field type="CARD32" name="n" />
747 <field type="INT32" name="datum" />
749 <list type="INT32" name="data">
750 <fieldref>n</fieldref>
755 <request name="GetPixelMapfv" opcode="125">
756 <field type="CONTEXT_TAG" name="context_tag" />
757 <field type="CARD32" name="map" />
761 <field type="CARD32" name="n" />
762 <field type="FLOAT32" name="datum" />
764 <list type="FLOAT32" name="data">
765 <fieldref>n</fieldref>
770 <request name="GetPixelMapuiv" opcode="126">
771 <field type="CONTEXT_TAG" name="context_tag" />
772 <field type="CARD32" name="map" />
776 <field type="CARD32" name="n" />
777 <field type="CARD32" name="datum" />
779 <list type="CARD32" name="data">
780 <fieldref>n</fieldref>
785 <request name="GetPixelMapusv" opcode="127">
786 <field type="CONTEXT_TAG" name="context_tag" />
787 <field type="CARD32" name="map" />
791 <field type="CARD32" name="n" />
792 <field type="CARD16" name="datum" />
794 <list type="CARD16" name="data">
795 <fieldref>n</fieldref>
800 <request name="GetPolygonStipple" opcode="128">
801 <field type="CONTEXT_TAG" name="context_tag" />
802 <field type="BOOL" name="lsb_first" />
806 <list type="BYTE" name="data" />
811 <request name="GetString" opcode="129">
812 <field type="CONTEXT_TAG" name="context_tag" />
813 <field type="CARD32" name="name" />
817 <field type="CARD32" name="n" />
819 <list type="CARD8" name="string">
820 <fieldref>n</fieldref>
825 <request name="GetTexEnvfv" opcode="130">
826 <field type="CONTEXT_TAG" name="context_tag" />
827 <field type="CARD32" name="target" />
828 <field type="CARD32" name="pname" />
832 <field type="CARD32" name="n" />
833 <field type="FLOAT32" name="datum" />
835 <list type="FLOAT32" name="data">
836 <fieldref>n</fieldref>
841 <request name="GetTexEnviv" opcode="131">
842 <field type="CONTEXT_TAG" name="context_tag" />
843 <field type="CARD32" name="target" />
844 <field type="CARD32" name="pname" />
848 <field type="CARD32" name="n" />
849 <field type="INT32" name="datum" />
851 <list type="INT32" name="data">
852 <fieldref>n</fieldref>
857 <request name="GetTexGendv" opcode="132">
858 <field type="CONTEXT_TAG" name="context_tag" />
859 <field type="CARD32" name="coord" />
860 <field type="CARD32" name="pname" />
864 <field type="CARD32" name="n" />
865 <field type="FLOAT64" name="datum" />
867 <list type="FLOAT64" name="data">
868 <fieldref>n</fieldref>
873 <request name="GetTexGenfv" opcode="133">
874 <field type="CONTEXT_TAG" name="context_tag" />
875 <field type="CARD32" name="coord" />
876 <field type="CARD32" name="pname" />
880 <field type="CARD32" name="n" />
881 <field type="FLOAT32" name="datum" />
883 <list type="FLOAT32" name="data">
884 <fieldref>n</fieldref>
889 <request name="GetTexGeniv" opcode="134">
890 <field type="CONTEXT_TAG" name="context_tag" />
891 <field type="CARD32" name="coord" />
892 <field type="CARD32" name="pname" />
896 <field type="CARD32" name="n" />
897 <field type="INT32" name="datum" />
899 <list type="INT32" name="data">
900 <fieldref>n</fieldref>
905 <request name="GetTexImage" opcode="135">
906 <field type="CONTEXT_TAG" name="context_tag" />
907 <field type="CARD32" name="target" />
908 <field type="INT32" name="level" />
909 <field type="CARD32" name="format" />
910 <field type="CARD32" name="type" />
911 <field type="BOOL" name="swap_bytes" />
915 <field type="INT32" name="width" />
916 <field type="INT32" name="height" />
917 <field type="INT32" name="depth" />
919 <list type="BYTE" name="data" />
924 <request name="GetTexParameterfv" opcode="136">
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="FLOAT32" name="datum" />
934 <list type="FLOAT32" name="data">
935 <fieldref>n</fieldref>
940 <request name="GetTexParameteriv" opcode="137">
941 <field type="CONTEXT_TAG" name="context_tag" />
942 <field type="CARD32" name="target" />
943 <field type="CARD32" name="pname" />
947 <field type="CARD32" name="n" />
948 <field type="INT32" name="datum" />
950 <list type="INT32" name="data">
951 <fieldref>n</fieldref>
956 <request name="GetTexLevelParameterfv" opcode="138">
957 <field type="CONTEXT_TAG" name="context_tag" />
958 <field type="CARD32" name="target" />
959 <field type="INT32" name="level" />
960 <field type="CARD32" name="pname" />
964 <field type="CARD32" name="n" />
965 <field type="FLOAT32" name="datum" />
967 <list type="FLOAT32" name="data">
968 <fieldref>n</fieldref>
973 <request name="GetTexLevelParameteriv" opcode="139">
974 <field type="CONTEXT_TAG" name="context_tag" />
975 <field type="CARD32" name="target" />
976 <field type="INT32" name="level" />
977 <field type="CARD32" name="pname" />
981 <field type="CARD32" name="n" />
982 <field type="INT32" name="datum" />
984 <list type="INT32" name="data">
985 <fieldref>n</fieldref>
990 <request name="IsList" opcode="141" >
991 <field type="CONTEXT_TAG" name="context_tag" />
992 <field type="CARD32" name="list" />
995 <field type="BOOL32" name="ret_val" />
999 <request name="Flush" opcode="142">
1000 <field type="CONTEXT_TAG" name="context_tag" />
1003 <request name="AreTexturesResident" opcode="143">
1004 <field type="CONTEXT_TAG" name="context_tag" />
1005 <field type="INT32" name="n" />
1006 <list type="CARD32" name="textures">
1007 <fieldref>n</fieldref>
1011 <field type="BOOL32" name="ret_val" />
1013 <list type="BOOL" name="data" />
1017 <request name="DeleteTextures" opcode="144">
1018 <field type="CONTEXT_TAG" name="context_tag" />
1019 <field type="INT32" name="n" />
1020 <list type="CARD32" name="textures">
1021 <fieldref>n</fieldref>
1025 <request name="GenTextures" opcode="145">
1026 <field type="CONTEXT_TAG" name="context_tag" />
1027 <field type="INT32" name="n" />
1031 <list type="CARD32" name="data" />
1035 <request name="IsTexture" opcode="146">
1036 <field type="CONTEXT_TAG" name="context_tag" />
1037 <field type="CARD32" name="texture" />
1040 <field type="BOOL32" name="ret_val" />
1044 <request name="GetColorTable" opcode="147">
1045 <field type="CONTEXT_TAG" name="context_tag" />
1046 <field type="CARD32" name="target" />
1047 <field type="CARD32" name="format" />
1048 <field type="CARD32" name="type" />
1049 <field type="BOOL" name="swap_bytes" />
1053 <field type="INT32" name="width" />
1055 <list type="BYTE" name="data" />
1059 <request name="GetColorTableParameterfv" opcode="148">
1060 <field type="CONTEXT_TAG" name="context_tag" />
1061 <field type="CARD32" name="target" />
1062 <field type="CARD32" name="pname" />
1066 <field type="CARD32" name="n" />
1067 <field type="FLOAT32" name="datum" />
1069 <list type="FLOAT32" name="data">
1070 <fieldref>n</fieldref>
1075 <request name="GetColorTableParameteriv" opcode="149">
1076 <field type="CONTEXT_TAG" name="context_tag" />
1077 <field type="CARD32" name="target" />
1078 <field type="CARD32" name="pname" />
1082 <field type="CARD32" name="n" />
1083 <field type="INT32" name="datum" />
1085 <list type="INT32" name="data">
1086 <fieldref>n</fieldref>
1091 <request name="GetConvolutionFilter" opcode="150">
1092 <field type="CONTEXT_TAG" name="context_tag" />
1093 <field type="CARD32" name="target" />
1094 <field type="CARD32" name="format" />
1095 <field type="CARD32" name="type" />
1096 <field type="BOOL" name="swap_bytes" />
1100 <field type="INT32" name="width" />
1101 <field type="INT32" name="height" />
1103 <list type="BYTE" name="data" />
1108 <request name="GetConvolutionParameterfv" opcode="151">
1109 <field type="CONTEXT_TAG" name="context_tag" />
1110 <field type="CARD32" name="target" />
1111 <field type="CARD32" name="pname" />
1115 <field type="CARD32" name="n" />
1116 <field type="FLOAT32" name="datum" />
1118 <list type="FLOAT32" name="data">
1119 <fieldref>n</fieldref>
1124 <request name="GetConvolutionParameteriv" opcode="152">
1125 <field type="CONTEXT_TAG" name="context_tag" />
1126 <field type="CARD32" name="target" />
1127 <field type="CARD32" name="pname" />
1131 <field type="CARD32" name="n" />
1132 <field type="INT32" name="datum" />
1134 <list type="INT32" name="data">
1135 <fieldref>n</fieldref>
1140 <request name="GetSeparableFilter" opcode="153">
1141 <field type="CONTEXT_TAG" name="context_tag" />
1142 <field type="CARD32" name="target" />
1143 <field type="CARD32" name="format" />
1144 <field type="CARD32" name="type" />
1145 <field type="BOOL" name="swap_bytes" />
1149 <field type="INT32" name="row_w" />
1150 <field type="INT32" name="col_h" />
1152 <list type="BYTE" name="rows_and_cols" />
1156 <request name="GetHistogram" opcode="154">
1157 <field type="CONTEXT_TAG" name="context_tag" />
1158 <field type="CARD32" name="target" />
1159 <field type="CARD32" name="format" />
1160 <field type="CARD32" name="type" />
1161 <field type="BOOL" name="swap_bytes" />
1162 <field type="BOOL" name="reset" />
1166 <field type="INT32" name="width" />
1168 <list type="BYTE" name="data" />
1173 <request name="GetHistogramParameterfv" opcode="155">
1174 <field type="CONTEXT_TAG" name="context_tag" />
1175 <field type="CARD32" name="target" />
1176 <field type="CARD32" name="pname" />
1180 <field type="CARD32" name="n" />
1181 <field type="FLOAT32" name="datum" />
1183 <list type="FLOAT32" name="data">
1184 <fieldref>n</fieldref>
1189 <request name="GetHistogramParameteriv" opcode="156">
1190 <field type="CONTEXT_TAG" name="context_tag" />
1191 <field type="CARD32" name="target" />
1192 <field type="CARD32" name="pname" />
1196 <field type="CARD32" name="n" />
1197 <field type="INT32" name="datum" />
1199 <list type="INT32" name="data">
1200 <fieldref>n</fieldref>
1205 <request name="GetMinmax" opcode="157">
1206 <field type="CONTEXT_TAG" name="context_tag" />
1207 <field type="CARD32" name="target" />
1208 <field type="CARD32" name="format" />
1209 <field type="CARD32" name="type" />
1210 <field type="BOOL" name="swap_bytes" />
1211 <field type="BOOL" name="reset" />
1215 <list type="BYTE" name="data" />
1219 <request name="GetMinmaxParameterfv" opcode="158">
1220 <field type="CONTEXT_TAG" name="context_tag" />
1221 <field type="CARD32" name="target" />
1222 <field type="CARD32" name="pname" />
1226 <field type="CARD32" name="n" />
1227 <field type="FLOAT32" name="datum" />
1229 <list type="FLOAT32" name="data">
1230 <fieldref>n</fieldref>
1235 <request name="GetMinmaxParameteriv" opcode="159">
1236 <field type="CONTEXT_TAG" name="context_tag" />
1237 <field type="CARD32" name="target" />
1238 <field type="CARD32" name="pname" />
1242 <field type="CARD32" name="n" />
1243 <field type="INT32" name="datum" />
1245 <list type="INT32" name="data">
1246 <fieldref>n</fieldref>
1254 * XXX: So far only define non-rendering commands.
1255 * Only those extensions that affect the GLX wire protocol are listed.
1259 GL_ARB_texture_compression
1260 http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_compression.txt
1262 <request name="GetCompressedTexImageARB" opcode="160">
1263 <field type="CONTEXT_TAG" name="context_tag" />
1264 <field type="CARD32" name="target" />
1265 <field type="INT32" name="level" />
1269 <field type="INT32" name="size" />
1271 <list type="BYTE" name="data" />
1277 GL_ARB_occlusion_query
1278 http://oss.sgi.com/projects/ogl-sample/registry/ARB/occlusion_query.txt
1281 <request name="DeleteQueriesARB" opcode="161">
1282 <field type="CONTEXT_TAG" name="context_tag" />
1283 <field type="INT32" name="n" />
1284 <list type="CARD32" name="ids">
1285 <fieldref>n</fieldref>
1289 <request name="GenQueriesARB" opcode="162">
1290 <field type="CONTEXT_TAG" name="context_tag" />
1291 <field type="INT32" name="n" />
1295 <list type="CARD32" name="data" />
1299 <request name="IsQueryARB" opcode="163">
1300 <field type="CONTEXT_TAG" name="context_tag" />
1301 <field type="CARD32" name="id" />
1304 <field type="BOOL32" name="ret_val" />
1308 <request name="GetQueryivARB" opcode="164">
1309 <field type="CONTEXT_TAG" name="context_tag" />
1310 <field type="CARD32" name="target" />
1311 <field type="CARD32" name="pname" />
1315 <field type="CARD32" name="n" />
1316 <field type="INT32" name="datum" />
1318 <list type="INT32" name="data">
1319 <fieldref>n</fieldref>
1324 <request name="GetQueryObjectivARB" opcode="165">
1325 <field type="CONTEXT_TAG" name="context_tag" />
1326 <field type="CARD32" name="id" />
1327 <field type="CARD32" name="pname" />
1331 <field type="CARD32" name="n" />
1332 <field type="INT32" name="datum" />
1334 <list type="INT32" name="data">
1335 <fieldref>n</fieldref>
1340 <request name="GetQueryObjectuivARB" opcode="166">
1341 <field type="CONTEXT_TAG" name="context_tag" />
1342 <field type="CARD32" name="id" />
1343 <field type="CARD32" name="pname" />
1347 <field type="CARD32" name="n" />
1348 <field type="CARD32" name="datum" />
1350 <list type="CARD32" name="data">
1351 <fieldref>n</fieldref>
1357 GL_ARB_vertex_program
1358 http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_program.txt
1359 XXX: Need to write up vops
1363 GL_ARB_fragment_program
1364 http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt
1365 XXX: Need to write up vops
1369 GL_SGIS_texture_filter4
1370 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_filter4.txt
1371 XXX: Need to write up vops
1376 http://oss.sgi.com/projects/ogl-sample/registry/EXT/histogram.txt
1377 XXX: Need to write up vops
1382 http://oss.sgi.com/projects/ogl-sample/registry/EXT/convolution.txt
1383 XXX: Need to write up vops
1388 http://oss.sgi.com/projects/ogl-sample/registry/SGI/color_table.txt
1389 XXX: Need to write up vops
1393 GL_EXT_texture_object
1394 http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_object.txt
1395 XXX: Need to write up vops
1399 GL_SGIS_detail_texture
1400 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/detail_texture.txt
1401 XXX: Need to write up vops
1405 GL_SGIS_sharpen_texture
1406 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/sharpen_texture.txt
1407 XXX: Need to write up vops
1411 GL_SGI_make_current_read
1412 http://oss.sgi.com/projects/ogl-sample/registry/SGI/make_current_read.txt
1413 XXX: Need to write up vops
1417 GL_EXT_import_context
1418 http://oss.sgi.com/projects/ogl-sample/registry/EXT/import_context.txt
1419 XXX: Need to write up vops
1424 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/fbconfig.txt
1425 XXX: Need to write up vops
1430 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/pbuffer.txt
1431 XXX: Need to write up vops
1435 GL_EXT_pixel_transform
1436 http://oss.sgi.com/projects/ogl-sample/registry/EXT/pixel_transform.txt
1437 XXX: Need to write up vops
1441 GL_NV_register_combiners
1442 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners.txt
1443 XXX: Need to write up vops
1448 http://oss.sgi.com/projects/ogl-sample/registry/NV/fence.txt
1449 XXX: Need to write up vops
1453 GL_NV_register_combiners2
1454 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners2.txt
1455 XXX: Need to write up vops
1459 GL_NV_vertex_program
1460 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1461 XXX: Need to write up vops
1465 GL_NV_vertex_program
1466 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1467 XXX: Need to write up vops
1471 GL_NV_occlusion_query
1472 http://oss.sgi.com/projects/ogl-sample/registry/NV/occlusion_query.txt
1473 XXX: Need to write up vops
1477 GL_NV_fragment_program
1478 http://oss.sgi.com/projects/ogl-sample/registry/NV/fragment_program.txt
1479 XXX: Need to write up vops
1483 GL_OES_single_precision
1484 http://oss.sgi.com/projects/ogl-sample/registry/OES/single_precision.txt
1485 XXX: Need to write up vops