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" />
347 <request name="DestroyPixmap" opcode="23">
348 <field type="glx:PIXMAP" name="glx_pixmap" />
351 <request name="CreateNewContext" opcode="24">
352 <field type="glx:CONTEXT" name="context" />
353 <field type="CARD32" name="fbconfig" />
354 <field type="SCREEN" name="screen" />
355 <field type="CARD32" name="render_type" />
356 <field type="CARD32" name="share_list" />
357 <field type="BOOL" name="is_direct" />
358 <field type="CARD8" name="reserved1" />
359 <field type="CARD16" name="reserved2" />
362 <request name="QueryContext" opcode="25">
363 <field type="glx:CONTEXT" name="context" />
366 <field type="CARD32" name="num_attributes"/>
368 <valueparam value-mask-type="CARD32"
369 value-mask-name="value_mask"
370 value-list-name="value_list" />
374 <request name="MakeContextCurrent" opcode="26">
375 <field type="CONTEXT_TAG" name="old_context_tag" />
376 <field type="glx:DRAWABLE" name="drawable" />
377 <field type="glx:DRAWABLE" name="read_drawable" />
378 <field type="glx:CONTEXT" name="context" />
381 <field type="CONTEXT_TAG" name="context_tag" />
386 <request name="CreatePbuffer" opcode="27">
387 <field type="SCREEN" name="screen" />
388 <field type="FBCONFIG" name="fbconfig" />
389 <field type="PBUFFER" name="pbuffer" />
390 <field type="CARD32" name="num_attribs" />
391 <valueparam value-mask-type="CARD32"
392 value-mask-name="value_mask"
393 value-list-name="value_list" />
396 <request name="DestroyPbuffer" opcode="28">
397 <field type="PBUFFER" name="pbuffer" />
400 <request name="GetDrawableAttributes" opcode="29">
401 <field type="glx:DRAWABLE" name="drawable" />
404 <field type="CARD32" name="num_attribs" />
406 <valueparam value-mask-type="CARD32"
407 value-mask-name="value_mask"
408 value-list-name="value_list" />
412 <request name="ChangeDrawableAttributes" opcode="30">
413 <field type="glx:DRAWABLE" name="drawable" />
414 <field type="CARD32" name="num_attribs" />
415 <valueparam value-mask-type="CARD32"
416 value-mask-name="value_mask"
417 value-list-name="value_list" />
420 <request name="CreateWindow" opcode="31">
421 <field type="SCREEN" name="screen" />
422 <field type="FBCONFIG" name="fbconfig" />
423 <field type="xproto:WINDOW" name="window" />
424 <field type="glx:WINDOW" name="glx_window" />
425 <field type="CARD32" name="num_attribs" />
426 <valueparam value-mask-type="CARD32"
427 value-mask-name="value_mask"
428 value-list-name="value_list" />
431 <request name="DeleteWindow" opcode="32">
432 <field type="glx:WINDOW" name="glxwindow" />
435 <!-- Requests for GL Non-rendering Commands (single ops) -->
437 <request name="NewList" opcode="101">
438 <field type="CONTEXT_TAG" name="context_tag" />
439 <field type="CARD32" name="list" />
440 <field type="CARD32" name="mode" />
443 <request name="EndList" opcode="102">
444 <field type="CONTEXT_TAG" name="context_tag" />
447 <request name="DeleteLists" opcode="103">
448 <field type="CONTEXT_TAG" name="context_tag" />
449 <field type="CARD32" name="list" />
450 <field type="INT32" name="range" />
453 <request name="GenLists" opcode="104">
454 <field type="CONTEXT_TAG" name="context_tag" />
455 <field type="INT32" name="range" />
458 <field type="CARD32" name="ret_val" />
462 <request name="FeedbackBuffer" opcode="105">
463 <field type="CONTEXT_TAG" name="context_tag" />
464 <field type="INT32" name="size" />
465 <field type="INT32" name="type" />
468 <request name="SelectBuffer" opcode="106">
469 <field type="CONTEXT_TAG" name="context_tag" />
470 <field type="INT32" name="size" />
471 <!-- the reply is actually returned in the data
472 of the next RenderMode request -->
476 <request name="RenderMode" opcode="107">
477 <field type="CONTEXT_TAG" name="context_tag" />
478 <field type="CARD32" name="mode" />
480 This reply is only if RM was previously feedback/selection.
481 If it was in feedback mode then data is FLOAT32.
482 If previously in render mode there is no reply.
486 <field type="CARD32" name="ret_val" />
487 <field type="CARD32" name="n" />
488 <field type="CARD32" name="new_mode" />
490 <list type="CARD32" name="data">
491 <fieldref>n</fieldref>
497 <item name="GL_RENDER"><value>0x1C00</value></item>
498 <item name="GL_FEEDBACK"><value>0x1C01</value></item>
499 <item name="GL_SELECT"><value>0x1C02</value></item>
502 <request name="Finish" opcode="108">
503 <field type="CONTEXT_TAG" name="context_tag" />
509 <request name="PixelStoref" opcode="109">
510 <field type="CONTEXT_TAG" name="context_tag" />
511 <field type="CARD32" name="pname" />
512 <field type="FLOAT32" name="datum" />
515 <request name="PixelStorei" opcode="110">
516 <field type="CONTEXT_TAG" name="context_tag" />
517 <field type="CARD32" name="pname" />
518 <field type="INT32" name="datum" />
521 <request name="ReadPixels" opcode="111">
522 <field type="CONTEXT_TAG" name="context_tag" />
523 <field type="INT32" name="x" />
524 <field type="INT32" name="y" />
525 <field type="INT32" name="width" />
526 <field type="INT32" name="height" />
527 <field type="CARD32" name="format" />
528 <field type="CARD32" name="type" />
529 <field type="BOOL" name="swap_bytes" />
530 <field type="BOOL" name="lsb_first" />
534 <list type="BYTE" name="data" />
539 All the Get* functions can return different stuff for replies.
540 Hopefully xcb will support multiple reply structures at some point
542 Starts on page 58/180
544 <request name="GetBooleanv" opcode="112">
545 <field type="CONTEXT_TAG" name="context_tag" />
546 <field type="INT32" name="pname" />
550 <field type="CARD32" name="n" />
551 <field type="BOOL" name="datum" />
553 <list type="BOOL" name="data">
554 <fieldref>n</fieldref>
559 <request name="GetClipPlane" opcode="113">
560 <field type="CONTEXT_TAG" name="context_tag" />
561 <field type="INT32" name="plane" />
565 <list type="FLOAT64" name="data" />
569 <request name="GetDoublev" opcode="114">
570 <field type="CONTEXT_TAG" name="context_tag" />
571 <field type="CARD32" name="pname" />
575 <field type="CARD32" name="n" />
576 <field type="FLOAT64" name="datum" />
578 <list type="FLOAT64" name="data">
579 <fieldref>n</fieldref>
584 <request name="GetError" opcode="115">
585 <field type="CONTEXT_TAG" name="context_tag" />
588 <field type="INT32" name="error" />
592 <request name="GetFloatv" opcode="116">
593 <field type="CONTEXT_TAG" name="context_tag" />
594 <field type="CARD32" name="pname" />
598 <field type="CARD32" name="n" />
599 <field type="FLOAT32" name="datum" />
601 <list type="FLOAT32" name="data">
602 <fieldref>n</fieldref>
607 <request name="GetIntegerv" opcode="117">
608 <field type="CONTEXT_TAG" name="context_tag" />
609 <field type="CARD32" name="pname" />
613 <field type="CARD32" name="n" />
614 <field type="INT32" name="datum" />
616 <list type="INT32" name="data">
617 <fieldref>n</fieldref>
622 <request name="GetLightfv" opcode="118">
623 <field type="CONTEXT_TAG" name="context_tag" />
624 <field type="CARD32" name="light" />
625 <field type="CARD32" name="pname" />
629 <field type="CARD32" name="n" />
630 <field type="FLOAT32" name="datum" />
632 <list type="FLOAT32" name="data">
633 <fieldref>n</fieldref>
638 <request name="GetLightiv" opcode="119">
639 <field type="CONTEXT_TAG" name="context_tag" />
640 <field type="CARD32" name="light" />
641 <field type="CARD32" name="pname" />
645 <field type="CARD32" name="n" />
646 <field type="INT32" name="datum" />
648 <list type="INT32" name="data">
649 <fieldref>n</fieldref>
654 <request name="GetMapdv" opcode="120">
655 <field type="CONTEXT_TAG" name="context_tag" />
656 <field type="CARD32" name="target" />
657 <field type="CARD32" name="query" />
661 <field type="CARD32" name="n" />
662 <field type="FLOAT64" name="datum" />
664 <list type="FLOAT64" name="data">
665 <fieldref>n</fieldref>
670 <request name="GetMapfv" opcode="121">
671 <field type="CONTEXT_TAG" name="context_tag" />
672 <field type="CARD32" name="target" />
673 <field type="CARD32" name="query" />
677 <field type="CARD32" name="n" />
678 <field type="FLOAT32" name="datum" />
680 <list type="FLOAT32" name="data">
681 <fieldref>n</fieldref>
686 <request name="GetMapiv" opcode="122">
687 <field type="CONTEXT_TAG" name="context_tag" />
688 <field type="CARD32" name="target" />
689 <field type="CARD32" name="query" />
693 <field type="CARD32" name="n" />
694 <field type="INT32" name="datum" />
696 <list type="INT32" name="data">
697 <fieldref>n</fieldref>
702 <request name="GetMaterialfv" opcode="123">
703 <field type="CONTEXT_TAG" name="context_tag" />
704 <field type="CARD32" name="face" />
705 <field type="CARD32" name="pname" />
709 <field type="CARD32" name="n" />
710 <field type="FLOAT32" name="datum" />
712 <list type="FLOAT32" name="data">
713 <fieldref>n</fieldref>
718 <request name="GetMaterialiv" opcode="124">
719 <field type="CONTEXT_TAG" name="context_tag" />
720 <field type="CARD32" name="face" />
721 <field type="CARD32" name="pname" />
725 <field type="CARD32" name="n" />
726 <field type="INT32" name="datum" />
728 <list type="INT32" name="data">
729 <fieldref>n</fieldref>
734 <request name="GetPixelMapfv" opcode="125">
735 <field type="CONTEXT_TAG" name="context_tag" />
736 <field type="CARD32" name="map" />
740 <field type="CARD32" name="n" />
741 <field type="FLOAT32" name="datum" />
743 <list type="FLOAT32" name="data">
744 <fieldref>n</fieldref>
749 <request name="GetPixelMapuiv" opcode="126">
750 <field type="CONTEXT_TAG" name="context_tag" />
751 <field type="CARD32" name="map" />
755 <field type="CARD32" name="n" />
756 <field type="CARD32" name="datum" />
758 <list type="CARD32" name="data">
759 <fieldref>n</fieldref>
764 <request name="GetPixelMapusv" opcode="127">
765 <field type="CONTEXT_TAG" name="context_tag" />
766 <field type="CARD32" name="map" />
770 <field type="CARD32" name="n" />
771 <field type="CARD16" name="datum" />
773 <list type="CARD16" name="data">
774 <fieldref>n</fieldref>
779 <request name="GetPolygonStipple" opcode="128">
780 <field type="CONTEXT_TAG" name="context_tag" />
781 <field type="BOOL" name="lsb_first" />
785 <list type="BYTE" name="data" />
790 <request name="GetString" opcode="129">
791 <field type="CONTEXT_TAG" name="context_tag" />
792 <field type="CARD32" name="name" />
796 <field type="CARD32" name="n" />
798 <list type="CARD8" name="string">
799 <fieldref>n</fieldref>
804 <request name="GetTexEnvfv" opcode="130">
805 <field type="CONTEXT_TAG" name="context_tag" />
806 <field type="CARD32" name="target" />
807 <field type="CARD32" name="pname" />
811 <field type="CARD32" name="n" />
812 <field type="FLOAT32" name="datum" />
814 <list type="FLOAT32" name="data">
815 <fieldref>n</fieldref>
820 <request name="GetTexEnviv" opcode="131">
821 <field type="CONTEXT_TAG" name="context_tag" />
822 <field type="CARD32" name="target" />
823 <field type="CARD32" name="pname" />
827 <field type="CARD32" name="n" />
828 <field type="INT32" name="datum" />
830 <list type="INT32" name="data">
831 <fieldref>n</fieldref>
836 <request name="GetTexGendv" opcode="132">
837 <field type="CONTEXT_TAG" name="context_tag" />
838 <field type="CARD32" name="coord" />
839 <field type="CARD32" name="pname" />
843 <field type="CARD32" name="n" />
844 <field type="FLOAT64" name="datum" />
846 <list type="FLOAT64" name="data">
847 <fieldref>n</fieldref>
852 <request name="GetTexGenfv" opcode="133">
853 <field type="CONTEXT_TAG" name="context_tag" />
854 <field type="CARD32" name="coord" />
855 <field type="CARD32" name="pname" />
859 <field type="CARD32" name="n" />
860 <field type="FLOAT32" name="datum" />
862 <list type="FLOAT32" name="data">
863 <fieldref>n</fieldref>
868 <request name="GetTexGeniv" opcode="134">
869 <field type="CONTEXT_TAG" name="context_tag" />
870 <field type="CARD32" name="coord" />
871 <field type="CARD32" name="pname" />
875 <field type="CARD32" name="n" />
876 <field type="INT32" name="datum" />
878 <list type="INT32" name="data">
879 <fieldref>n</fieldref>
884 <request name="GetTexImage" opcode="135">
885 <field type="CONTEXT_TAG" name="context_tag" />
886 <field type="CARD32" name="target" />
887 <field type="INT32" name="level" />
888 <field type="CARD32" name="format" />
889 <field type="CARD32" name="type" />
890 <field type="BOOL" name="swap_bytes" />
894 <field type="INT32" name="width" />
895 <field type="INT32" name="height" />
896 <field type="INT32" name="depth" />
898 <list type="BYTE" name="data" />
903 <request name="GetTexParameterfv" opcode="136">
904 <field type="CONTEXT_TAG" name="context_tag" />
905 <field type="CARD32" name="target" />
906 <field type="CARD32" name="pname" />
910 <field type="CARD32" name="n" />
911 <field type="FLOAT32" name="datum" />
913 <list type="FLOAT32" name="data">
914 <fieldref>n</fieldref>
919 <request name="GetTexParameteriv" opcode="137">
920 <field type="CONTEXT_TAG" name="context_tag" />
921 <field type="CARD32" name="target" />
922 <field type="CARD32" name="pname" />
926 <field type="CARD32" name="n" />
927 <field type="INT32" name="datum" />
929 <list type="INT32" name="data">
930 <fieldref>n</fieldref>
935 <request name="GetTexLevelParameterfv" opcode="138">
936 <field type="CONTEXT_TAG" name="context_tag" />
937 <field type="CARD32" name="target" />
938 <field type="INT32" name="level" />
939 <field type="CARD32" name="pname" />
943 <field type="CARD32" name="n" />
944 <field type="FLOAT32" name="datum" />
946 <list type="FLOAT32" name="data">
947 <fieldref>n</fieldref>
952 <request name="GetTexLevelParameteriv" opcode="139">
953 <field type="CONTEXT_TAG" name="context_tag" />
954 <field type="CARD32" name="target" />
955 <field type="INT32" name="level" />
956 <field type="CARD32" name="pname" />
960 <field type="CARD32" name="n" />
961 <field type="INT32" name="datum" />
963 <list type="INT32" name="data">
964 <fieldref>n</fieldref>
969 <request name="IsList" opcode="141" >
970 <field type="CONTEXT_TAG" name="context_tag" />
971 <field type="CARD32" name="list" />
974 <field type="BOOL32" name="ret_val" />
978 <request name="Flush" opcode="142">
979 <field type="CONTEXT_TAG" name="context_tag" />
982 <request name="AreTexturesResident" opcode="143">
983 <field type="CONTEXT_TAG" name="context_tag" />
984 <field type="INT32" name="n" />
985 <list type="CARD32" name="textures">
986 <fieldref>n</fieldref>
990 <field type="BOOL32" name="ret_val" />
992 <list type="BOOL" name="data" />
996 <request name="DeleteTextures" opcode="144">
997 <field type="CONTEXT_TAG" name="context_tag" />
998 <field type="INT32" name="n" />
999 <list type="CARD32" name="textures">
1000 <fieldref>n</fieldref>
1004 <request name="GenTextures" opcode="145">
1005 <field type="CONTEXT_TAG" name="context_tag" />
1006 <field type="INT32" name="n" />
1010 <list type="CARD32" name="data" />
1014 <request name="IsTexture" opcode="146">
1015 <field type="CONTEXT_TAG" name="context_tag" />
1016 <field type="CARD32" name="texture" />
1019 <field type="BOOL32" name="ret_val" />
1023 <request name="GetColorTable" opcode="147">
1024 <field type="CONTEXT_TAG" name="context_tag" />
1025 <field type="CARD32" name="target" />
1026 <field type="CARD32" name="format" />
1027 <field type="CARD32" name="type" />
1028 <field type="BOOL" name="swap_bytes" />
1032 <field type="INT32" name="width" />
1034 <list type="BYTE" name="data" />
1038 <request name="GetColorTableParameterfv" opcode="148">
1039 <field type="CONTEXT_TAG" name="context_tag" />
1040 <field type="CARD32" name="target" />
1041 <field type="CARD32" name="pname" />
1045 <field type="CARD32" name="n" />
1046 <field type="FLOAT32" name="datum" />
1048 <list type="FLOAT32" name="data">
1049 <fieldref>n</fieldref>
1054 <request name="GetColorTableParameteriv" opcode="149">
1055 <field type="CONTEXT_TAG" name="context_tag" />
1056 <field type="CARD32" name="target" />
1057 <field type="CARD32" name="pname" />
1061 <field type="CARD32" name="n" />
1062 <field type="INT32" name="datum" />
1064 <list type="INT32" name="data">
1065 <fieldref>n</fieldref>
1070 <request name="GetConvolutionFilter" opcode="150">
1071 <field type="CONTEXT_TAG" name="context_tag" />
1072 <field type="CARD32" name="target" />
1073 <field type="CARD32" name="format" />
1074 <field type="CARD32" name="type" />
1075 <field type="BOOL" name="swap_bytes" />
1079 <field type="INT32" name="width" />
1080 <field type="INT32" name="height" />
1082 <list type="BYTE" name="data" />
1087 <request name="GetConvolutionParameterfv" opcode="151">
1088 <field type="CONTEXT_TAG" name="context_tag" />
1089 <field type="CARD32" name="target" />
1090 <field type="CARD32" name="pname" />
1094 <field type="CARD32" name="n" />
1095 <field type="FLOAT32" name="datum" />
1097 <list type="FLOAT32" name="data">
1098 <fieldref>n</fieldref>
1103 <request name="GetConvolutionParameteriv" opcode="152">
1104 <field type="CONTEXT_TAG" name="context_tag" />
1105 <field type="CARD32" name="target" />
1106 <field type="CARD32" name="pname" />
1110 <field type="CARD32" name="n" />
1111 <field type="INT32" name="datum" />
1113 <list type="INT32" name="data">
1114 <fieldref>n</fieldref>
1119 <request name="GetSeparableFilter" opcode="153">
1120 <field type="CONTEXT_TAG" name="context_tag" />
1121 <field type="CARD32" name="target" />
1122 <field type="CARD32" name="format" />
1123 <field type="CARD32" name="type" />
1124 <field type="BOOL" name="swap_bytes" />
1128 <field type="INT32" name="row_w" />
1129 <field type="INT32" name="col_h" />
1131 <list type="BYTE" name="rows_and_cols" />
1135 <request name="GetHistogram" opcode="154">
1136 <field type="CONTEXT_TAG" name="context_tag" />
1137 <field type="CARD32" name="target" />
1138 <field type="CARD32" name="format" />
1139 <field type="CARD32" name="type" />
1140 <field type="BOOL" name="swap_bytes" />
1141 <field type="BOOL" name="reset" />
1145 <field type="INT32" name="width" />
1147 <list type="BYTE" name="data" />
1152 <request name="GetHistogramParameterfv" opcode="155">
1153 <field type="CONTEXT_TAG" name="context_tag" />
1154 <field type="CARD32" name="target" />
1155 <field type="CARD32" name="pname" />
1159 <field type="CARD32" name="n" />
1160 <field type="FLOAT32" name="datum" />
1162 <list type="FLOAT32" name="data">
1163 <fieldref>n</fieldref>
1168 <request name="GetHistogramParameteriv" opcode="156">
1169 <field type="CONTEXT_TAG" name="context_tag" />
1170 <field type="CARD32" name="target" />
1171 <field type="CARD32" name="pname" />
1175 <field type="CARD32" name="n" />
1176 <field type="INT32" name="datum" />
1178 <list type="INT32" name="data">
1179 <fieldref>n</fieldref>
1184 <request name="GetMinmax" opcode="157">
1185 <field type="CONTEXT_TAG" name="context_tag" />
1186 <field type="CARD32" name="target" />
1187 <field type="CARD32" name="format" />
1188 <field type="CARD32" name="type" />
1189 <field type="BOOL" name="swap_bytes" />
1190 <field type="BOOL" name="reset" />
1194 <list type="BYTE" name="data" />
1198 <request name="GetMinmaxParameterfv" opcode="158">
1199 <field type="CONTEXT_TAG" name="context_tag" />
1200 <field type="CARD32" name="target" />
1201 <field type="CARD32" name="pname" />
1205 <field type="CARD32" name="n" />
1206 <field type="FLOAT32" name="datum" />
1208 <list type="FLOAT32" name="data">
1209 <fieldref>n</fieldref>
1214 <request name="GetMinmaxParameteriv" opcode="159">
1215 <field type="CONTEXT_TAG" name="context_tag" />
1216 <field type="CARD32" name="target" />
1217 <field type="CARD32" name="pname" />
1221 <field type="CARD32" name="n" />
1222 <field type="INT32" name="datum" />
1224 <list type="INT32" name="data">
1225 <fieldref>n</fieldref>
1233 * XXX: So far only define non-rendering commands.
1234 * Only those extensions that affect the GLX wire protocol are listed.
1238 GL_ARB_texture_compression
1239 http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_compression.txt
1241 <request name="GetCompressedTexImageARB" opcode="160">
1242 <field type="CONTEXT_TAG" name="context_tag" />
1243 <field type="CARD32" name="target" />
1244 <field type="INT32" name="level" />
1248 <field type="INT32" name="size" />
1250 <list type="BYTE" name="data" />
1256 GL_ARB_occlusion_query
1257 http://oss.sgi.com/projects/ogl-sample/registry/ARB/occlusion_query.txt
1260 <request name="DeleteQueriesARB" opcode="161">
1261 <field type="CONTEXT_TAG" name="context_tag" />
1262 <field type="INT32" name="n" />
1263 <list type="CARD32" name="ids">
1264 <fieldref>n</fieldref>
1268 <request name="GenQueriesARB" opcode="162">
1269 <field type="CONTEXT_TAG" name="context_tag" />
1270 <field type="INT32" name="n" />
1274 <list type="CARD32" name="data" />
1278 <request name="IsQueryARB" opcode="163">
1279 <field type="CONTEXT_TAG" name="context_tag" />
1280 <field type="CARD32" name="id" />
1283 <field type="BOOL32" name="ret_val" />
1287 <request name="GetQueryivARB" opcode="164">
1288 <field type="CONTEXT_TAG" name="context_tag" />
1289 <field type="CARD32" name="target" />
1290 <field type="CARD32" name="pname" />
1294 <field type="CARD32" name="n" />
1295 <field type="INT32" name="datum" />
1297 <list type="INT32" name="data">
1298 <fieldref>n</fieldref>
1303 <request name="GetQueryObjectivARB" opcode="165">
1304 <field type="CONTEXT_TAG" name="context_tag" />
1305 <field type="CARD32" name="id" />
1306 <field type="CARD32" name="pname" />
1310 <field type="CARD32" name="n" />
1311 <field type="INT32" name="datum" />
1313 <list type="INT32" name="data">
1314 <fieldref>n</fieldref>
1319 <request name="GetQueryObjectuivARB" opcode="166">
1320 <field type="CONTEXT_TAG" name="context_tag" />
1321 <field type="CARD32" name="id" />
1322 <field type="CARD32" name="pname" />
1326 <field type="CARD32" name="n" />
1327 <field type="CARD32" name="datum" />
1329 <list type="CARD32" name="data">
1330 <fieldref>n</fieldref>
1336 GL_ARB_vertex_program
1337 http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_program.txt
1338 XXX: Need to write up vops
1342 GL_ARB_fragment_program
1343 http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt
1344 XXX: Need to write up vops
1348 GL_SGIS_texture_filter4
1349 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_filter4.txt
1350 XXX: Need to write up vops
1355 http://oss.sgi.com/projects/ogl-sample/registry/EXT/histogram.txt
1356 XXX: Need to write up vops
1361 http://oss.sgi.com/projects/ogl-sample/registry/EXT/convolution.txt
1362 XXX: Need to write up vops
1367 http://oss.sgi.com/projects/ogl-sample/registry/SGI/color_table.txt
1368 XXX: Need to write up vops
1372 GL_EXT_texture_object
1373 http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_object.txt
1374 XXX: Need to write up vops
1378 GL_SGIS_detail_texture
1379 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/detail_texture.txt
1380 XXX: Need to write up vops
1384 GL_SGIS_sharpen_texture
1385 http://oss.sgi.com/projects/ogl-sample/registry/SGIS/sharpen_texture.txt
1386 XXX: Need to write up vops
1390 GL_SGI_make_current_read
1391 http://oss.sgi.com/projects/ogl-sample/registry/SGI/make_current_read.txt
1392 XXX: Need to write up vops
1396 GL_EXT_import_context
1397 http://oss.sgi.com/projects/ogl-sample/registry/EXT/import_context.txt
1398 XXX: Need to write up vops
1403 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/fbconfig.txt
1404 XXX: Need to write up vops
1409 http://oss.sgi.com/projects/ogl-sample/registry/SGIX/pbuffer.txt
1410 XXX: Need to write up vops
1414 GL_EXT_pixel_transform
1415 http://oss.sgi.com/projects/ogl-sample/registry/EXT/pixel_transform.txt
1416 XXX: Need to write up vops
1420 GL_NV_register_combiners
1421 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners.txt
1422 XXX: Need to write up vops
1427 http://oss.sgi.com/projects/ogl-sample/registry/NV/fence.txt
1428 XXX: Need to write up vops
1432 GL_NV_register_combiners2
1433 http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners2.txt
1434 XXX: Need to write up vops
1438 GL_NV_vertex_program
1439 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1440 XXX: Need to write up vops
1444 GL_NV_vertex_program
1445 http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_program.txt
1446 XXX: Need to write up vops
1450 GL_NV_occlusion_query
1451 http://oss.sgi.com/projects/ogl-sample/registry/NV/occlusion_query.txt
1452 XXX: Need to write up vops
1456 GL_NV_fragment_program
1457 http://oss.sgi.com/projects/ogl-sample/registry/NV/fragment_program.txt
1458 XXX: Need to write up vops
1462 GL_OES_single_precision
1463 http://oss.sgi.com/projects/ogl-sample/registry/OES/single_precision.txt
1464 XXX: Need to write up vops