1 /* DO NOT EDIT - This file generated automatically by glX_proto_send.py (from Mesa) script */
4 * (C) Copyright IBM Corporation 2004, 2005
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sub license,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice (including the next
15 * paragraph) shall be included in all copies or substantial portions of the
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
22 * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 #include "glxclient.h"
32 #include "indirect_size.h"
33 #include <GL/glxproto.h>
35 #include <X11/Xlib-xcb.h>
40 #define __GLX_PAD(n) (((n) + 3) & ~3)
42 # if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
43 # define FASTCALL __attribute__((fastcall))
47 # if defined(__GNUC__)
48 # define NOINLINE __attribute__((noinline))
53 #if !defined __GNUC__ || __GNUC__ < 3
54 # define __builtin_expect(x, y) x
57 /* If the size and opcode values are known at compile-time, this will, on
58 * x86 at least, emit them with a single instruction.
60 #define emit_header(dest, op, size) \
61 do { union { short s[2]; int i; } temp; \
62 temp.s[0] = (size); temp.s[1] = (op); \
63 *((int *)(dest)) = temp.i; } while(0)
66 __glXReadReply(Display
* dpy
, size_t size
, void *dest
,
67 GLboolean reply_is_always_array
)
69 xGLXSingleReply reply
;
71 (void) _XReply(dpy
, (xReply
*) & reply
, 0, False
);
73 if ((reply
.length
> 0) || reply_is_always_array
) {
74 const GLint bytes
= (reply_is_always_array
)
75 ? (4 * reply
.length
) : (reply
.size
* size
);
76 const GLint extra
= 4 - (bytes
& 3);
78 _XRead(dpy
, dest
, bytes
);
80 _XEatData(dpy
, extra
);
83 (void) memcpy(dest
, &(reply
.pad3
), size
);
91 __glXReadPixelReply(Display
* dpy
, __GLXcontext
* gc
, unsigned max_dim
,
92 GLint width
, GLint height
, GLint depth
, GLenum format
,
93 GLenum type
, void *dest
, GLboolean dimensions_in_reply
)
95 xGLXSingleReply reply
;
98 (void) _XReply(dpy
, (xReply
*) & reply
, 0, False
);
100 if (dimensions_in_reply
) {
105 if ((height
== 0) || (max_dim
< 2)) {
108 if ((depth
== 0) || (max_dim
< 3)) {
113 size
= reply
.length
* 4;
115 void *buf
= Xmalloc(size
);
118 _XEatData(dpy
, size
);
119 __glXSetError(gc
, GL_OUT_OF_MEMORY
);
121 const GLint extra
= 4 - (size
& 3);
123 _XRead(dpy
, buf
, size
);
125 _XEatData(dpy
, extra
);
128 __glEmptyImage(gc
, 3, width
, height
, depth
, format
, type
,
135 #define X_GLXSingle 0
137 NOINLINE FASTCALL GLubyte
*
138 __glXSetupSingleRequest(__GLXcontext
* gc
, GLint sop
, GLint cmdlen
)
141 Display
*const dpy
= gc
->currentDpy
;
143 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
145 GetReqExtra(GLXSingle
, cmdlen
, req
);
146 req
->reqType
= gc
->majorOpcode
;
147 req
->contextTag
= gc
->currentContextTag
;
149 return (GLubyte
*) (req
) + sz_xGLXSingleReq
;
152 NOINLINE FASTCALL GLubyte
*
153 __glXSetupVendorRequest(__GLXcontext
* gc
, GLint code
, GLint vop
,
156 xGLXVendorPrivateReq
*req
;
157 Display
*const dpy
= gc
->currentDpy
;
159 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
161 GetReqExtra(GLXVendorPrivate
, cmdlen
, req
);
162 req
->reqType
= gc
->majorOpcode
;
164 req
->vendorCode
= vop
;
165 req
->contextTag
= gc
->currentContextTag
;
166 return (GLubyte
*) (req
) + sz_xGLXVendorPrivateReq
;
169 const GLuint __glXDefaultPixelStore
[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
171 #define zero (__glXDefaultPixelStore+0)
172 #define one (__glXDefaultPixelStore+8)
173 #define default_pixel_store_1D (__glXDefaultPixelStore+4)
174 #define default_pixel_store_1D_size 20
175 #define default_pixel_store_2D (__glXDefaultPixelStore+4)
176 #define default_pixel_store_2D_size 20
177 #define default_pixel_store_3D (__glXDefaultPixelStore+0)
178 #define default_pixel_store_3D_size 36
179 #define default_pixel_store_4D (__glXDefaultPixelStore+0)
180 #define default_pixel_store_4D_size 36
182 static FASTCALL NOINLINE
void
183 generic_3_byte(GLint rop
, const void *ptr
)
185 __GLXcontext
*const gc
= __glXGetCurrentContext();
186 const GLuint cmdlen
= 8;
188 emit_header(gc
->pc
, rop
, cmdlen
);
189 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 4);
191 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
192 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
196 static FASTCALL NOINLINE
void
197 generic_4_byte(GLint rop
, const void *ptr
)
199 __GLXcontext
*const gc
= __glXGetCurrentContext();
200 const GLuint cmdlen
= 8;
202 emit_header(gc
->pc
, rop
, cmdlen
);
203 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 4);
205 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
206 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
210 static FASTCALL NOINLINE
void
211 generic_6_byte(GLint rop
, const void *ptr
)
213 __GLXcontext
*const gc
= __glXGetCurrentContext();
214 const GLuint cmdlen
= 12;
216 emit_header(gc
->pc
, rop
, cmdlen
);
217 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 8);
219 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
220 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
224 static FASTCALL NOINLINE
void
225 generic_8_byte(GLint rop
, const void *ptr
)
227 __GLXcontext
*const gc
= __glXGetCurrentContext();
228 const GLuint cmdlen
= 12;
230 emit_header(gc
->pc
, rop
, cmdlen
);
231 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 8);
233 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
234 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
238 static FASTCALL NOINLINE
void
239 generic_12_byte(GLint rop
, const void *ptr
)
241 __GLXcontext
*const gc
= __glXGetCurrentContext();
242 const GLuint cmdlen
= 16;
244 emit_header(gc
->pc
, rop
, cmdlen
);
245 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 12);
247 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
248 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
252 static FASTCALL NOINLINE
void
253 generic_16_byte(GLint rop
, const void *ptr
)
255 __GLXcontext
*const gc
= __glXGetCurrentContext();
256 const GLuint cmdlen
= 20;
258 emit_header(gc
->pc
, rop
, cmdlen
);
259 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 16);
261 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
262 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
266 static FASTCALL NOINLINE
void
267 generic_24_byte(GLint rop
, const void *ptr
)
269 __GLXcontext
*const gc
= __glXGetCurrentContext();
270 const GLuint cmdlen
= 28;
272 emit_header(gc
->pc
, rop
, cmdlen
);
273 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 24);
275 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
276 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
280 static FASTCALL NOINLINE
void
281 generic_32_byte(GLint rop
, const void *ptr
)
283 __GLXcontext
*const gc
= __glXGetCurrentContext();
284 const GLuint cmdlen
= 36;
286 emit_header(gc
->pc
, rop
, cmdlen
);
287 (void) memcpy((void *) (gc
->pc
+ 4), ptr
, 32);
289 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
290 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
294 #define X_GLsop_NewList 101
296 __indirect_glNewList(GLuint list
, GLenum mode
)
298 __GLXcontext
*const gc
= __glXGetCurrentContext();
299 Display
*const dpy
= gc
->currentDpy
;
300 const GLuint cmdlen
= 8;
301 if (__builtin_expect(dpy
!= NULL
, 1)) {
303 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
304 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
305 xcb_glx_new_list(c
, gc
->currentContextTag
, list
, mode
);
308 __glXSetupSingleRequest(gc
, X_GLsop_NewList
, cmdlen
);
309 (void) memcpy((void *) (pc
+ 0), (void *) (&list
), 4);
310 (void) memcpy((void *) (pc
+ 4), (void *) (&mode
), 4);
318 #define X_GLsop_EndList 102
320 __indirect_glEndList(void)
322 __GLXcontext
*const gc
= __glXGetCurrentContext();
323 Display
*const dpy
= gc
->currentDpy
;
324 const GLuint cmdlen
= 0;
325 if (__builtin_expect(dpy
!= NULL
, 1)) {
327 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
328 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
329 xcb_glx_end_list(c
, gc
->currentContextTag
);
331 (void) __glXSetupSingleRequest(gc
, X_GLsop_EndList
, cmdlen
);
339 #define X_GLrop_CallList 1
341 __indirect_glCallList(GLuint list
)
343 __GLXcontext
*const gc
= __glXGetCurrentContext();
344 const GLuint cmdlen
= 8;
345 emit_header(gc
->pc
, X_GLrop_CallList
, cmdlen
);
346 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&list
), 4);
348 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
349 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
353 #define X_GLrop_CallLists 2
355 __indirect_glCallLists(GLsizei n
, GLenum type
, const GLvoid
* lists
)
357 __GLXcontext
*const gc
= __glXGetCurrentContext();
358 const GLuint compsize
= __glCallLists_size(type
);
359 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* n
));
360 if (__builtin_expect((n
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
361 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
362 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
363 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
365 emit_header(gc
->pc
, X_GLrop_CallLists
, cmdlen
);
366 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
367 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&type
), 4);
368 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (lists
),
371 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
372 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
375 const GLint op
= X_GLrop_CallLists
;
376 const GLuint cmdlenLarge
= cmdlen
+ 4;
377 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
378 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
379 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
380 (void) memcpy((void *) (pc
+ 8), (void *) (&n
), 4);
381 (void) memcpy((void *) (pc
+ 12), (void *) (&type
), 4);
382 __glXSendLargeCommand(gc
, pc
, 16, lists
, (compsize
* n
));
387 #define X_GLsop_DeleteLists 103
389 __indirect_glDeleteLists(GLuint list
, GLsizei range
)
391 __GLXcontext
*const gc
= __glXGetCurrentContext();
392 Display
*const dpy
= gc
->currentDpy
;
393 const GLuint cmdlen
= 8;
394 if (__builtin_expect(dpy
!= NULL
, 1)) {
396 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
397 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
398 xcb_glx_delete_lists(c
, gc
->currentContextTag
, list
, range
);
401 __glXSetupSingleRequest(gc
, X_GLsop_DeleteLists
, cmdlen
);
402 (void) memcpy((void *) (pc
+ 0), (void *) (&list
), 4);
403 (void) memcpy((void *) (pc
+ 4), (void *) (&range
), 4);
411 #define X_GLsop_GenLists 104
413 __indirect_glGenLists(GLsizei range
)
415 __GLXcontext
*const gc
= __glXGetCurrentContext();
416 Display
*const dpy
= gc
->currentDpy
;
417 GLuint retval
= (GLuint
) 0;
418 const GLuint cmdlen
= 4;
419 if (__builtin_expect(dpy
!= NULL
, 1)) {
421 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
422 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
423 xcb_glx_gen_lists_reply_t
*reply
=
424 xcb_glx_gen_lists_reply(c
,
426 gc
->currentContextTag
,
428 retval
= reply
->ret_val
;
432 __glXSetupSingleRequest(gc
, X_GLsop_GenLists
, cmdlen
);
433 (void) memcpy((void *) (pc
+ 0), (void *) (&range
), 4);
434 retval
= (GLuint
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
442 #define X_GLrop_ListBase 3
444 __indirect_glListBase(GLuint base
)
446 __GLXcontext
*const gc
= __glXGetCurrentContext();
447 const GLuint cmdlen
= 8;
448 emit_header(gc
->pc
, X_GLrop_ListBase
, cmdlen
);
449 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&base
), 4);
451 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
452 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
456 #define X_GLrop_Begin 4
458 __indirect_glBegin(GLenum mode
)
460 __GLXcontext
*const gc
= __glXGetCurrentContext();
461 const GLuint cmdlen
= 8;
462 emit_header(gc
->pc
, X_GLrop_Begin
, cmdlen
);
463 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
465 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
466 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
470 #define X_GLrop_Bitmap 5
472 __indirect_glBitmap(GLsizei width
, GLsizei height
, GLfloat xorig
,
473 GLfloat yorig
, GLfloat xmove
, GLfloat ymove
,
474 const GLubyte
* bitmap
)
476 __GLXcontext
*const gc
= __glXGetCurrentContext();
477 const GLuint compsize
=
478 (bitmap
!= NULL
) ? __glImageSize(width
, height
, 1, GL_COLOR_INDEX
,
480 const GLuint cmdlen
= 48 + __GLX_PAD(compsize
);
481 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
482 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
483 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
484 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
486 emit_header(gc
->pc
, X_GLrop_Bitmap
, cmdlen
);
487 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&width
), 4);
488 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&height
), 4);
489 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&xorig
), 4);
490 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&yorig
), 4);
491 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&xmove
), 4);
492 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&ymove
), 4);
494 (*gc
->fillImage
) (gc
, 2, width
, height
, 1, GL_COLOR_INDEX
,
495 GL_BITMAP
, bitmap
, gc
->pc
+ 48, gc
->pc
+ 4);
497 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
498 default_pixel_store_2D_size
);
501 if (gc
->pc
> gc
->limit
) {
502 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
505 const GLint op
= X_GLrop_Bitmap
;
506 const GLuint cmdlenLarge
= cmdlen
+ 4;
507 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
508 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
509 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
510 (void) memcpy((void *) (pc
+ 28), (void *) (&width
), 4);
511 (void) memcpy((void *) (pc
+ 32), (void *) (&height
), 4);
512 (void) memcpy((void *) (pc
+ 36), (void *) (&xorig
), 4);
513 (void) memcpy((void *) (pc
+ 40), (void *) (&yorig
), 4);
514 (void) memcpy((void *) (pc
+ 44), (void *) (&xmove
), 4);
515 (void) memcpy((void *) (pc
+ 48), (void *) (&ymove
), 4);
516 __glXSendLargeImage(gc
, compsize
, 2, width
, height
, 1,
517 GL_COLOR_INDEX
, GL_BITMAP
, bitmap
, pc
+ 52,
523 #define X_GLrop_Color3bv 6
525 __indirect_glColor3b(GLbyte red
, GLbyte green
, GLbyte blue
)
527 __GLXcontext
*const gc
= __glXGetCurrentContext();
528 const GLuint cmdlen
= 8;
529 emit_header(gc
->pc
, X_GLrop_Color3bv
, cmdlen
);
530 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
531 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
532 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
534 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
535 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
539 #define X_GLrop_Color3bv 6
541 __indirect_glColor3bv(const GLbyte
* v
)
543 generic_3_byte(X_GLrop_Color3bv
, v
);
546 #define X_GLrop_Color3dv 7
548 __indirect_glColor3d(GLdouble red
, GLdouble green
, GLdouble blue
)
550 __GLXcontext
*const gc
= __glXGetCurrentContext();
551 const GLuint cmdlen
= 28;
552 emit_header(gc
->pc
, X_GLrop_Color3dv
, cmdlen
);
553 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 8);
554 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&green
), 8);
555 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&blue
), 8);
557 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
558 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
562 #define X_GLrop_Color3dv 7
564 __indirect_glColor3dv(const GLdouble
* v
)
566 generic_24_byte(X_GLrop_Color3dv
, v
);
569 #define X_GLrop_Color3fv 8
571 __indirect_glColor3f(GLfloat red
, GLfloat green
, GLfloat blue
)
573 __GLXcontext
*const gc
= __glXGetCurrentContext();
574 const GLuint cmdlen
= 16;
575 emit_header(gc
->pc
, X_GLrop_Color3fv
, cmdlen
);
576 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
577 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
578 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
580 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
581 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
585 #define X_GLrop_Color3fv 8
587 __indirect_glColor3fv(const GLfloat
* v
)
589 generic_12_byte(X_GLrop_Color3fv
, v
);
592 #define X_GLrop_Color3iv 9
594 __indirect_glColor3i(GLint red
, GLint green
, GLint blue
)
596 __GLXcontext
*const gc
= __glXGetCurrentContext();
597 const GLuint cmdlen
= 16;
598 emit_header(gc
->pc
, X_GLrop_Color3iv
, cmdlen
);
599 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
600 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
601 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
603 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
604 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
608 #define X_GLrop_Color3iv 9
610 __indirect_glColor3iv(const GLint
* v
)
612 generic_12_byte(X_GLrop_Color3iv
, v
);
615 #define X_GLrop_Color3sv 10
617 __indirect_glColor3s(GLshort red
, GLshort green
, GLshort blue
)
619 __GLXcontext
*const gc
= __glXGetCurrentContext();
620 const GLuint cmdlen
= 12;
621 emit_header(gc
->pc
, X_GLrop_Color3sv
, cmdlen
);
622 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
623 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
624 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
626 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
627 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
631 #define X_GLrop_Color3sv 10
633 __indirect_glColor3sv(const GLshort
* v
)
635 generic_6_byte(X_GLrop_Color3sv
, v
);
638 #define X_GLrop_Color3ubv 11
640 __indirect_glColor3ub(GLubyte red
, GLubyte green
, GLubyte blue
)
642 __GLXcontext
*const gc
= __glXGetCurrentContext();
643 const GLuint cmdlen
= 8;
644 emit_header(gc
->pc
, X_GLrop_Color3ubv
, cmdlen
);
645 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
646 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
647 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
649 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
650 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
654 #define X_GLrop_Color3ubv 11
656 __indirect_glColor3ubv(const GLubyte
* v
)
658 generic_3_byte(X_GLrop_Color3ubv
, v
);
661 #define X_GLrop_Color3uiv 12
663 __indirect_glColor3ui(GLuint red
, GLuint green
, GLuint blue
)
665 __GLXcontext
*const gc
= __glXGetCurrentContext();
666 const GLuint cmdlen
= 16;
667 emit_header(gc
->pc
, X_GLrop_Color3uiv
, cmdlen
);
668 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
669 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
670 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
672 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
673 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
677 #define X_GLrop_Color3uiv 12
679 __indirect_glColor3uiv(const GLuint
* v
)
681 generic_12_byte(X_GLrop_Color3uiv
, v
);
684 #define X_GLrop_Color3usv 13
686 __indirect_glColor3us(GLushort red
, GLushort green
, GLushort blue
)
688 __GLXcontext
*const gc
= __glXGetCurrentContext();
689 const GLuint cmdlen
= 12;
690 emit_header(gc
->pc
, X_GLrop_Color3usv
, cmdlen
);
691 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
692 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
693 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
695 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
696 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
700 #define X_GLrop_Color3usv 13
702 __indirect_glColor3usv(const GLushort
* v
)
704 generic_6_byte(X_GLrop_Color3usv
, v
);
707 #define X_GLrop_Color4bv 14
709 __indirect_glColor4b(GLbyte red
, GLbyte green
, GLbyte blue
, GLbyte alpha
)
711 __GLXcontext
*const gc
= __glXGetCurrentContext();
712 const GLuint cmdlen
= 8;
713 emit_header(gc
->pc
, X_GLrop_Color4bv
, cmdlen
);
714 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
715 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
716 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
717 (void) memcpy((void *) (gc
->pc
+ 7), (void *) (&alpha
), 1);
719 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
720 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
724 #define X_GLrop_Color4bv 14
726 __indirect_glColor4bv(const GLbyte
* v
)
728 generic_4_byte(X_GLrop_Color4bv
, v
);
731 #define X_GLrop_Color4dv 15
733 __indirect_glColor4d(GLdouble red
, GLdouble green
, GLdouble blue
,
736 __GLXcontext
*const gc
= __glXGetCurrentContext();
737 const GLuint cmdlen
= 36;
738 emit_header(gc
->pc
, X_GLrop_Color4dv
, cmdlen
);
739 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 8);
740 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&green
), 8);
741 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&blue
), 8);
742 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&alpha
), 8);
744 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
745 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
749 #define X_GLrop_Color4dv 15
751 __indirect_glColor4dv(const GLdouble
* v
)
753 generic_32_byte(X_GLrop_Color4dv
, v
);
756 #define X_GLrop_Color4fv 16
758 __indirect_glColor4f(GLfloat red
, GLfloat green
, GLfloat blue
, GLfloat alpha
)
760 __GLXcontext
*const gc
= __glXGetCurrentContext();
761 const GLuint cmdlen
= 20;
762 emit_header(gc
->pc
, X_GLrop_Color4fv
, cmdlen
);
763 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
764 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
765 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
766 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
768 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
769 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
773 #define X_GLrop_Color4fv 16
775 __indirect_glColor4fv(const GLfloat
* v
)
777 generic_16_byte(X_GLrop_Color4fv
, v
);
780 #define X_GLrop_Color4iv 17
782 __indirect_glColor4i(GLint red
, GLint green
, GLint blue
, GLint alpha
)
784 __GLXcontext
*const gc
= __glXGetCurrentContext();
785 const GLuint cmdlen
= 20;
786 emit_header(gc
->pc
, X_GLrop_Color4iv
, cmdlen
);
787 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
788 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
789 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
790 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
792 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
793 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
797 #define X_GLrop_Color4iv 17
799 __indirect_glColor4iv(const GLint
* v
)
801 generic_16_byte(X_GLrop_Color4iv
, v
);
804 #define X_GLrop_Color4sv 18
806 __indirect_glColor4s(GLshort red
, GLshort green
, GLshort blue
, GLshort alpha
)
808 __GLXcontext
*const gc
= __glXGetCurrentContext();
809 const GLuint cmdlen
= 12;
810 emit_header(gc
->pc
, X_GLrop_Color4sv
, cmdlen
);
811 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
812 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
813 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
814 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&alpha
), 2);
816 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
817 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
821 #define X_GLrop_Color4sv 18
823 __indirect_glColor4sv(const GLshort
* v
)
825 generic_8_byte(X_GLrop_Color4sv
, v
);
828 #define X_GLrop_Color4ubv 19
830 __indirect_glColor4ub(GLubyte red
, GLubyte green
, GLubyte blue
, GLubyte alpha
)
832 __GLXcontext
*const gc
= __glXGetCurrentContext();
833 const GLuint cmdlen
= 8;
834 emit_header(gc
->pc
, X_GLrop_Color4ubv
, cmdlen
);
835 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
836 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
837 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
838 (void) memcpy((void *) (gc
->pc
+ 7), (void *) (&alpha
), 1);
840 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
841 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
845 #define X_GLrop_Color4ubv 19
847 __indirect_glColor4ubv(const GLubyte
* v
)
849 generic_4_byte(X_GLrop_Color4ubv
, v
);
852 #define X_GLrop_Color4uiv 20
854 __indirect_glColor4ui(GLuint red
, GLuint green
, GLuint blue
, GLuint alpha
)
856 __GLXcontext
*const gc
= __glXGetCurrentContext();
857 const GLuint cmdlen
= 20;
858 emit_header(gc
->pc
, X_GLrop_Color4uiv
, cmdlen
);
859 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
860 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
861 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
862 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
864 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
865 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
869 #define X_GLrop_Color4uiv 20
871 __indirect_glColor4uiv(const GLuint
* v
)
873 generic_16_byte(X_GLrop_Color4uiv
, v
);
876 #define X_GLrop_Color4usv 21
878 __indirect_glColor4us(GLushort red
, GLushort green
, GLushort blue
,
881 __GLXcontext
*const gc
= __glXGetCurrentContext();
882 const GLuint cmdlen
= 12;
883 emit_header(gc
->pc
, X_GLrop_Color4usv
, cmdlen
);
884 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
885 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
886 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
887 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&alpha
), 2);
889 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
890 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
894 #define X_GLrop_Color4usv 21
896 __indirect_glColor4usv(const GLushort
* v
)
898 generic_8_byte(X_GLrop_Color4usv
, v
);
901 #define X_GLrop_EdgeFlagv 22
903 __indirect_glEdgeFlag(GLboolean flag
)
905 __GLXcontext
*const gc
= __glXGetCurrentContext();
906 const GLuint cmdlen
= 8;
907 emit_header(gc
->pc
, X_GLrop_EdgeFlagv
, cmdlen
);
908 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&flag
), 1);
910 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
911 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
915 #define X_GLrop_EdgeFlagv 22
917 __indirect_glEdgeFlagv(const GLboolean
* flag
)
919 __GLXcontext
*const gc
= __glXGetCurrentContext();
920 const GLuint cmdlen
= 8;
921 emit_header(gc
->pc
, X_GLrop_EdgeFlagv
, cmdlen
);
922 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (flag
), 1);
924 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
925 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
929 #define X_GLrop_End 23
931 __indirect_glEnd(void)
933 __GLXcontext
*const gc
= __glXGetCurrentContext();
934 const GLuint cmdlen
= 4;
935 emit_header(gc
->pc
, X_GLrop_End
, cmdlen
);
937 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
938 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
942 #define X_GLrop_Indexdv 24
944 __indirect_glIndexd(GLdouble c
)
946 __GLXcontext
*const gc
= __glXGetCurrentContext();
947 const GLuint cmdlen
= 12;
948 emit_header(gc
->pc
, X_GLrop_Indexdv
, cmdlen
);
949 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 8);
951 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
952 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
956 #define X_GLrop_Indexdv 24
958 __indirect_glIndexdv(const GLdouble
* c
)
960 generic_8_byte(X_GLrop_Indexdv
, c
);
963 #define X_GLrop_Indexfv 25
965 __indirect_glIndexf(GLfloat c
)
967 __GLXcontext
*const gc
= __glXGetCurrentContext();
968 const GLuint cmdlen
= 8;
969 emit_header(gc
->pc
, X_GLrop_Indexfv
, cmdlen
);
970 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 4);
972 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
973 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
977 #define X_GLrop_Indexfv 25
979 __indirect_glIndexfv(const GLfloat
* c
)
981 generic_4_byte(X_GLrop_Indexfv
, c
);
984 #define X_GLrop_Indexiv 26
986 __indirect_glIndexi(GLint c
)
988 __GLXcontext
*const gc
= __glXGetCurrentContext();
989 const GLuint cmdlen
= 8;
990 emit_header(gc
->pc
, X_GLrop_Indexiv
, cmdlen
);
991 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 4);
993 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
994 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
998 #define X_GLrop_Indexiv 26
1000 __indirect_glIndexiv(const GLint
* c
)
1002 generic_4_byte(X_GLrop_Indexiv
, c
);
1005 #define X_GLrop_Indexsv 27
1007 __indirect_glIndexs(GLshort c
)
1009 __GLXcontext
*const gc
= __glXGetCurrentContext();
1010 const GLuint cmdlen
= 8;
1011 emit_header(gc
->pc
, X_GLrop_Indexsv
, cmdlen
);
1012 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 2);
1014 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1015 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1019 #define X_GLrop_Indexsv 27
1021 __indirect_glIndexsv(const GLshort
* c
)
1023 __GLXcontext
*const gc
= __glXGetCurrentContext();
1024 const GLuint cmdlen
= 8;
1025 emit_header(gc
->pc
, X_GLrop_Indexsv
, cmdlen
);
1026 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (c
), 2);
1028 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1029 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1033 #define X_GLrop_Normal3bv 28
1035 __indirect_glNormal3b(GLbyte nx
, GLbyte ny
, GLbyte nz
)
1037 __GLXcontext
*const gc
= __glXGetCurrentContext();
1038 const GLuint cmdlen
= 8;
1039 emit_header(gc
->pc
, X_GLrop_Normal3bv
, cmdlen
);
1040 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&nx
), 1);
1041 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&ny
), 1);
1042 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&nz
), 1);
1044 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1045 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1049 #define X_GLrop_Normal3bv 28
1051 __indirect_glNormal3bv(const GLbyte
* v
)
1053 generic_3_byte(X_GLrop_Normal3bv
, v
);
1056 #define X_GLrop_Normal3dv 29
1058 __indirect_glNormal3d(GLdouble nx
, GLdouble ny
, GLdouble nz
)
1060 __GLXcontext
*const gc
= __glXGetCurrentContext();
1061 const GLuint cmdlen
= 28;
1062 emit_header(gc
->pc
, X_GLrop_Normal3dv
, cmdlen
);
1063 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&nx
), 8);
1064 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&ny
), 8);
1065 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&nz
), 8);
1067 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1068 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1072 #define X_GLrop_Normal3dv 29
1074 __indirect_glNormal3dv(const GLdouble
* v
)
1076 generic_24_byte(X_GLrop_Normal3dv
, v
);
1079 #define X_GLrop_Normal3fv 30
1081 __indirect_glNormal3f(GLfloat nx
, GLfloat ny
, GLfloat nz
)
1083 __GLXcontext
*const gc
= __glXGetCurrentContext();
1084 const GLuint cmdlen
= 16;
1085 emit_header(gc
->pc
, X_GLrop_Normal3fv
, cmdlen
);
1086 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&nx
), 4);
1087 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&ny
), 4);
1088 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&nz
), 4);
1090 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1091 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1095 #define X_GLrop_Normal3fv 30
1097 __indirect_glNormal3fv(const GLfloat
* v
)
1099 generic_12_byte(X_GLrop_Normal3fv
, v
);
1102 #define X_GLrop_Normal3iv 31
1104 __indirect_glNormal3i(GLint nx
, GLint ny
, GLint nz
)
1106 __GLXcontext
*const gc
= __glXGetCurrentContext();
1107 const GLuint cmdlen
= 16;
1108 emit_header(gc
->pc
, X_GLrop_Normal3iv
, cmdlen
);
1109 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&nx
), 4);
1110 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&ny
), 4);
1111 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&nz
), 4);
1113 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1114 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1118 #define X_GLrop_Normal3iv 31
1120 __indirect_glNormal3iv(const GLint
* v
)
1122 generic_12_byte(X_GLrop_Normal3iv
, v
);
1125 #define X_GLrop_Normal3sv 32
1127 __indirect_glNormal3s(GLshort nx
, GLshort ny
, GLshort nz
)
1129 __GLXcontext
*const gc
= __glXGetCurrentContext();
1130 const GLuint cmdlen
= 12;
1131 emit_header(gc
->pc
, X_GLrop_Normal3sv
, cmdlen
);
1132 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&nx
), 2);
1133 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&ny
), 2);
1134 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&nz
), 2);
1136 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1137 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1141 #define X_GLrop_Normal3sv 32
1143 __indirect_glNormal3sv(const GLshort
* v
)
1145 generic_6_byte(X_GLrop_Normal3sv
, v
);
1148 #define X_GLrop_RasterPos2dv 33
1150 __indirect_glRasterPos2d(GLdouble x
, GLdouble y
)
1152 __GLXcontext
*const gc
= __glXGetCurrentContext();
1153 const GLuint cmdlen
= 20;
1154 emit_header(gc
->pc
, X_GLrop_RasterPos2dv
, cmdlen
);
1155 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
1156 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
1158 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1159 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1163 #define X_GLrop_RasterPos2dv 33
1165 __indirect_glRasterPos2dv(const GLdouble
* v
)
1167 generic_16_byte(X_GLrop_RasterPos2dv
, v
);
1170 #define X_GLrop_RasterPos2fv 34
1172 __indirect_glRasterPos2f(GLfloat x
, GLfloat y
)
1174 __GLXcontext
*const gc
= __glXGetCurrentContext();
1175 const GLuint cmdlen
= 12;
1176 emit_header(gc
->pc
, X_GLrop_RasterPos2fv
, cmdlen
);
1177 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1178 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1180 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1181 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1185 #define X_GLrop_RasterPos2fv 34
1187 __indirect_glRasterPos2fv(const GLfloat
* v
)
1189 generic_8_byte(X_GLrop_RasterPos2fv
, v
);
1192 #define X_GLrop_RasterPos2iv 35
1194 __indirect_glRasterPos2i(GLint x
, GLint y
)
1196 __GLXcontext
*const gc
= __glXGetCurrentContext();
1197 const GLuint cmdlen
= 12;
1198 emit_header(gc
->pc
, X_GLrop_RasterPos2iv
, cmdlen
);
1199 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1200 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1202 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1203 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1207 #define X_GLrop_RasterPos2iv 35
1209 __indirect_glRasterPos2iv(const GLint
* v
)
1211 generic_8_byte(X_GLrop_RasterPos2iv
, v
);
1214 #define X_GLrop_RasterPos2sv 36
1216 __indirect_glRasterPos2s(GLshort x
, GLshort y
)
1218 __GLXcontext
*const gc
= __glXGetCurrentContext();
1219 const GLuint cmdlen
= 8;
1220 emit_header(gc
->pc
, X_GLrop_RasterPos2sv
, cmdlen
);
1221 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
1222 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
1224 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1225 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1229 #define X_GLrop_RasterPos2sv 36
1231 __indirect_glRasterPos2sv(const GLshort
* v
)
1233 generic_4_byte(X_GLrop_RasterPos2sv
, v
);
1236 #define X_GLrop_RasterPos3dv 37
1238 __indirect_glRasterPos3d(GLdouble x
, GLdouble y
, GLdouble z
)
1240 __GLXcontext
*const gc
= __glXGetCurrentContext();
1241 const GLuint cmdlen
= 28;
1242 emit_header(gc
->pc
, X_GLrop_RasterPos3dv
, cmdlen
);
1243 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
1244 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
1245 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
1247 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1248 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1252 #define X_GLrop_RasterPos3dv 37
1254 __indirect_glRasterPos3dv(const GLdouble
* v
)
1256 generic_24_byte(X_GLrop_RasterPos3dv
, v
);
1259 #define X_GLrop_RasterPos3fv 38
1261 __indirect_glRasterPos3f(GLfloat x
, GLfloat y
, GLfloat z
)
1263 __GLXcontext
*const gc
= __glXGetCurrentContext();
1264 const GLuint cmdlen
= 16;
1265 emit_header(gc
->pc
, X_GLrop_RasterPos3fv
, cmdlen
);
1266 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1267 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1268 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
1270 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1271 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1275 #define X_GLrop_RasterPos3fv 38
1277 __indirect_glRasterPos3fv(const GLfloat
* v
)
1279 generic_12_byte(X_GLrop_RasterPos3fv
, v
);
1282 #define X_GLrop_RasterPos3iv 39
1284 __indirect_glRasterPos3i(GLint x
, GLint y
, GLint z
)
1286 __GLXcontext
*const gc
= __glXGetCurrentContext();
1287 const GLuint cmdlen
= 16;
1288 emit_header(gc
->pc
, X_GLrop_RasterPos3iv
, cmdlen
);
1289 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1290 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1291 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
1293 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1294 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1298 #define X_GLrop_RasterPos3iv 39
1300 __indirect_glRasterPos3iv(const GLint
* v
)
1302 generic_12_byte(X_GLrop_RasterPos3iv
, v
);
1305 #define X_GLrop_RasterPos3sv 40
1307 __indirect_glRasterPos3s(GLshort x
, GLshort y
, GLshort z
)
1309 __GLXcontext
*const gc
= __glXGetCurrentContext();
1310 const GLuint cmdlen
= 12;
1311 emit_header(gc
->pc
, X_GLrop_RasterPos3sv
, cmdlen
);
1312 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
1313 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
1314 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&z
), 2);
1316 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1317 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1321 #define X_GLrop_RasterPos3sv 40
1323 __indirect_glRasterPos3sv(const GLshort
* v
)
1325 generic_6_byte(X_GLrop_RasterPos3sv
, v
);
1328 #define X_GLrop_RasterPos4dv 41
1330 __indirect_glRasterPos4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
1332 __GLXcontext
*const gc
= __glXGetCurrentContext();
1333 const GLuint cmdlen
= 36;
1334 emit_header(gc
->pc
, X_GLrop_RasterPos4dv
, cmdlen
);
1335 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
1336 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
1337 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
1338 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&w
), 8);
1340 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1341 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1345 #define X_GLrop_RasterPos4dv 41
1347 __indirect_glRasterPos4dv(const GLdouble
* v
)
1349 generic_32_byte(X_GLrop_RasterPos4dv
, v
);
1352 #define X_GLrop_RasterPos4fv 42
1354 __indirect_glRasterPos4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
1356 __GLXcontext
*const gc
= __glXGetCurrentContext();
1357 const GLuint cmdlen
= 20;
1358 emit_header(gc
->pc
, X_GLrop_RasterPos4fv
, cmdlen
);
1359 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1360 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1361 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
1362 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&w
), 4);
1364 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1365 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1369 #define X_GLrop_RasterPos4fv 42
1371 __indirect_glRasterPos4fv(const GLfloat
* v
)
1373 generic_16_byte(X_GLrop_RasterPos4fv
, v
);
1376 #define X_GLrop_RasterPos4iv 43
1378 __indirect_glRasterPos4i(GLint x
, GLint y
, GLint z
, GLint w
)
1380 __GLXcontext
*const gc
= __glXGetCurrentContext();
1381 const GLuint cmdlen
= 20;
1382 emit_header(gc
->pc
, X_GLrop_RasterPos4iv
, cmdlen
);
1383 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1384 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1385 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
1386 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&w
), 4);
1388 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1389 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1393 #define X_GLrop_RasterPos4iv 43
1395 __indirect_glRasterPos4iv(const GLint
* v
)
1397 generic_16_byte(X_GLrop_RasterPos4iv
, v
);
1400 #define X_GLrop_RasterPos4sv 44
1402 __indirect_glRasterPos4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
1404 __GLXcontext
*const gc
= __glXGetCurrentContext();
1405 const GLuint cmdlen
= 12;
1406 emit_header(gc
->pc
, X_GLrop_RasterPos4sv
, cmdlen
);
1407 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
1408 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
1409 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&z
), 2);
1410 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&w
), 2);
1412 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1413 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1417 #define X_GLrop_RasterPos4sv 44
1419 __indirect_glRasterPos4sv(const GLshort
* v
)
1421 generic_8_byte(X_GLrop_RasterPos4sv
, v
);
1424 #define X_GLrop_Rectdv 45
1426 __indirect_glRectd(GLdouble x1
, GLdouble y1
, GLdouble x2
, GLdouble y2
)
1428 __GLXcontext
*const gc
= __glXGetCurrentContext();
1429 const GLuint cmdlen
= 36;
1430 emit_header(gc
->pc
, X_GLrop_Rectdv
, cmdlen
);
1431 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x1
), 8);
1432 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y1
), 8);
1433 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&x2
), 8);
1434 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&y2
), 8);
1436 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1437 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1441 #define X_GLrop_Rectdv 45
1443 __indirect_glRectdv(const GLdouble
* v1
, const GLdouble
* v2
)
1445 __GLXcontext
*const gc
= __glXGetCurrentContext();
1446 const GLuint cmdlen
= 36;
1447 emit_header(gc
->pc
, X_GLrop_Rectdv
, cmdlen
);
1448 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v1
), 16);
1449 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (v2
), 16);
1451 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1452 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1456 #define X_GLrop_Rectfv 46
1458 __indirect_glRectf(GLfloat x1
, GLfloat y1
, GLfloat x2
, GLfloat y2
)
1460 __GLXcontext
*const gc
= __glXGetCurrentContext();
1461 const GLuint cmdlen
= 20;
1462 emit_header(gc
->pc
, X_GLrop_Rectfv
, cmdlen
);
1463 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x1
), 4);
1464 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y1
), 4);
1465 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x2
), 4);
1466 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y2
), 4);
1468 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1469 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1473 #define X_GLrop_Rectfv 46
1475 __indirect_glRectfv(const GLfloat
* v1
, const GLfloat
* v2
)
1477 __GLXcontext
*const gc
= __glXGetCurrentContext();
1478 const GLuint cmdlen
= 20;
1479 emit_header(gc
->pc
, X_GLrop_Rectfv
, cmdlen
);
1480 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v1
), 8);
1481 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v2
), 8);
1483 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1484 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1488 #define X_GLrop_Rectiv 47
1490 __indirect_glRecti(GLint x1
, GLint y1
, GLint x2
, GLint y2
)
1492 __GLXcontext
*const gc
= __glXGetCurrentContext();
1493 const GLuint cmdlen
= 20;
1494 emit_header(gc
->pc
, X_GLrop_Rectiv
, cmdlen
);
1495 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x1
), 4);
1496 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y1
), 4);
1497 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x2
), 4);
1498 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y2
), 4);
1500 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1501 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1505 #define X_GLrop_Rectiv 47
1507 __indirect_glRectiv(const GLint
* v1
, const GLint
* v2
)
1509 __GLXcontext
*const gc
= __glXGetCurrentContext();
1510 const GLuint cmdlen
= 20;
1511 emit_header(gc
->pc
, X_GLrop_Rectiv
, cmdlen
);
1512 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v1
), 8);
1513 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v2
), 8);
1515 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1516 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1520 #define X_GLrop_Rectsv 48
1522 __indirect_glRects(GLshort x1
, GLshort y1
, GLshort x2
, GLshort y2
)
1524 __GLXcontext
*const gc
= __glXGetCurrentContext();
1525 const GLuint cmdlen
= 12;
1526 emit_header(gc
->pc
, X_GLrop_Rectsv
, cmdlen
);
1527 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x1
), 2);
1528 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y1
), 2);
1529 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x2
), 2);
1530 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y2
), 2);
1532 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1533 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1537 #define X_GLrop_Rectsv 48
1539 __indirect_glRectsv(const GLshort
* v1
, const GLshort
* v2
)
1541 __GLXcontext
*const gc
= __glXGetCurrentContext();
1542 const GLuint cmdlen
= 12;
1543 emit_header(gc
->pc
, X_GLrop_Rectsv
, cmdlen
);
1544 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v1
), 4);
1545 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v2
), 4);
1547 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1548 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1552 #define X_GLrop_TexCoord1dv 49
1554 __indirect_glTexCoord1d(GLdouble s
)
1556 __GLXcontext
*const gc
= __glXGetCurrentContext();
1557 const GLuint cmdlen
= 12;
1558 emit_header(gc
->pc
, X_GLrop_TexCoord1dv
, cmdlen
);
1559 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
1561 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1562 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1566 #define X_GLrop_TexCoord1dv 49
1568 __indirect_glTexCoord1dv(const GLdouble
* v
)
1570 generic_8_byte(X_GLrop_TexCoord1dv
, v
);
1573 #define X_GLrop_TexCoord1fv 50
1575 __indirect_glTexCoord1f(GLfloat s
)
1577 __GLXcontext
*const gc
= __glXGetCurrentContext();
1578 const GLuint cmdlen
= 8;
1579 emit_header(gc
->pc
, X_GLrop_TexCoord1fv
, cmdlen
);
1580 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1582 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1583 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1587 #define X_GLrop_TexCoord1fv 50
1589 __indirect_glTexCoord1fv(const GLfloat
* v
)
1591 generic_4_byte(X_GLrop_TexCoord1fv
, v
);
1594 #define X_GLrop_TexCoord1iv 51
1596 __indirect_glTexCoord1i(GLint s
)
1598 __GLXcontext
*const gc
= __glXGetCurrentContext();
1599 const GLuint cmdlen
= 8;
1600 emit_header(gc
->pc
, X_GLrop_TexCoord1iv
, cmdlen
);
1601 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1603 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1604 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1608 #define X_GLrop_TexCoord1iv 51
1610 __indirect_glTexCoord1iv(const GLint
* v
)
1612 generic_4_byte(X_GLrop_TexCoord1iv
, v
);
1615 #define X_GLrop_TexCoord1sv 52
1617 __indirect_glTexCoord1s(GLshort s
)
1619 __GLXcontext
*const gc
= __glXGetCurrentContext();
1620 const GLuint cmdlen
= 8;
1621 emit_header(gc
->pc
, X_GLrop_TexCoord1sv
, cmdlen
);
1622 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 2);
1624 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1625 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1629 #define X_GLrop_TexCoord1sv 52
1631 __indirect_glTexCoord1sv(const GLshort
* v
)
1633 __GLXcontext
*const gc
= __glXGetCurrentContext();
1634 const GLuint cmdlen
= 8;
1635 emit_header(gc
->pc
, X_GLrop_TexCoord1sv
, cmdlen
);
1636 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 2);
1638 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1639 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1643 #define X_GLrop_TexCoord2dv 53
1645 __indirect_glTexCoord2d(GLdouble s
, GLdouble t
)
1647 __GLXcontext
*const gc
= __glXGetCurrentContext();
1648 const GLuint cmdlen
= 20;
1649 emit_header(gc
->pc
, X_GLrop_TexCoord2dv
, cmdlen
);
1650 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
1651 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
1653 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1654 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1658 #define X_GLrop_TexCoord2dv 53
1660 __indirect_glTexCoord2dv(const GLdouble
* v
)
1662 generic_16_byte(X_GLrop_TexCoord2dv
, v
);
1665 #define X_GLrop_TexCoord2fv 54
1667 __indirect_glTexCoord2f(GLfloat s
, GLfloat t
)
1669 __GLXcontext
*const gc
= __glXGetCurrentContext();
1670 const GLuint cmdlen
= 12;
1671 emit_header(gc
->pc
, X_GLrop_TexCoord2fv
, cmdlen
);
1672 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1673 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1675 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1676 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1680 #define X_GLrop_TexCoord2fv 54
1682 __indirect_glTexCoord2fv(const GLfloat
* v
)
1684 generic_8_byte(X_GLrop_TexCoord2fv
, v
);
1687 #define X_GLrop_TexCoord2iv 55
1689 __indirect_glTexCoord2i(GLint s
, GLint t
)
1691 __GLXcontext
*const gc
= __glXGetCurrentContext();
1692 const GLuint cmdlen
= 12;
1693 emit_header(gc
->pc
, X_GLrop_TexCoord2iv
, cmdlen
);
1694 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1695 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1697 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1698 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1702 #define X_GLrop_TexCoord2iv 55
1704 __indirect_glTexCoord2iv(const GLint
* v
)
1706 generic_8_byte(X_GLrop_TexCoord2iv
, v
);
1709 #define X_GLrop_TexCoord2sv 56
1711 __indirect_glTexCoord2s(GLshort s
, GLshort t
)
1713 __GLXcontext
*const gc
= __glXGetCurrentContext();
1714 const GLuint cmdlen
= 8;
1715 emit_header(gc
->pc
, X_GLrop_TexCoord2sv
, cmdlen
);
1716 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 2);
1717 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&t
), 2);
1719 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1720 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1724 #define X_GLrop_TexCoord2sv 56
1726 __indirect_glTexCoord2sv(const GLshort
* v
)
1728 generic_4_byte(X_GLrop_TexCoord2sv
, v
);
1731 #define X_GLrop_TexCoord3dv 57
1733 __indirect_glTexCoord3d(GLdouble s
, GLdouble t
, GLdouble r
)
1735 __GLXcontext
*const gc
= __glXGetCurrentContext();
1736 const GLuint cmdlen
= 28;
1737 emit_header(gc
->pc
, X_GLrop_TexCoord3dv
, cmdlen
);
1738 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
1739 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
1740 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&r
), 8);
1742 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1743 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1747 #define X_GLrop_TexCoord3dv 57
1749 __indirect_glTexCoord3dv(const GLdouble
* v
)
1751 generic_24_byte(X_GLrop_TexCoord3dv
, v
);
1754 #define X_GLrop_TexCoord3fv 58
1756 __indirect_glTexCoord3f(GLfloat s
, GLfloat t
, GLfloat r
)
1758 __GLXcontext
*const gc
= __glXGetCurrentContext();
1759 const GLuint cmdlen
= 16;
1760 emit_header(gc
->pc
, X_GLrop_TexCoord3fv
, cmdlen
);
1761 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1762 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1763 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 4);
1765 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1766 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1770 #define X_GLrop_TexCoord3fv 58
1772 __indirect_glTexCoord3fv(const GLfloat
* v
)
1774 generic_12_byte(X_GLrop_TexCoord3fv
, v
);
1777 #define X_GLrop_TexCoord3iv 59
1779 __indirect_glTexCoord3i(GLint s
, GLint t
, GLint r
)
1781 __GLXcontext
*const gc
= __glXGetCurrentContext();
1782 const GLuint cmdlen
= 16;
1783 emit_header(gc
->pc
, X_GLrop_TexCoord3iv
, cmdlen
);
1784 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1785 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1786 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 4);
1788 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1789 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1793 #define X_GLrop_TexCoord3iv 59
1795 __indirect_glTexCoord3iv(const GLint
* v
)
1797 generic_12_byte(X_GLrop_TexCoord3iv
, v
);
1800 #define X_GLrop_TexCoord3sv 60
1802 __indirect_glTexCoord3s(GLshort s
, GLshort t
, GLshort r
)
1804 __GLXcontext
*const gc
= __glXGetCurrentContext();
1805 const GLuint cmdlen
= 12;
1806 emit_header(gc
->pc
, X_GLrop_TexCoord3sv
, cmdlen
);
1807 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 2);
1808 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&t
), 2);
1809 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&r
), 2);
1811 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1812 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1816 #define X_GLrop_TexCoord3sv 60
1818 __indirect_glTexCoord3sv(const GLshort
* v
)
1820 generic_6_byte(X_GLrop_TexCoord3sv
, v
);
1823 #define X_GLrop_TexCoord4dv 61
1825 __indirect_glTexCoord4d(GLdouble s
, GLdouble t
, GLdouble r
, GLdouble q
)
1827 __GLXcontext
*const gc
= __glXGetCurrentContext();
1828 const GLuint cmdlen
= 36;
1829 emit_header(gc
->pc
, X_GLrop_TexCoord4dv
, cmdlen
);
1830 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
1831 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
1832 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&r
), 8);
1833 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&q
), 8);
1835 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1836 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1840 #define X_GLrop_TexCoord4dv 61
1842 __indirect_glTexCoord4dv(const GLdouble
* v
)
1844 generic_32_byte(X_GLrop_TexCoord4dv
, v
);
1847 #define X_GLrop_TexCoord4fv 62
1849 __indirect_glTexCoord4f(GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
)
1851 __GLXcontext
*const gc
= __glXGetCurrentContext();
1852 const GLuint cmdlen
= 20;
1853 emit_header(gc
->pc
, X_GLrop_TexCoord4fv
, cmdlen
);
1854 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1855 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1856 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 4);
1857 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&q
), 4);
1859 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1860 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1864 #define X_GLrop_TexCoord4fv 62
1866 __indirect_glTexCoord4fv(const GLfloat
* v
)
1868 generic_16_byte(X_GLrop_TexCoord4fv
, v
);
1871 #define X_GLrop_TexCoord4iv 63
1873 __indirect_glTexCoord4i(GLint s
, GLint t
, GLint r
, GLint q
)
1875 __GLXcontext
*const gc
= __glXGetCurrentContext();
1876 const GLuint cmdlen
= 20;
1877 emit_header(gc
->pc
, X_GLrop_TexCoord4iv
, cmdlen
);
1878 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
1879 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&t
), 4);
1880 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 4);
1881 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&q
), 4);
1883 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1884 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1888 #define X_GLrop_TexCoord4iv 63
1890 __indirect_glTexCoord4iv(const GLint
* v
)
1892 generic_16_byte(X_GLrop_TexCoord4iv
, v
);
1895 #define X_GLrop_TexCoord4sv 64
1897 __indirect_glTexCoord4s(GLshort s
, GLshort t
, GLshort r
, GLshort q
)
1899 __GLXcontext
*const gc
= __glXGetCurrentContext();
1900 const GLuint cmdlen
= 12;
1901 emit_header(gc
->pc
, X_GLrop_TexCoord4sv
, cmdlen
);
1902 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 2);
1903 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&t
), 2);
1904 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&r
), 2);
1905 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&q
), 2);
1907 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1908 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1912 #define X_GLrop_TexCoord4sv 64
1914 __indirect_glTexCoord4sv(const GLshort
* v
)
1916 generic_8_byte(X_GLrop_TexCoord4sv
, v
);
1919 #define X_GLrop_Vertex2dv 65
1921 __indirect_glVertex2d(GLdouble x
, GLdouble y
)
1923 __GLXcontext
*const gc
= __glXGetCurrentContext();
1924 const GLuint cmdlen
= 20;
1925 emit_header(gc
->pc
, X_GLrop_Vertex2dv
, cmdlen
);
1926 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
1927 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
1929 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1930 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1934 #define X_GLrop_Vertex2dv 65
1936 __indirect_glVertex2dv(const GLdouble
* v
)
1938 generic_16_byte(X_GLrop_Vertex2dv
, v
);
1941 #define X_GLrop_Vertex2fv 66
1943 __indirect_glVertex2f(GLfloat x
, GLfloat y
)
1945 __GLXcontext
*const gc
= __glXGetCurrentContext();
1946 const GLuint cmdlen
= 12;
1947 emit_header(gc
->pc
, X_GLrop_Vertex2fv
, cmdlen
);
1948 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1949 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1951 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1952 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1956 #define X_GLrop_Vertex2fv 66
1958 __indirect_glVertex2fv(const GLfloat
* v
)
1960 generic_8_byte(X_GLrop_Vertex2fv
, v
);
1963 #define X_GLrop_Vertex2iv 67
1965 __indirect_glVertex2i(GLint x
, GLint y
)
1967 __GLXcontext
*const gc
= __glXGetCurrentContext();
1968 const GLuint cmdlen
= 12;
1969 emit_header(gc
->pc
, X_GLrop_Vertex2iv
, cmdlen
);
1970 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
1971 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
1973 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1974 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
1978 #define X_GLrop_Vertex2iv 67
1980 __indirect_glVertex2iv(const GLint
* v
)
1982 generic_8_byte(X_GLrop_Vertex2iv
, v
);
1985 #define X_GLrop_Vertex2sv 68
1987 __indirect_glVertex2s(GLshort x
, GLshort y
)
1989 __GLXcontext
*const gc
= __glXGetCurrentContext();
1990 const GLuint cmdlen
= 8;
1991 emit_header(gc
->pc
, X_GLrop_Vertex2sv
, cmdlen
);
1992 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
1993 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
1995 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
1996 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2000 #define X_GLrop_Vertex2sv 68
2002 __indirect_glVertex2sv(const GLshort
* v
)
2004 generic_4_byte(X_GLrop_Vertex2sv
, v
);
2007 #define X_GLrop_Vertex3dv 69
2009 __indirect_glVertex3d(GLdouble x
, GLdouble y
, GLdouble z
)
2011 __GLXcontext
*const gc
= __glXGetCurrentContext();
2012 const GLuint cmdlen
= 28;
2013 emit_header(gc
->pc
, X_GLrop_Vertex3dv
, cmdlen
);
2014 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
2015 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
2016 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
2018 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2019 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2023 #define X_GLrop_Vertex3dv 69
2025 __indirect_glVertex3dv(const GLdouble
* v
)
2027 generic_24_byte(X_GLrop_Vertex3dv
, v
);
2030 #define X_GLrop_Vertex3fv 70
2032 __indirect_glVertex3f(GLfloat x
, GLfloat y
, GLfloat z
)
2034 __GLXcontext
*const gc
= __glXGetCurrentContext();
2035 const GLuint cmdlen
= 16;
2036 emit_header(gc
->pc
, X_GLrop_Vertex3fv
, cmdlen
);
2037 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
2038 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
2039 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
2041 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2042 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2046 #define X_GLrop_Vertex3fv 70
2048 __indirect_glVertex3fv(const GLfloat
* v
)
2050 generic_12_byte(X_GLrop_Vertex3fv
, v
);
2053 #define X_GLrop_Vertex3iv 71
2055 __indirect_glVertex3i(GLint x
, GLint y
, GLint z
)
2057 __GLXcontext
*const gc
= __glXGetCurrentContext();
2058 const GLuint cmdlen
= 16;
2059 emit_header(gc
->pc
, X_GLrop_Vertex3iv
, cmdlen
);
2060 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
2061 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
2062 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
2064 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2065 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2069 #define X_GLrop_Vertex3iv 71
2071 __indirect_glVertex3iv(const GLint
* v
)
2073 generic_12_byte(X_GLrop_Vertex3iv
, v
);
2076 #define X_GLrop_Vertex3sv 72
2078 __indirect_glVertex3s(GLshort x
, GLshort y
, GLshort z
)
2080 __GLXcontext
*const gc
= __glXGetCurrentContext();
2081 const GLuint cmdlen
= 12;
2082 emit_header(gc
->pc
, X_GLrop_Vertex3sv
, cmdlen
);
2083 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
2084 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
2085 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&z
), 2);
2087 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2088 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2092 #define X_GLrop_Vertex3sv 72
2094 __indirect_glVertex3sv(const GLshort
* v
)
2096 generic_6_byte(X_GLrop_Vertex3sv
, v
);
2099 #define X_GLrop_Vertex4dv 73
2101 __indirect_glVertex4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
2103 __GLXcontext
*const gc
= __glXGetCurrentContext();
2104 const GLuint cmdlen
= 36;
2105 emit_header(gc
->pc
, X_GLrop_Vertex4dv
, cmdlen
);
2106 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
2107 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
2108 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
2109 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&w
), 8);
2111 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2112 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2116 #define X_GLrop_Vertex4dv 73
2118 __indirect_glVertex4dv(const GLdouble
* v
)
2120 generic_32_byte(X_GLrop_Vertex4dv
, v
);
2123 #define X_GLrop_Vertex4fv 74
2125 __indirect_glVertex4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
2127 __GLXcontext
*const gc
= __glXGetCurrentContext();
2128 const GLuint cmdlen
= 20;
2129 emit_header(gc
->pc
, X_GLrop_Vertex4fv
, cmdlen
);
2130 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
2131 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
2132 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
2133 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&w
), 4);
2135 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2136 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2140 #define X_GLrop_Vertex4fv 74
2142 __indirect_glVertex4fv(const GLfloat
* v
)
2144 generic_16_byte(X_GLrop_Vertex4fv
, v
);
2147 #define X_GLrop_Vertex4iv 75
2149 __indirect_glVertex4i(GLint x
, GLint y
, GLint z
, GLint w
)
2151 __GLXcontext
*const gc
= __glXGetCurrentContext();
2152 const GLuint cmdlen
= 20;
2153 emit_header(gc
->pc
, X_GLrop_Vertex4iv
, cmdlen
);
2154 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
2155 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
2156 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
2157 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&w
), 4);
2159 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2160 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2164 #define X_GLrop_Vertex4iv 75
2166 __indirect_glVertex4iv(const GLint
* v
)
2168 generic_16_byte(X_GLrop_Vertex4iv
, v
);
2171 #define X_GLrop_Vertex4sv 76
2173 __indirect_glVertex4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
2175 __GLXcontext
*const gc
= __glXGetCurrentContext();
2176 const GLuint cmdlen
= 12;
2177 emit_header(gc
->pc
, X_GLrop_Vertex4sv
, cmdlen
);
2178 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 2);
2179 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&y
), 2);
2180 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&z
), 2);
2181 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&w
), 2);
2183 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2184 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2188 #define X_GLrop_Vertex4sv 76
2190 __indirect_glVertex4sv(const GLshort
* v
)
2192 generic_8_byte(X_GLrop_Vertex4sv
, v
);
2195 #define X_GLrop_ClipPlane 77
2197 __indirect_glClipPlane(GLenum plane
, const GLdouble
* equation
)
2199 __GLXcontext
*const gc
= __glXGetCurrentContext();
2200 const GLuint cmdlen
= 40;
2201 emit_header(gc
->pc
, X_GLrop_ClipPlane
, cmdlen
);
2202 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (equation
), 32);
2203 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&plane
), 4);
2205 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2206 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2210 #define X_GLrop_ColorMaterial 78
2212 __indirect_glColorMaterial(GLenum face
, GLenum mode
)
2214 __GLXcontext
*const gc
= __glXGetCurrentContext();
2215 const GLuint cmdlen
= 12;
2216 emit_header(gc
->pc
, X_GLrop_ColorMaterial
, cmdlen
);
2217 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2218 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mode
), 4);
2220 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2221 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2225 #define X_GLrop_CullFace 79
2227 __indirect_glCullFace(GLenum mode
)
2229 __GLXcontext
*const gc
= __glXGetCurrentContext();
2230 const GLuint cmdlen
= 8;
2231 emit_header(gc
->pc
, X_GLrop_CullFace
, cmdlen
);
2232 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
2234 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2235 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2239 #define X_GLrop_Fogf 80
2241 __indirect_glFogf(GLenum pname
, GLfloat param
)
2243 __GLXcontext
*const gc
= __glXGetCurrentContext();
2244 const GLuint cmdlen
= 12;
2245 emit_header(gc
->pc
, X_GLrop_Fogf
, cmdlen
);
2246 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2247 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
2249 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2250 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2254 #define X_GLrop_Fogfv 81
2256 __indirect_glFogfv(GLenum pname
, const GLfloat
* params
)
2258 __GLXcontext
*const gc
= __glXGetCurrentContext();
2259 const GLuint compsize
= __glFogfv_size(pname
);
2260 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
2261 emit_header(gc
->pc
, X_GLrop_Fogfv
, cmdlen
);
2262 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2263 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
2265 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2266 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2270 #define X_GLrop_Fogi 82
2272 __indirect_glFogi(GLenum pname
, GLint param
)
2274 __GLXcontext
*const gc
= __glXGetCurrentContext();
2275 const GLuint cmdlen
= 12;
2276 emit_header(gc
->pc
, X_GLrop_Fogi
, cmdlen
);
2277 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2278 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
2280 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2281 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2285 #define X_GLrop_Fogiv 83
2287 __indirect_glFogiv(GLenum pname
, const GLint
* params
)
2289 __GLXcontext
*const gc
= __glXGetCurrentContext();
2290 const GLuint compsize
= __glFogiv_size(pname
);
2291 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
2292 emit_header(gc
->pc
, X_GLrop_Fogiv
, cmdlen
);
2293 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2294 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
2296 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2297 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2301 #define X_GLrop_FrontFace 84
2303 __indirect_glFrontFace(GLenum mode
)
2305 __GLXcontext
*const gc
= __glXGetCurrentContext();
2306 const GLuint cmdlen
= 8;
2307 emit_header(gc
->pc
, X_GLrop_FrontFace
, cmdlen
);
2308 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
2310 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2311 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2315 #define X_GLrop_Hint 85
2317 __indirect_glHint(GLenum target
, GLenum mode
)
2319 __GLXcontext
*const gc
= __glXGetCurrentContext();
2320 const GLuint cmdlen
= 12;
2321 emit_header(gc
->pc
, X_GLrop_Hint
, cmdlen
);
2322 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2323 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mode
), 4);
2325 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2326 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2330 #define X_GLrop_Lightf 86
2332 __indirect_glLightf(GLenum light
, GLenum pname
, GLfloat param
)
2334 __GLXcontext
*const gc
= __glXGetCurrentContext();
2335 const GLuint cmdlen
= 16;
2336 emit_header(gc
->pc
, X_GLrop_Lightf
, cmdlen
);
2337 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&light
), 4);
2338 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2339 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2341 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2342 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2346 #define X_GLrop_Lightfv 87
2348 __indirect_glLightfv(GLenum light
, GLenum pname
, const GLfloat
* params
)
2350 __GLXcontext
*const gc
= __glXGetCurrentContext();
2351 const GLuint compsize
= __glLightfv_size(pname
);
2352 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2353 emit_header(gc
->pc
, X_GLrop_Lightfv
, cmdlen
);
2354 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&light
), 4);
2355 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2356 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2358 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2359 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2363 #define X_GLrop_Lighti 88
2365 __indirect_glLighti(GLenum light
, GLenum pname
, GLint param
)
2367 __GLXcontext
*const gc
= __glXGetCurrentContext();
2368 const GLuint cmdlen
= 16;
2369 emit_header(gc
->pc
, X_GLrop_Lighti
, cmdlen
);
2370 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&light
), 4);
2371 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2372 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2374 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2375 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2379 #define X_GLrop_Lightiv 89
2381 __indirect_glLightiv(GLenum light
, GLenum pname
, const GLint
* params
)
2383 __GLXcontext
*const gc
= __glXGetCurrentContext();
2384 const GLuint compsize
= __glLightiv_size(pname
);
2385 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2386 emit_header(gc
->pc
, X_GLrop_Lightiv
, cmdlen
);
2387 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&light
), 4);
2388 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2389 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2391 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2392 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2396 #define X_GLrop_LightModelf 90
2398 __indirect_glLightModelf(GLenum pname
, GLfloat param
)
2400 __GLXcontext
*const gc
= __glXGetCurrentContext();
2401 const GLuint cmdlen
= 12;
2402 emit_header(gc
->pc
, X_GLrop_LightModelf
, cmdlen
);
2403 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2404 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
2406 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2407 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2411 #define X_GLrop_LightModelfv 91
2413 __indirect_glLightModelfv(GLenum pname
, const GLfloat
* params
)
2415 __GLXcontext
*const gc
= __glXGetCurrentContext();
2416 const GLuint compsize
= __glLightModelfv_size(pname
);
2417 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
2418 emit_header(gc
->pc
, X_GLrop_LightModelfv
, cmdlen
);
2419 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2420 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
2422 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2423 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2427 #define X_GLrop_LightModeli 92
2429 __indirect_glLightModeli(GLenum pname
, GLint param
)
2431 __GLXcontext
*const gc
= __glXGetCurrentContext();
2432 const GLuint cmdlen
= 12;
2433 emit_header(gc
->pc
, X_GLrop_LightModeli
, cmdlen
);
2434 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2435 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
2437 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2438 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2442 #define X_GLrop_LightModeliv 93
2444 __indirect_glLightModeliv(GLenum pname
, const GLint
* params
)
2446 __GLXcontext
*const gc
= __glXGetCurrentContext();
2447 const GLuint compsize
= __glLightModeliv_size(pname
);
2448 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
2449 emit_header(gc
->pc
, X_GLrop_LightModeliv
, cmdlen
);
2450 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
2451 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
2453 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2454 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2458 #define X_GLrop_LineStipple 94
2460 __indirect_glLineStipple(GLint factor
, GLushort pattern
)
2462 __GLXcontext
*const gc
= __glXGetCurrentContext();
2463 const GLuint cmdlen
= 12;
2464 emit_header(gc
->pc
, X_GLrop_LineStipple
, cmdlen
);
2465 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&factor
), 4);
2466 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pattern
), 2);
2468 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2469 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2473 #define X_GLrop_LineWidth 95
2475 __indirect_glLineWidth(GLfloat width
)
2477 __GLXcontext
*const gc
= __glXGetCurrentContext();
2478 const GLuint cmdlen
= 8;
2479 emit_header(gc
->pc
, X_GLrop_LineWidth
, cmdlen
);
2480 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&width
), 4);
2482 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2483 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2487 #define X_GLrop_Materialf 96
2489 __indirect_glMaterialf(GLenum face
, GLenum pname
, GLfloat param
)
2491 __GLXcontext
*const gc
= __glXGetCurrentContext();
2492 const GLuint cmdlen
= 16;
2493 emit_header(gc
->pc
, X_GLrop_Materialf
, cmdlen
);
2494 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2495 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2496 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2498 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2499 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2503 #define X_GLrop_Materialfv 97
2505 __indirect_glMaterialfv(GLenum face
, GLenum pname
, const GLfloat
* params
)
2507 __GLXcontext
*const gc
= __glXGetCurrentContext();
2508 const GLuint compsize
= __glMaterialfv_size(pname
);
2509 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2510 emit_header(gc
->pc
, X_GLrop_Materialfv
, cmdlen
);
2511 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2512 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2513 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2515 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2516 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2520 #define X_GLrop_Materiali 98
2522 __indirect_glMateriali(GLenum face
, GLenum pname
, GLint param
)
2524 __GLXcontext
*const gc
= __glXGetCurrentContext();
2525 const GLuint cmdlen
= 16;
2526 emit_header(gc
->pc
, X_GLrop_Materiali
, cmdlen
);
2527 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2528 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2529 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2531 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2532 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2536 #define X_GLrop_Materialiv 99
2538 __indirect_glMaterialiv(GLenum face
, GLenum pname
, const GLint
* params
)
2540 __GLXcontext
*const gc
= __glXGetCurrentContext();
2541 const GLuint compsize
= __glMaterialiv_size(pname
);
2542 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2543 emit_header(gc
->pc
, X_GLrop_Materialiv
, cmdlen
);
2544 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2545 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2546 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2548 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2549 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2553 #define X_GLrop_PointSize 100
2555 __indirect_glPointSize(GLfloat size
)
2557 __GLXcontext
*const gc
= __glXGetCurrentContext();
2558 const GLuint cmdlen
= 8;
2559 emit_header(gc
->pc
, X_GLrop_PointSize
, cmdlen
);
2560 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&size
), 4);
2562 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2563 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2567 #define X_GLrop_PolygonMode 101
2569 __indirect_glPolygonMode(GLenum face
, GLenum mode
)
2571 __GLXcontext
*const gc
= __glXGetCurrentContext();
2572 const GLuint cmdlen
= 12;
2573 emit_header(gc
->pc
, X_GLrop_PolygonMode
, cmdlen
);
2574 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
2575 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mode
), 4);
2577 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2578 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2582 #define X_GLrop_PolygonStipple 102
2584 __indirect_glPolygonStipple(const GLubyte
* mask
)
2586 __GLXcontext
*const gc
= __glXGetCurrentContext();
2587 const GLuint compsize
=
2588 (mask
!= NULL
) ? __glImageSize(32, 32, 1, GL_COLOR_INDEX
, GL_BITMAP
,
2590 const GLuint cmdlen
= 24 + __GLX_PAD(compsize
);
2591 emit_header(gc
->pc
, X_GLrop_PolygonStipple
, cmdlen
);
2593 (*gc
->fillImage
) (gc
, 2, 32, 32, 1, GL_COLOR_INDEX
, GL_BITMAP
, mask
,
2594 gc
->pc
+ 24, gc
->pc
+ 4);
2596 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
2597 default_pixel_store_2D_size
);
2600 if (gc
->pc
> gc
->limit
) {
2601 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2605 #define X_GLrop_Scissor 103
2607 __indirect_glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2609 __GLXcontext
*const gc
= __glXGetCurrentContext();
2610 const GLuint cmdlen
= 20;
2611 emit_header(gc
->pc
, X_GLrop_Scissor
, cmdlen
);
2612 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
2613 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
2614 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&width
), 4);
2615 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&height
), 4);
2617 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2618 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2622 #define X_GLrop_ShadeModel 104
2624 __indirect_glShadeModel(GLenum mode
)
2626 __GLXcontext
*const gc
= __glXGetCurrentContext();
2627 const GLuint cmdlen
= 8;
2628 emit_header(gc
->pc
, X_GLrop_ShadeModel
, cmdlen
);
2629 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
2631 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2632 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2636 #define X_GLrop_TexParameterf 105
2638 __indirect_glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
)
2640 __GLXcontext
*const gc
= __glXGetCurrentContext();
2641 const GLuint cmdlen
= 16;
2642 emit_header(gc
->pc
, X_GLrop_TexParameterf
, cmdlen
);
2643 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2644 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2645 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2647 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2648 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2652 #define X_GLrop_TexParameterfv 106
2654 __indirect_glTexParameterfv(GLenum target
, GLenum pname
,
2655 const GLfloat
* params
)
2657 __GLXcontext
*const gc
= __glXGetCurrentContext();
2658 const GLuint compsize
= __glTexParameterfv_size(pname
);
2659 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2660 emit_header(gc
->pc
, X_GLrop_TexParameterfv
, cmdlen
);
2661 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2662 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2663 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2665 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2666 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2670 #define X_GLrop_TexParameteri 107
2672 __indirect_glTexParameteri(GLenum target
, GLenum pname
, GLint param
)
2674 __GLXcontext
*const gc
= __glXGetCurrentContext();
2675 const GLuint cmdlen
= 16;
2676 emit_header(gc
->pc
, X_GLrop_TexParameteri
, cmdlen
);
2677 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2678 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2679 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2681 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2682 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2686 #define X_GLrop_TexParameteriv 108
2688 __indirect_glTexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
)
2690 __GLXcontext
*const gc
= __glXGetCurrentContext();
2691 const GLuint compsize
= __glTexParameteriv_size(pname
);
2692 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2693 emit_header(gc
->pc
, X_GLrop_TexParameteriv
, cmdlen
);
2694 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2695 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2696 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2698 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2699 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2704 __glx_TexImage_1D2D(unsigned opcode
, unsigned dim
, GLenum target
, GLint level
,
2705 GLint internalformat
, GLsizei width
, GLsizei height
,
2706 GLint border
, GLenum format
, GLenum type
,
2707 const GLvoid
* pixels
)
2709 __GLXcontext
*const gc
= __glXGetCurrentContext();
2710 const GLuint compsize
=
2711 __glImageSize(width
, height
, 1, format
, type
, target
);
2712 const GLuint cmdlen
= 56 + __GLX_PAD(compsize
);
2713 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
2714 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
2715 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
2716 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2718 emit_header(gc
->pc
, opcode
, cmdlen
);
2719 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&target
), 4);
2720 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&level
), 4);
2721 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&internalformat
),
2723 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&width
), 4);
2724 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&height
), 4);
2725 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&border
), 4);
2726 (void) memcpy((void *) (gc
->pc
+ 48), (void *) (&format
), 4);
2727 (void) memcpy((void *) (gc
->pc
+ 52), (void *) (&type
), 4);
2728 if ((compsize
> 0) && (pixels
!= NULL
)) {
2729 (*gc
->fillImage
) (gc
, dim
, width
, height
, 1, format
, type
,
2730 pixels
, gc
->pc
+ 56, gc
->pc
+ 4);
2732 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
2733 default_pixel_store_2D_size
);
2736 if (gc
->pc
> gc
->limit
) {
2737 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2740 const GLint op
= opcode
;
2741 const GLuint cmdlenLarge
= cmdlen
+ 4;
2742 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
2743 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
2744 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
2745 (void) memcpy((void *) (pc
+ 28), (void *) (&target
), 4);
2746 (void) memcpy((void *) (pc
+ 32), (void *) (&level
), 4);
2747 (void) memcpy((void *) (pc
+ 36), (void *) (&internalformat
), 4);
2748 (void) memcpy((void *) (pc
+ 40), (void *) (&width
), 4);
2749 (void) memcpy((void *) (pc
+ 44), (void *) (&height
), 4);
2750 (void) memcpy((void *) (pc
+ 48), (void *) (&border
), 4);
2751 (void) memcpy((void *) (pc
+ 52), (void *) (&format
), 4);
2752 (void) memcpy((void *) (pc
+ 56), (void *) (&type
), 4);
2753 __glXSendLargeImage(gc
, compsize
, dim
, width
, height
, 1, format
,
2754 type
, pixels
, pc
+ 60, pc
+ 8);
2759 #define X_GLrop_TexImage1D 109
2761 __indirect_glTexImage1D(GLenum target
, GLint level
, GLint internalformat
,
2762 GLsizei width
, GLint border
, GLenum format
,
2763 GLenum type
, const GLvoid
* pixels
)
2765 __glx_TexImage_1D2D(X_GLrop_TexImage1D
, 1, target
, level
, internalformat
,
2766 width
, 1, border
, format
, type
, pixels
);
2769 #define X_GLrop_TexImage2D 110
2771 __indirect_glTexImage2D(GLenum target
, GLint level
, GLint internalformat
,
2772 GLsizei width
, GLsizei height
, GLint border
,
2773 GLenum format
, GLenum type
, const GLvoid
* pixels
)
2775 __glx_TexImage_1D2D(X_GLrop_TexImage2D
, 2, target
, level
, internalformat
,
2776 width
, height
, border
, format
, type
, pixels
);
2779 #define X_GLrop_TexEnvf 111
2781 __indirect_glTexEnvf(GLenum target
, GLenum pname
, GLfloat param
)
2783 __GLXcontext
*const gc
= __glXGetCurrentContext();
2784 const GLuint cmdlen
= 16;
2785 emit_header(gc
->pc
, X_GLrop_TexEnvf
, cmdlen
);
2786 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2787 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2788 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2790 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2791 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2795 #define X_GLrop_TexEnvfv 112
2797 __indirect_glTexEnvfv(GLenum target
, GLenum pname
, const GLfloat
* params
)
2799 __GLXcontext
*const gc
= __glXGetCurrentContext();
2800 const GLuint compsize
= __glTexEnvfv_size(pname
);
2801 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2802 emit_header(gc
->pc
, X_GLrop_TexEnvfv
, cmdlen
);
2803 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2804 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2805 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2807 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2808 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2812 #define X_GLrop_TexEnvi 113
2814 __indirect_glTexEnvi(GLenum target
, GLenum pname
, GLint param
)
2816 __GLXcontext
*const gc
= __glXGetCurrentContext();
2817 const GLuint cmdlen
= 16;
2818 emit_header(gc
->pc
, X_GLrop_TexEnvi
, cmdlen
);
2819 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2820 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2821 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2823 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2824 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2828 #define X_GLrop_TexEnviv 114
2830 __indirect_glTexEnviv(GLenum target
, GLenum pname
, const GLint
* params
)
2832 __GLXcontext
*const gc
= __glXGetCurrentContext();
2833 const GLuint compsize
= __glTexEnviv_size(pname
);
2834 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2835 emit_header(gc
->pc
, X_GLrop_TexEnviv
, cmdlen
);
2836 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
2837 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2838 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2840 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2841 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2845 #define X_GLrop_TexGend 115
2847 __indirect_glTexGend(GLenum coord
, GLenum pname
, GLdouble param
)
2849 __GLXcontext
*const gc
= __glXGetCurrentContext();
2850 const GLuint cmdlen
= 20;
2851 emit_header(gc
->pc
, X_GLrop_TexGend
, cmdlen
);
2852 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (¶m
), 8);
2853 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&coord
), 4);
2854 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&pname
), 4);
2856 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2857 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2861 #define X_GLrop_TexGendv 116
2863 __indirect_glTexGendv(GLenum coord
, GLenum pname
, const GLdouble
* params
)
2865 __GLXcontext
*const gc
= __glXGetCurrentContext();
2866 const GLuint compsize
= __glTexGendv_size(pname
);
2867 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 8));
2868 emit_header(gc
->pc
, X_GLrop_TexGendv
, cmdlen
);
2869 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
2870 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2871 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 8));
2873 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2874 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2878 #define X_GLrop_TexGenf 117
2880 __indirect_glTexGenf(GLenum coord
, GLenum pname
, GLfloat param
)
2882 __GLXcontext
*const gc
= __glXGetCurrentContext();
2883 const GLuint cmdlen
= 16;
2884 emit_header(gc
->pc
, X_GLrop_TexGenf
, cmdlen
);
2885 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
2886 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2887 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2889 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2890 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2894 #define X_GLrop_TexGenfv 118
2896 __indirect_glTexGenfv(GLenum coord
, GLenum pname
, const GLfloat
* params
)
2898 __GLXcontext
*const gc
= __glXGetCurrentContext();
2899 const GLuint compsize
= __glTexGenfv_size(pname
);
2900 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2901 emit_header(gc
->pc
, X_GLrop_TexGenfv
, cmdlen
);
2902 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
2903 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2904 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2906 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2907 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2911 #define X_GLrop_TexGeni 119
2913 __indirect_glTexGeni(GLenum coord
, GLenum pname
, GLint param
)
2915 __GLXcontext
*const gc
= __glXGetCurrentContext();
2916 const GLuint cmdlen
= 16;
2917 emit_header(gc
->pc
, X_GLrop_TexGeni
, cmdlen
);
2918 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
2919 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2920 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶m
), 4);
2922 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2923 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2927 #define X_GLrop_TexGeniv 120
2929 __indirect_glTexGeniv(GLenum coord
, GLenum pname
, const GLint
* params
)
2931 __GLXcontext
*const gc
= __glXGetCurrentContext();
2932 const GLuint compsize
= __glTexGeniv_size(pname
);
2933 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
2934 emit_header(gc
->pc
, X_GLrop_TexGeniv
, cmdlen
);
2935 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
2936 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
2937 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
2939 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2940 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2944 #define X_GLrop_InitNames 121
2946 __indirect_glInitNames(void)
2948 __GLXcontext
*const gc
= __glXGetCurrentContext();
2949 const GLuint cmdlen
= 4;
2950 emit_header(gc
->pc
, X_GLrop_InitNames
, cmdlen
);
2952 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2953 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2957 #define X_GLrop_LoadName 122
2959 __indirect_glLoadName(GLuint name
)
2961 __GLXcontext
*const gc
= __glXGetCurrentContext();
2962 const GLuint cmdlen
= 8;
2963 emit_header(gc
->pc
, X_GLrop_LoadName
, cmdlen
);
2964 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&name
), 4);
2966 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2967 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2971 #define X_GLrop_PassThrough 123
2973 __indirect_glPassThrough(GLfloat token
)
2975 __GLXcontext
*const gc
= __glXGetCurrentContext();
2976 const GLuint cmdlen
= 8;
2977 emit_header(gc
->pc
, X_GLrop_PassThrough
, cmdlen
);
2978 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&token
), 4);
2980 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2981 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2985 #define X_GLrop_PopName 124
2987 __indirect_glPopName(void)
2989 __GLXcontext
*const gc
= __glXGetCurrentContext();
2990 const GLuint cmdlen
= 4;
2991 emit_header(gc
->pc
, X_GLrop_PopName
, cmdlen
);
2993 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
2994 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
2998 #define X_GLrop_PushName 125
3000 __indirect_glPushName(GLuint name
)
3002 __GLXcontext
*const gc
= __glXGetCurrentContext();
3003 const GLuint cmdlen
= 8;
3004 emit_header(gc
->pc
, X_GLrop_PushName
, cmdlen
);
3005 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&name
), 4);
3007 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3008 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3012 #define X_GLrop_DrawBuffer 126
3014 __indirect_glDrawBuffer(GLenum mode
)
3016 __GLXcontext
*const gc
= __glXGetCurrentContext();
3017 const GLuint cmdlen
= 8;
3018 emit_header(gc
->pc
, X_GLrop_DrawBuffer
, cmdlen
);
3019 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
3021 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3022 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3026 #define X_GLrop_Clear 127
3028 __indirect_glClear(GLbitfield mask
)
3030 __GLXcontext
*const gc
= __glXGetCurrentContext();
3031 const GLuint cmdlen
= 8;
3032 emit_header(gc
->pc
, X_GLrop_Clear
, cmdlen
);
3033 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mask
), 4);
3035 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3036 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3040 #define X_GLrop_ClearAccum 128
3042 __indirect_glClearAccum(GLfloat red
, GLfloat green
, GLfloat blue
,
3045 __GLXcontext
*const gc
= __glXGetCurrentContext();
3046 const GLuint cmdlen
= 20;
3047 emit_header(gc
->pc
, X_GLrop_ClearAccum
, cmdlen
);
3048 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
3049 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
3050 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
3051 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
3053 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3054 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3058 #define X_GLrop_ClearIndex 129
3060 __indirect_glClearIndex(GLfloat c
)
3062 __GLXcontext
*const gc
= __glXGetCurrentContext();
3063 const GLuint cmdlen
= 8;
3064 emit_header(gc
->pc
, X_GLrop_ClearIndex
, cmdlen
);
3065 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 4);
3067 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3068 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3072 #define X_GLrop_ClearColor 130
3074 __indirect_glClearColor(GLclampf red
, GLclampf green
, GLclampf blue
,
3077 __GLXcontext
*const gc
= __glXGetCurrentContext();
3078 const GLuint cmdlen
= 20;
3079 emit_header(gc
->pc
, X_GLrop_ClearColor
, cmdlen
);
3080 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
3081 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
3082 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
3083 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
3085 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3086 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3090 #define X_GLrop_ClearStencil 131
3092 __indirect_glClearStencil(GLint s
)
3094 __GLXcontext
*const gc
= __glXGetCurrentContext();
3095 const GLuint cmdlen
= 8;
3096 emit_header(gc
->pc
, X_GLrop_ClearStencil
, cmdlen
);
3097 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 4);
3099 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3100 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3104 #define X_GLrop_ClearDepth 132
3106 __indirect_glClearDepth(GLclampd depth
)
3108 __GLXcontext
*const gc
= __glXGetCurrentContext();
3109 const GLuint cmdlen
= 12;
3110 emit_header(gc
->pc
, X_GLrop_ClearDepth
, cmdlen
);
3111 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&depth
), 8);
3113 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3114 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3118 #define X_GLrop_StencilMask 133
3120 __indirect_glStencilMask(GLuint mask
)
3122 __GLXcontext
*const gc
= __glXGetCurrentContext();
3123 const GLuint cmdlen
= 8;
3124 emit_header(gc
->pc
, X_GLrop_StencilMask
, cmdlen
);
3125 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mask
), 4);
3127 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3128 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3132 #define X_GLrop_ColorMask 134
3134 __indirect_glColorMask(GLboolean red
, GLboolean green
, GLboolean blue
,
3137 __GLXcontext
*const gc
= __glXGetCurrentContext();
3138 const GLuint cmdlen
= 8;
3139 emit_header(gc
->pc
, X_GLrop_ColorMask
, cmdlen
);
3140 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
3141 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
3142 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
3143 (void) memcpy((void *) (gc
->pc
+ 7), (void *) (&alpha
), 1);
3145 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3146 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3150 #define X_GLrop_DepthMask 135
3152 __indirect_glDepthMask(GLboolean flag
)
3154 __GLXcontext
*const gc
= __glXGetCurrentContext();
3155 const GLuint cmdlen
= 8;
3156 emit_header(gc
->pc
, X_GLrop_DepthMask
, cmdlen
);
3157 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&flag
), 1);
3159 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3160 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3164 #define X_GLrop_IndexMask 136
3166 __indirect_glIndexMask(GLuint mask
)
3168 __GLXcontext
*const gc
= __glXGetCurrentContext();
3169 const GLuint cmdlen
= 8;
3170 emit_header(gc
->pc
, X_GLrop_IndexMask
, cmdlen
);
3171 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mask
), 4);
3173 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3174 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3178 #define X_GLrop_Accum 137
3180 __indirect_glAccum(GLenum op
, GLfloat value
)
3182 __GLXcontext
*const gc
= __glXGetCurrentContext();
3183 const GLuint cmdlen
= 12;
3184 emit_header(gc
->pc
, X_GLrop_Accum
, cmdlen
);
3185 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&op
), 4);
3186 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&value
), 4);
3188 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3189 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3193 #define X_GLrop_PopAttrib 141
3195 __indirect_glPopAttrib(void)
3197 __GLXcontext
*const gc
= __glXGetCurrentContext();
3198 const GLuint cmdlen
= 4;
3199 emit_header(gc
->pc
, X_GLrop_PopAttrib
, cmdlen
);
3201 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3202 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3206 #define X_GLrop_PushAttrib 142
3208 __indirect_glPushAttrib(GLbitfield mask
)
3210 __GLXcontext
*const gc
= __glXGetCurrentContext();
3211 const GLuint cmdlen
= 8;
3212 emit_header(gc
->pc
, X_GLrop_PushAttrib
, cmdlen
);
3213 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mask
), 4);
3215 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3216 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3220 #define X_GLrop_MapGrid1d 147
3222 __indirect_glMapGrid1d(GLint un
, GLdouble u1
, GLdouble u2
)
3224 __GLXcontext
*const gc
= __glXGetCurrentContext();
3225 const GLuint cmdlen
= 24;
3226 emit_header(gc
->pc
, X_GLrop_MapGrid1d
, cmdlen
);
3227 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u1
), 8);
3228 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&u2
), 8);
3229 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&un
), 4);
3231 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3232 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3236 #define X_GLrop_MapGrid1f 148
3238 __indirect_glMapGrid1f(GLint un
, GLfloat u1
, GLfloat u2
)
3240 __GLXcontext
*const gc
= __glXGetCurrentContext();
3241 const GLuint cmdlen
= 16;
3242 emit_header(gc
->pc
, X_GLrop_MapGrid1f
, cmdlen
);
3243 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&un
), 4);
3244 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&u1
), 4);
3245 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&u2
), 4);
3247 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3248 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3252 #define X_GLrop_MapGrid2d 149
3254 __indirect_glMapGrid2d(GLint un
, GLdouble u1
, GLdouble u2
, GLint vn
,
3255 GLdouble v1
, GLdouble v2
)
3257 __GLXcontext
*const gc
= __glXGetCurrentContext();
3258 const GLuint cmdlen
= 44;
3259 emit_header(gc
->pc
, X_GLrop_MapGrid2d
, cmdlen
);
3260 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u1
), 8);
3261 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&u2
), 8);
3262 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&v1
), 8);
3263 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&v2
), 8);
3264 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&un
), 4);
3265 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&vn
), 4);
3267 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3268 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3272 #define X_GLrop_MapGrid2f 150
3274 __indirect_glMapGrid2f(GLint un
, GLfloat u1
, GLfloat u2
, GLint vn
, GLfloat v1
,
3277 __GLXcontext
*const gc
= __glXGetCurrentContext();
3278 const GLuint cmdlen
= 28;
3279 emit_header(gc
->pc
, X_GLrop_MapGrid2f
, cmdlen
);
3280 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&un
), 4);
3281 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&u1
), 4);
3282 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&u2
), 4);
3283 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&vn
), 4);
3284 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&v1
), 4);
3285 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&v2
), 4);
3287 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3288 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3292 #define X_GLrop_EvalCoord1dv 151
3294 __indirect_glEvalCoord1d(GLdouble u
)
3296 __GLXcontext
*const gc
= __glXGetCurrentContext();
3297 const GLuint cmdlen
= 12;
3298 emit_header(gc
->pc
, X_GLrop_EvalCoord1dv
, cmdlen
);
3299 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u
), 8);
3301 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3302 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3306 #define X_GLrop_EvalCoord1dv 151
3308 __indirect_glEvalCoord1dv(const GLdouble
* u
)
3310 generic_8_byte(X_GLrop_EvalCoord1dv
, u
);
3313 #define X_GLrop_EvalCoord1fv 152
3315 __indirect_glEvalCoord1f(GLfloat u
)
3317 __GLXcontext
*const gc
= __glXGetCurrentContext();
3318 const GLuint cmdlen
= 8;
3319 emit_header(gc
->pc
, X_GLrop_EvalCoord1fv
, cmdlen
);
3320 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u
), 4);
3322 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3323 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3327 #define X_GLrop_EvalCoord1fv 152
3329 __indirect_glEvalCoord1fv(const GLfloat
* u
)
3331 generic_4_byte(X_GLrop_EvalCoord1fv
, u
);
3334 #define X_GLrop_EvalCoord2dv 153
3336 __indirect_glEvalCoord2d(GLdouble u
, GLdouble v
)
3338 __GLXcontext
*const gc
= __glXGetCurrentContext();
3339 const GLuint cmdlen
= 20;
3340 emit_header(gc
->pc
, X_GLrop_EvalCoord2dv
, cmdlen
);
3341 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u
), 8);
3342 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&v
), 8);
3344 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3345 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3349 #define X_GLrop_EvalCoord2dv 153
3351 __indirect_glEvalCoord2dv(const GLdouble
* u
)
3353 generic_16_byte(X_GLrop_EvalCoord2dv
, u
);
3356 #define X_GLrop_EvalCoord2fv 154
3358 __indirect_glEvalCoord2f(GLfloat u
, GLfloat v
)
3360 __GLXcontext
*const gc
= __glXGetCurrentContext();
3361 const GLuint cmdlen
= 12;
3362 emit_header(gc
->pc
, X_GLrop_EvalCoord2fv
, cmdlen
);
3363 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&u
), 4);
3364 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&v
), 4);
3366 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3367 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3371 #define X_GLrop_EvalCoord2fv 154
3373 __indirect_glEvalCoord2fv(const GLfloat
* u
)
3375 generic_8_byte(X_GLrop_EvalCoord2fv
, u
);
3378 #define X_GLrop_EvalMesh1 155
3380 __indirect_glEvalMesh1(GLenum mode
, GLint i1
, GLint i2
)
3382 __GLXcontext
*const gc
= __glXGetCurrentContext();
3383 const GLuint cmdlen
= 16;
3384 emit_header(gc
->pc
, X_GLrop_EvalMesh1
, cmdlen
);
3385 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
3386 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&i1
), 4);
3387 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&i2
), 4);
3389 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3390 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3394 #define X_GLrop_EvalPoint1 156
3396 __indirect_glEvalPoint1(GLint i
)
3398 __GLXcontext
*const gc
= __glXGetCurrentContext();
3399 const GLuint cmdlen
= 8;
3400 emit_header(gc
->pc
, X_GLrop_EvalPoint1
, cmdlen
);
3401 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&i
), 4);
3403 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3404 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3408 #define X_GLrop_EvalMesh2 157
3410 __indirect_glEvalMesh2(GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
)
3412 __GLXcontext
*const gc
= __glXGetCurrentContext();
3413 const GLuint cmdlen
= 24;
3414 emit_header(gc
->pc
, X_GLrop_EvalMesh2
, cmdlen
);
3415 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
3416 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&i1
), 4);
3417 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&i2
), 4);
3418 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&j1
), 4);
3419 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&j2
), 4);
3421 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3422 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3426 #define X_GLrop_EvalPoint2 158
3428 __indirect_glEvalPoint2(GLint i
, GLint j
)
3430 __GLXcontext
*const gc
= __glXGetCurrentContext();
3431 const GLuint cmdlen
= 12;
3432 emit_header(gc
->pc
, X_GLrop_EvalPoint2
, cmdlen
);
3433 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&i
), 4);
3434 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&j
), 4);
3436 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3437 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3441 #define X_GLrop_AlphaFunc 159
3443 __indirect_glAlphaFunc(GLenum func
, GLclampf ref
)
3445 __GLXcontext
*const gc
= __glXGetCurrentContext();
3446 const GLuint cmdlen
= 12;
3447 emit_header(gc
->pc
, X_GLrop_AlphaFunc
, cmdlen
);
3448 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&func
), 4);
3449 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&ref
), 4);
3451 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3452 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3456 #define X_GLrop_BlendFunc 160
3458 __indirect_glBlendFunc(GLenum sfactor
, GLenum dfactor
)
3460 __GLXcontext
*const gc
= __glXGetCurrentContext();
3461 const GLuint cmdlen
= 12;
3462 emit_header(gc
->pc
, X_GLrop_BlendFunc
, cmdlen
);
3463 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&sfactor
), 4);
3464 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&dfactor
), 4);
3466 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3467 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3471 #define X_GLrop_LogicOp 161
3473 __indirect_glLogicOp(GLenum opcode
)
3475 __GLXcontext
*const gc
= __glXGetCurrentContext();
3476 const GLuint cmdlen
= 8;
3477 emit_header(gc
->pc
, X_GLrop_LogicOp
, cmdlen
);
3478 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&opcode
), 4);
3480 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3481 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3485 #define X_GLrop_StencilFunc 162
3487 __indirect_glStencilFunc(GLenum func
, GLint ref
, GLuint mask
)
3489 __GLXcontext
*const gc
= __glXGetCurrentContext();
3490 const GLuint cmdlen
= 16;
3491 emit_header(gc
->pc
, X_GLrop_StencilFunc
, cmdlen
);
3492 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&func
), 4);
3493 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&ref
), 4);
3494 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&mask
), 4);
3496 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3497 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3501 #define X_GLrop_StencilOp 163
3503 __indirect_glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
)
3505 __GLXcontext
*const gc
= __glXGetCurrentContext();
3506 const GLuint cmdlen
= 16;
3507 emit_header(gc
->pc
, X_GLrop_StencilOp
, cmdlen
);
3508 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&fail
), 4);
3509 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&zfail
), 4);
3510 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&zpass
), 4);
3512 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3513 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3517 #define X_GLrop_DepthFunc 164
3519 __indirect_glDepthFunc(GLenum func
)
3521 __GLXcontext
*const gc
= __glXGetCurrentContext();
3522 const GLuint cmdlen
= 8;
3523 emit_header(gc
->pc
, X_GLrop_DepthFunc
, cmdlen
);
3524 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&func
), 4);
3526 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3527 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3531 #define X_GLrop_PixelZoom 165
3533 __indirect_glPixelZoom(GLfloat xfactor
, GLfloat yfactor
)
3535 __GLXcontext
*const gc
= __glXGetCurrentContext();
3536 const GLuint cmdlen
= 12;
3537 emit_header(gc
->pc
, X_GLrop_PixelZoom
, cmdlen
);
3538 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&xfactor
), 4);
3539 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&yfactor
), 4);
3541 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3542 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3546 #define X_GLrop_PixelTransferf 166
3548 __indirect_glPixelTransferf(GLenum pname
, GLfloat param
)
3550 __GLXcontext
*const gc
= __glXGetCurrentContext();
3551 const GLuint cmdlen
= 12;
3552 emit_header(gc
->pc
, X_GLrop_PixelTransferf
, cmdlen
);
3553 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
3554 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
3556 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3557 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3561 #define X_GLrop_PixelTransferi 167
3563 __indirect_glPixelTransferi(GLenum pname
, GLint param
)
3565 __GLXcontext
*const gc
= __glXGetCurrentContext();
3566 const GLuint cmdlen
= 12;
3567 emit_header(gc
->pc
, X_GLrop_PixelTransferi
, cmdlen
);
3568 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
3569 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
3571 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3572 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3576 #define X_GLrop_PixelMapfv 168
3578 __indirect_glPixelMapfv(GLenum map
, GLsizei mapsize
, const GLfloat
* values
)
3580 __GLXcontext
*const gc
= __glXGetCurrentContext();
3581 const GLuint cmdlen
= 12 + __GLX_PAD((mapsize
* 4));
3582 if (__builtin_expect((mapsize
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
3583 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
3584 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
3585 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3587 emit_header(gc
->pc
, X_GLrop_PixelMapfv
, cmdlen
);
3588 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&map
), 4);
3589 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mapsize
), 4);
3590 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (values
),
3593 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3594 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3597 const GLint op
= X_GLrop_PixelMapfv
;
3598 const GLuint cmdlenLarge
= cmdlen
+ 4;
3599 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
3600 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
3601 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
3602 (void) memcpy((void *) (pc
+ 8), (void *) (&map
), 4);
3603 (void) memcpy((void *) (pc
+ 12), (void *) (&mapsize
), 4);
3604 __glXSendLargeCommand(gc
, pc
, 16, values
, (mapsize
* 4));
3609 #define X_GLrop_PixelMapuiv 169
3611 __indirect_glPixelMapuiv(GLenum map
, GLsizei mapsize
, const GLuint
* values
)
3613 __GLXcontext
*const gc
= __glXGetCurrentContext();
3614 const GLuint cmdlen
= 12 + __GLX_PAD((mapsize
* 4));
3615 if (__builtin_expect((mapsize
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
3616 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
3617 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
3618 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3620 emit_header(gc
->pc
, X_GLrop_PixelMapuiv
, cmdlen
);
3621 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&map
), 4);
3622 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mapsize
), 4);
3623 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (values
),
3626 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3627 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3630 const GLint op
= X_GLrop_PixelMapuiv
;
3631 const GLuint cmdlenLarge
= cmdlen
+ 4;
3632 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
3633 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
3634 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
3635 (void) memcpy((void *) (pc
+ 8), (void *) (&map
), 4);
3636 (void) memcpy((void *) (pc
+ 12), (void *) (&mapsize
), 4);
3637 __glXSendLargeCommand(gc
, pc
, 16, values
, (mapsize
* 4));
3642 #define X_GLrop_PixelMapusv 170
3644 __indirect_glPixelMapusv(GLenum map
, GLsizei mapsize
, const GLushort
* values
)
3646 __GLXcontext
*const gc
= __glXGetCurrentContext();
3647 const GLuint cmdlen
= 12 + __GLX_PAD((mapsize
* 2));
3648 if (__builtin_expect((mapsize
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
3649 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
3650 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
3651 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3653 emit_header(gc
->pc
, X_GLrop_PixelMapusv
, cmdlen
);
3654 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&map
), 4);
3655 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&mapsize
), 4);
3656 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (values
),
3659 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3660 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3663 const GLint op
= X_GLrop_PixelMapusv
;
3664 const GLuint cmdlenLarge
= cmdlen
+ 4;
3665 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
3666 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
3667 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
3668 (void) memcpy((void *) (pc
+ 8), (void *) (&map
), 4);
3669 (void) memcpy((void *) (pc
+ 12), (void *) (&mapsize
), 4);
3670 __glXSendLargeCommand(gc
, pc
, 16, values
, (mapsize
* 2));
3675 #define X_GLrop_ReadBuffer 171
3677 __indirect_glReadBuffer(GLenum mode
)
3679 __GLXcontext
*const gc
= __glXGetCurrentContext();
3680 const GLuint cmdlen
= 8;
3681 emit_header(gc
->pc
, X_GLrop_ReadBuffer
, cmdlen
);
3682 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
3684 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3685 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3689 #define X_GLrop_CopyPixels 172
3691 __indirect_glCopyPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
,
3694 __GLXcontext
*const gc
= __glXGetCurrentContext();
3695 const GLuint cmdlen
= 24;
3696 emit_header(gc
->pc
, X_GLrop_CopyPixels
, cmdlen
);
3697 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
3698 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
3699 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&width
), 4);
3700 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&height
), 4);
3701 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&type
), 4);
3703 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
3704 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3708 #define X_GLsop_ReadPixels 111
3710 __indirect_glReadPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
,
3711 GLenum format
, GLenum type
, GLvoid
* pixels
)
3713 __GLXcontext
*const gc
= __glXGetCurrentContext();
3714 const __GLXattribute
*const state
= gc
->client_state_private
;
3715 Display
*const dpy
= gc
->currentDpy
;
3716 const GLuint cmdlen
= 28;
3717 if (__builtin_expect(dpy
!= NULL
, 1)) {
3719 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3720 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3721 xcb_glx_read_pixels_reply_t
*reply
=
3722 xcb_glx_read_pixels_reply(c
,
3723 xcb_glx_read_pixels(c
,
3726 x
, y
, width
, height
,
3731 (void) memcpy(pixels
, xcb_glx_read_pixels_data(reply
),
3732 xcb_glx_read_pixels_data_length(reply
) *
3737 __glXSetupSingleRequest(gc
, X_GLsop_ReadPixels
, cmdlen
);
3738 (void) memcpy((void *) (pc
+ 0), (void *) (&x
), 4);
3739 (void) memcpy((void *) (pc
+ 4), (void *) (&y
), 4);
3740 (void) memcpy((void *) (pc
+ 8), (void *) (&width
), 4);
3741 (void) memcpy((void *) (pc
+ 12), (void *) (&height
), 4);
3742 (void) memcpy((void *) (pc
+ 16), (void *) (&format
), 4);
3743 (void) memcpy((void *) (pc
+ 20), (void *) (&type
), 4);
3744 *(int32_t *) (pc
+ 24) = 0;
3745 *(int8_t *) (pc
+ 24) = state
->storePack
.swapEndian
;
3746 __glXReadPixelReply(dpy
, gc
, 2, width
, height
, 1, format
, type
,
3750 #endif /* USE_XCB */
3755 #define X_GLrop_DrawPixels 173
3757 __indirect_glDrawPixels(GLsizei width
, GLsizei height
, GLenum format
,
3758 GLenum type
, const GLvoid
* pixels
)
3760 __GLXcontext
*const gc
= __glXGetCurrentContext();
3761 const GLuint compsize
=
3762 (pixels
!= NULL
) ? __glImageSize(width
, height
, 1, format
, type
,
3764 const GLuint cmdlen
= 40 + __GLX_PAD(compsize
);
3765 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
3766 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
3767 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
3768 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3770 emit_header(gc
->pc
, X_GLrop_DrawPixels
, cmdlen
);
3771 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&width
), 4);
3772 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&height
), 4);
3773 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&format
), 4);
3774 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&type
), 4);
3776 (*gc
->fillImage
) (gc
, 2, width
, height
, 1, format
, type
,
3777 pixels
, gc
->pc
+ 40, gc
->pc
+ 4);
3779 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
3780 default_pixel_store_2D_size
);
3783 if (gc
->pc
> gc
->limit
) {
3784 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3787 const GLint op
= X_GLrop_DrawPixels
;
3788 const GLuint cmdlenLarge
= cmdlen
+ 4;
3789 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
3790 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
3791 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
3792 (void) memcpy((void *) (pc
+ 28), (void *) (&width
), 4);
3793 (void) memcpy((void *) (pc
+ 32), (void *) (&height
), 4);
3794 (void) memcpy((void *) (pc
+ 36), (void *) (&format
), 4);
3795 (void) memcpy((void *) (pc
+ 40), (void *) (&type
), 4);
3796 __glXSendLargeImage(gc
, compsize
, 2, width
, height
, 1, format
,
3797 type
, pixels
, pc
+ 44, pc
+ 8);
3802 #define X_GLsop_GetClipPlane 113
3804 __indirect_glGetClipPlane(GLenum plane
, GLdouble
* equation
)
3806 __GLXcontext
*const gc
= __glXGetCurrentContext();
3807 Display
*const dpy
= gc
->currentDpy
;
3808 const GLuint cmdlen
= 4;
3809 if (__builtin_expect(dpy
!= NULL
, 1)) {
3811 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3812 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3813 xcb_glx_get_clip_plane_reply_t
*reply
=
3814 xcb_glx_get_clip_plane_reply(c
,
3815 xcb_glx_get_clip_plane(c
,
3819 (void) memcpy(equation
, xcb_glx_get_clip_plane_data(reply
),
3820 xcb_glx_get_clip_plane_data_length(reply
) *
3825 __glXSetupSingleRequest(gc
, X_GLsop_GetClipPlane
, cmdlen
);
3826 (void) memcpy((void *) (pc
+ 0), (void *) (&plane
), 4);
3827 (void) __glXReadReply(dpy
, 8, equation
, GL_TRUE
);
3830 #endif /* USE_XCB */
3835 #define X_GLsop_GetLightfv 118
3837 __indirect_glGetLightfv(GLenum light
, GLenum pname
, GLfloat
* params
)
3839 __GLXcontext
*const gc
= __glXGetCurrentContext();
3840 Display
*const dpy
= gc
->currentDpy
;
3841 const GLuint cmdlen
= 8;
3842 if (__builtin_expect(dpy
!= NULL
, 1)) {
3844 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3845 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3846 xcb_glx_get_lightfv_reply_t
*reply
=
3847 xcb_glx_get_lightfv_reply(c
,
3848 xcb_glx_get_lightfv(c
,
3853 if (xcb_glx_get_lightfv_data_length(reply
) == 0)
3854 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
3856 (void) memcpy(params
, xcb_glx_get_lightfv_data(reply
),
3857 xcb_glx_get_lightfv_data_length(reply
) *
3862 __glXSetupSingleRequest(gc
, X_GLsop_GetLightfv
, cmdlen
);
3863 (void) memcpy((void *) (pc
+ 0), (void *) (&light
), 4);
3864 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
3865 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
3868 #endif /* USE_XCB */
3873 #define X_GLsop_GetLightiv 119
3875 __indirect_glGetLightiv(GLenum light
, GLenum pname
, GLint
* params
)
3877 __GLXcontext
*const gc
= __glXGetCurrentContext();
3878 Display
*const dpy
= gc
->currentDpy
;
3879 const GLuint cmdlen
= 8;
3880 if (__builtin_expect(dpy
!= NULL
, 1)) {
3882 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3883 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3884 xcb_glx_get_lightiv_reply_t
*reply
=
3885 xcb_glx_get_lightiv_reply(c
,
3886 xcb_glx_get_lightiv(c
,
3891 if (xcb_glx_get_lightiv_data_length(reply
) == 0)
3892 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
3894 (void) memcpy(params
, xcb_glx_get_lightiv_data(reply
),
3895 xcb_glx_get_lightiv_data_length(reply
) *
3900 __glXSetupSingleRequest(gc
, X_GLsop_GetLightiv
, cmdlen
);
3901 (void) memcpy((void *) (pc
+ 0), (void *) (&light
), 4);
3902 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
3903 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
3906 #endif /* USE_XCB */
3911 #define X_GLsop_GetMapdv 120
3913 __indirect_glGetMapdv(GLenum target
, GLenum query
, GLdouble
* v
)
3915 __GLXcontext
*const gc
= __glXGetCurrentContext();
3916 Display
*const dpy
= gc
->currentDpy
;
3917 const GLuint cmdlen
= 8;
3918 if (__builtin_expect(dpy
!= NULL
, 1)) {
3920 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3921 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3922 xcb_glx_get_mapdv_reply_t
*reply
=
3923 xcb_glx_get_mapdv_reply(c
,
3924 xcb_glx_get_mapdv(c
,
3925 gc
->currentContextTag
,
3926 target
, query
), NULL
);
3927 if (xcb_glx_get_mapdv_data_length(reply
) == 0)
3928 (void) memcpy(v
, &reply
->datum
, sizeof(reply
->datum
));
3930 (void) memcpy(v
, xcb_glx_get_mapdv_data(reply
),
3931 xcb_glx_get_mapdv_data_length(reply
) *
3936 __glXSetupSingleRequest(gc
, X_GLsop_GetMapdv
, cmdlen
);
3937 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
3938 (void) memcpy((void *) (pc
+ 4), (void *) (&query
), 4);
3939 (void) __glXReadReply(dpy
, 8, v
, GL_FALSE
);
3942 #endif /* USE_XCB */
3947 #define X_GLsop_GetMapfv 121
3949 __indirect_glGetMapfv(GLenum target
, GLenum query
, GLfloat
* v
)
3951 __GLXcontext
*const gc
= __glXGetCurrentContext();
3952 Display
*const dpy
= gc
->currentDpy
;
3953 const GLuint cmdlen
= 8;
3954 if (__builtin_expect(dpy
!= NULL
, 1)) {
3956 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3957 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3958 xcb_glx_get_mapfv_reply_t
*reply
=
3959 xcb_glx_get_mapfv_reply(c
,
3960 xcb_glx_get_mapfv(c
,
3961 gc
->currentContextTag
,
3962 target
, query
), NULL
);
3963 if (xcb_glx_get_mapfv_data_length(reply
) == 0)
3964 (void) memcpy(v
, &reply
->datum
, sizeof(reply
->datum
));
3966 (void) memcpy(v
, xcb_glx_get_mapfv_data(reply
),
3967 xcb_glx_get_mapfv_data_length(reply
) *
3972 __glXSetupSingleRequest(gc
, X_GLsop_GetMapfv
, cmdlen
);
3973 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
3974 (void) memcpy((void *) (pc
+ 4), (void *) (&query
), 4);
3975 (void) __glXReadReply(dpy
, 4, v
, GL_FALSE
);
3978 #endif /* USE_XCB */
3983 #define X_GLsop_GetMapiv 122
3985 __indirect_glGetMapiv(GLenum target
, GLenum query
, GLint
* v
)
3987 __GLXcontext
*const gc
= __glXGetCurrentContext();
3988 Display
*const dpy
= gc
->currentDpy
;
3989 const GLuint cmdlen
= 8;
3990 if (__builtin_expect(dpy
!= NULL
, 1)) {
3992 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
3993 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
3994 xcb_glx_get_mapiv_reply_t
*reply
=
3995 xcb_glx_get_mapiv_reply(c
,
3996 xcb_glx_get_mapiv(c
,
3997 gc
->currentContextTag
,
3998 target
, query
), NULL
);
3999 if (xcb_glx_get_mapiv_data_length(reply
) == 0)
4000 (void) memcpy(v
, &reply
->datum
, sizeof(reply
->datum
));
4002 (void) memcpy(v
, xcb_glx_get_mapiv_data(reply
),
4003 xcb_glx_get_mapiv_data_length(reply
) *
4008 __glXSetupSingleRequest(gc
, X_GLsop_GetMapiv
, cmdlen
);
4009 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4010 (void) memcpy((void *) (pc
+ 4), (void *) (&query
), 4);
4011 (void) __glXReadReply(dpy
, 4, v
, GL_FALSE
);
4014 #endif /* USE_XCB */
4019 #define X_GLsop_GetMaterialfv 123
4021 __indirect_glGetMaterialfv(GLenum face
, GLenum pname
, GLfloat
* params
)
4023 __GLXcontext
*const gc
= __glXGetCurrentContext();
4024 Display
*const dpy
= gc
->currentDpy
;
4025 const GLuint cmdlen
= 8;
4026 if (__builtin_expect(dpy
!= NULL
, 1)) {
4028 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4029 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4030 xcb_glx_get_materialfv_reply_t
*reply
=
4031 xcb_glx_get_materialfv_reply(c
,
4032 xcb_glx_get_materialfv(c
,
4037 if (xcb_glx_get_materialfv_data_length(reply
) == 0)
4038 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4040 (void) memcpy(params
, xcb_glx_get_materialfv_data(reply
),
4041 xcb_glx_get_materialfv_data_length(reply
) *
4046 __glXSetupSingleRequest(gc
, X_GLsop_GetMaterialfv
, cmdlen
);
4047 (void) memcpy((void *) (pc
+ 0), (void *) (&face
), 4);
4048 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4049 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4052 #endif /* USE_XCB */
4057 #define X_GLsop_GetMaterialiv 124
4059 __indirect_glGetMaterialiv(GLenum face
, GLenum pname
, GLint
* params
)
4061 __GLXcontext
*const gc
= __glXGetCurrentContext();
4062 Display
*const dpy
= gc
->currentDpy
;
4063 const GLuint cmdlen
= 8;
4064 if (__builtin_expect(dpy
!= NULL
, 1)) {
4066 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4067 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4068 xcb_glx_get_materialiv_reply_t
*reply
=
4069 xcb_glx_get_materialiv_reply(c
,
4070 xcb_glx_get_materialiv(c
,
4075 if (xcb_glx_get_materialiv_data_length(reply
) == 0)
4076 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4078 (void) memcpy(params
, xcb_glx_get_materialiv_data(reply
),
4079 xcb_glx_get_materialiv_data_length(reply
) *
4084 __glXSetupSingleRequest(gc
, X_GLsop_GetMaterialiv
, cmdlen
);
4085 (void) memcpy((void *) (pc
+ 0), (void *) (&face
), 4);
4086 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4087 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4090 #endif /* USE_XCB */
4095 #define X_GLsop_GetPixelMapfv 125
4097 __indirect_glGetPixelMapfv(GLenum map
, GLfloat
* values
)
4099 __GLXcontext
*const gc
= __glXGetCurrentContext();
4100 Display
*const dpy
= gc
->currentDpy
;
4101 const GLuint cmdlen
= 4;
4102 if (__builtin_expect(dpy
!= NULL
, 1)) {
4104 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4105 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4106 xcb_glx_get_pixel_mapfv_reply_t
*reply
=
4107 xcb_glx_get_pixel_mapfv_reply(c
,
4108 xcb_glx_get_pixel_mapfv(c
,
4112 if (xcb_glx_get_pixel_mapfv_data_length(reply
) == 0)
4113 (void) memcpy(values
, &reply
->datum
, sizeof(reply
->datum
));
4115 (void) memcpy(values
, xcb_glx_get_pixel_mapfv_data(reply
),
4116 xcb_glx_get_pixel_mapfv_data_length(reply
) *
4121 __glXSetupSingleRequest(gc
, X_GLsop_GetPixelMapfv
, cmdlen
);
4122 (void) memcpy((void *) (pc
+ 0), (void *) (&map
), 4);
4123 (void) __glXReadReply(dpy
, 4, values
, GL_FALSE
);
4126 #endif /* USE_XCB */
4131 #define X_GLsop_GetPixelMapuiv 126
4133 __indirect_glGetPixelMapuiv(GLenum map
, GLuint
* values
)
4135 __GLXcontext
*const gc
= __glXGetCurrentContext();
4136 Display
*const dpy
= gc
->currentDpy
;
4137 const GLuint cmdlen
= 4;
4138 if (__builtin_expect(dpy
!= NULL
, 1)) {
4140 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4141 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4142 xcb_glx_get_pixel_mapuiv_reply_t
*reply
=
4143 xcb_glx_get_pixel_mapuiv_reply(c
,
4144 xcb_glx_get_pixel_mapuiv(c
,
4149 if (xcb_glx_get_pixel_mapuiv_data_length(reply
) == 0)
4150 (void) memcpy(values
, &reply
->datum
, sizeof(reply
->datum
));
4152 (void) memcpy(values
, xcb_glx_get_pixel_mapuiv_data(reply
),
4153 xcb_glx_get_pixel_mapuiv_data_length(reply
) *
4158 __glXSetupSingleRequest(gc
, X_GLsop_GetPixelMapuiv
, cmdlen
);
4159 (void) memcpy((void *) (pc
+ 0), (void *) (&map
), 4);
4160 (void) __glXReadReply(dpy
, 4, values
, GL_FALSE
);
4163 #endif /* USE_XCB */
4168 #define X_GLsop_GetPixelMapusv 127
4170 __indirect_glGetPixelMapusv(GLenum map
, GLushort
* values
)
4172 __GLXcontext
*const gc
= __glXGetCurrentContext();
4173 Display
*const dpy
= gc
->currentDpy
;
4174 const GLuint cmdlen
= 4;
4175 if (__builtin_expect(dpy
!= NULL
, 1)) {
4177 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4178 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4179 xcb_glx_get_pixel_mapusv_reply_t
*reply
=
4180 xcb_glx_get_pixel_mapusv_reply(c
,
4181 xcb_glx_get_pixel_mapusv(c
,
4186 if (xcb_glx_get_pixel_mapusv_data_length(reply
) == 0)
4187 (void) memcpy(values
, &reply
->datum
, sizeof(reply
->datum
));
4189 (void) memcpy(values
, xcb_glx_get_pixel_mapusv_data(reply
),
4190 xcb_glx_get_pixel_mapusv_data_length(reply
) *
4195 __glXSetupSingleRequest(gc
, X_GLsop_GetPixelMapusv
, cmdlen
);
4196 (void) memcpy((void *) (pc
+ 0), (void *) (&map
), 4);
4197 (void) __glXReadReply(dpy
, 2, values
, GL_FALSE
);
4200 #endif /* USE_XCB */
4205 #define X_GLsop_GetPolygonStipple 128
4207 __indirect_glGetPolygonStipple(GLubyte
* mask
)
4209 __GLXcontext
*const gc
= __glXGetCurrentContext();
4210 const __GLXattribute
*const state
= gc
->client_state_private
;
4211 Display
*const dpy
= gc
->currentDpy
;
4212 const GLuint cmdlen
= 4;
4213 if (__builtin_expect(dpy
!= NULL
, 1)) {
4215 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4216 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4217 xcb_glx_get_polygon_stipple_reply_t
*reply
=
4218 xcb_glx_get_polygon_stipple_reply(c
,
4219 xcb_glx_get_polygon_stipple(c
,
4224 (void) memcpy(mask
, xcb_glx_get_polygon_stipple_data(reply
),
4225 xcb_glx_get_polygon_stipple_data_length(reply
) *
4230 __glXSetupSingleRequest(gc
, X_GLsop_GetPolygonStipple
, cmdlen
);
4231 *(int32_t *) (pc
+ 0) = 0;
4232 __glXReadPixelReply(dpy
, gc
, 2, 32, 32, 1, GL_COLOR_INDEX
, GL_BITMAP
,
4236 #endif /* USE_XCB */
4241 #define X_GLsop_GetTexEnvfv 130
4243 __indirect_glGetTexEnvfv(GLenum target
, GLenum pname
, GLfloat
* params
)
4245 __GLXcontext
*const gc
= __glXGetCurrentContext();
4246 Display
*const dpy
= gc
->currentDpy
;
4247 const GLuint cmdlen
= 8;
4248 if (__builtin_expect(dpy
!= NULL
, 1)) {
4250 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4251 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4252 xcb_glx_get_tex_envfv_reply_t
*reply
=
4253 xcb_glx_get_tex_envfv_reply(c
,
4254 xcb_glx_get_tex_envfv(c
,
4259 if (xcb_glx_get_tex_envfv_data_length(reply
) == 0)
4260 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4262 (void) memcpy(params
, xcb_glx_get_tex_envfv_data(reply
),
4263 xcb_glx_get_tex_envfv_data_length(reply
) *
4268 __glXSetupSingleRequest(gc
, X_GLsop_GetTexEnvfv
, cmdlen
);
4269 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4270 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4271 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4274 #endif /* USE_XCB */
4279 #define X_GLsop_GetTexEnviv 131
4281 __indirect_glGetTexEnviv(GLenum target
, GLenum pname
, GLint
* params
)
4283 __GLXcontext
*const gc
= __glXGetCurrentContext();
4284 Display
*const dpy
= gc
->currentDpy
;
4285 const GLuint cmdlen
= 8;
4286 if (__builtin_expect(dpy
!= NULL
, 1)) {
4288 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4289 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4290 xcb_glx_get_tex_enviv_reply_t
*reply
=
4291 xcb_glx_get_tex_enviv_reply(c
,
4292 xcb_glx_get_tex_enviv(c
,
4297 if (xcb_glx_get_tex_enviv_data_length(reply
) == 0)
4298 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4300 (void) memcpy(params
, xcb_glx_get_tex_enviv_data(reply
),
4301 xcb_glx_get_tex_enviv_data_length(reply
) *
4306 __glXSetupSingleRequest(gc
, X_GLsop_GetTexEnviv
, cmdlen
);
4307 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4308 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4309 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4312 #endif /* USE_XCB */
4317 #define X_GLsop_GetTexGendv 132
4319 __indirect_glGetTexGendv(GLenum coord
, GLenum pname
, GLdouble
* params
)
4321 __GLXcontext
*const gc
= __glXGetCurrentContext();
4322 Display
*const dpy
= gc
->currentDpy
;
4323 const GLuint cmdlen
= 8;
4324 if (__builtin_expect(dpy
!= NULL
, 1)) {
4326 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4327 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4328 xcb_glx_get_tex_gendv_reply_t
*reply
=
4329 xcb_glx_get_tex_gendv_reply(c
,
4330 xcb_glx_get_tex_gendv(c
,
4335 if (xcb_glx_get_tex_gendv_data_length(reply
) == 0)
4336 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4338 (void) memcpy(params
, xcb_glx_get_tex_gendv_data(reply
),
4339 xcb_glx_get_tex_gendv_data_length(reply
) *
4344 __glXSetupSingleRequest(gc
, X_GLsop_GetTexGendv
, cmdlen
);
4345 (void) memcpy((void *) (pc
+ 0), (void *) (&coord
), 4);
4346 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4347 (void) __glXReadReply(dpy
, 8, params
, GL_FALSE
);
4350 #endif /* USE_XCB */
4355 #define X_GLsop_GetTexGenfv 133
4357 __indirect_glGetTexGenfv(GLenum coord
, GLenum pname
, GLfloat
* params
)
4359 __GLXcontext
*const gc
= __glXGetCurrentContext();
4360 Display
*const dpy
= gc
->currentDpy
;
4361 const GLuint cmdlen
= 8;
4362 if (__builtin_expect(dpy
!= NULL
, 1)) {
4364 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4365 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4366 xcb_glx_get_tex_genfv_reply_t
*reply
=
4367 xcb_glx_get_tex_genfv_reply(c
,
4368 xcb_glx_get_tex_genfv(c
,
4373 if (xcb_glx_get_tex_genfv_data_length(reply
) == 0)
4374 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4376 (void) memcpy(params
, xcb_glx_get_tex_genfv_data(reply
),
4377 xcb_glx_get_tex_genfv_data_length(reply
) *
4382 __glXSetupSingleRequest(gc
, X_GLsop_GetTexGenfv
, cmdlen
);
4383 (void) memcpy((void *) (pc
+ 0), (void *) (&coord
), 4);
4384 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4385 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4388 #endif /* USE_XCB */
4393 #define X_GLsop_GetTexGeniv 134
4395 __indirect_glGetTexGeniv(GLenum coord
, GLenum pname
, GLint
* params
)
4397 __GLXcontext
*const gc
= __glXGetCurrentContext();
4398 Display
*const dpy
= gc
->currentDpy
;
4399 const GLuint cmdlen
= 8;
4400 if (__builtin_expect(dpy
!= NULL
, 1)) {
4402 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4403 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4404 xcb_glx_get_tex_geniv_reply_t
*reply
=
4405 xcb_glx_get_tex_geniv_reply(c
,
4406 xcb_glx_get_tex_geniv(c
,
4411 if (xcb_glx_get_tex_geniv_data_length(reply
) == 0)
4412 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4414 (void) memcpy(params
, xcb_glx_get_tex_geniv_data(reply
),
4415 xcb_glx_get_tex_geniv_data_length(reply
) *
4420 __glXSetupSingleRequest(gc
, X_GLsop_GetTexGeniv
, cmdlen
);
4421 (void) memcpy((void *) (pc
+ 0), (void *) (&coord
), 4);
4422 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4423 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4426 #endif /* USE_XCB */
4431 #define X_GLsop_GetTexImage 135
4433 __indirect_glGetTexImage(GLenum target
, GLint level
, GLenum format
,
4434 GLenum type
, GLvoid
* pixels
)
4436 __GLXcontext
*const gc
= __glXGetCurrentContext();
4437 const __GLXattribute
*const state
= gc
->client_state_private
;
4438 Display
*const dpy
= gc
->currentDpy
;
4439 const GLuint cmdlen
= 20;
4440 if (__builtin_expect(dpy
!= NULL
, 1)) {
4442 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4443 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4444 xcb_glx_get_tex_image_reply_t
*reply
=
4445 xcb_glx_get_tex_image_reply(c
,
4446 xcb_glx_get_tex_image(c
,
4455 (void) memcpy(pixels
, xcb_glx_get_tex_image_data(reply
),
4456 xcb_glx_get_tex_image_data_length(reply
) *
4461 __glXSetupSingleRequest(gc
, X_GLsop_GetTexImage
, cmdlen
);
4462 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4463 (void) memcpy((void *) (pc
+ 4), (void *) (&level
), 4);
4464 (void) memcpy((void *) (pc
+ 8), (void *) (&format
), 4);
4465 (void) memcpy((void *) (pc
+ 12), (void *) (&type
), 4);
4466 *(int32_t *) (pc
+ 16) = 0;
4467 *(int8_t *) (pc
+ 16) = state
->storePack
.swapEndian
;
4468 __glXReadPixelReply(dpy
, gc
, 3, 0, 0, 0, format
, type
, pixels
,
4472 #endif /* USE_XCB */
4477 #define X_GLsop_GetTexParameterfv 136
4479 __indirect_glGetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
)
4481 __GLXcontext
*const gc
= __glXGetCurrentContext();
4482 Display
*const dpy
= gc
->currentDpy
;
4483 const GLuint cmdlen
= 8;
4484 if (__builtin_expect(dpy
!= NULL
, 1)) {
4486 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4487 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4488 xcb_glx_get_tex_parameterfv_reply_t
*reply
=
4489 xcb_glx_get_tex_parameterfv_reply(c
,
4490 xcb_glx_get_tex_parameterfv(c
,
4496 if (xcb_glx_get_tex_parameterfv_data_length(reply
) == 0)
4497 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4499 (void) memcpy(params
, xcb_glx_get_tex_parameterfv_data(reply
),
4500 xcb_glx_get_tex_parameterfv_data_length(reply
) *
4505 __glXSetupSingleRequest(gc
, X_GLsop_GetTexParameterfv
, cmdlen
);
4506 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4507 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4508 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4511 #endif /* USE_XCB */
4516 #define X_GLsop_GetTexParameteriv 137
4518 __indirect_glGetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
)
4520 __GLXcontext
*const gc
= __glXGetCurrentContext();
4521 Display
*const dpy
= gc
->currentDpy
;
4522 const GLuint cmdlen
= 8;
4523 if (__builtin_expect(dpy
!= NULL
, 1)) {
4525 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4526 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4527 xcb_glx_get_tex_parameteriv_reply_t
*reply
=
4528 xcb_glx_get_tex_parameteriv_reply(c
,
4529 xcb_glx_get_tex_parameteriv(c
,
4535 if (xcb_glx_get_tex_parameteriv_data_length(reply
) == 0)
4536 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4538 (void) memcpy(params
, xcb_glx_get_tex_parameteriv_data(reply
),
4539 xcb_glx_get_tex_parameteriv_data_length(reply
) *
4544 __glXSetupSingleRequest(gc
, X_GLsop_GetTexParameteriv
, cmdlen
);
4545 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4546 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
4547 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4550 #endif /* USE_XCB */
4555 #define X_GLsop_GetTexLevelParameterfv 138
4557 __indirect_glGetTexLevelParameterfv(GLenum target
, GLint level
, GLenum pname
,
4560 __GLXcontext
*const gc
= __glXGetCurrentContext();
4561 Display
*const dpy
= gc
->currentDpy
;
4562 const GLuint cmdlen
= 12;
4563 if (__builtin_expect(dpy
!= NULL
, 1)) {
4565 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4566 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4567 xcb_glx_get_tex_level_parameterfv_reply_t
*reply
=
4568 xcb_glx_get_tex_level_parameterfv_reply(c
,
4569 xcb_glx_get_tex_level_parameterfv
4570 (c
, gc
->currentContextTag
,
4571 target
, level
, pname
),
4573 if (xcb_glx_get_tex_level_parameterfv_data_length(reply
) == 0)
4574 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4576 (void) memcpy(params
,
4577 xcb_glx_get_tex_level_parameterfv_data(reply
),
4578 xcb_glx_get_tex_level_parameterfv_data_length(reply
)
4583 __glXSetupSingleRequest(gc
, X_GLsop_GetTexLevelParameterfv
,
4585 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4586 (void) memcpy((void *) (pc
+ 4), (void *) (&level
), 4);
4587 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
4588 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4591 #endif /* USE_XCB */
4596 #define X_GLsop_GetTexLevelParameteriv 139
4598 __indirect_glGetTexLevelParameteriv(GLenum target
, GLint level
, GLenum pname
,
4601 __GLXcontext
*const gc
= __glXGetCurrentContext();
4602 Display
*const dpy
= gc
->currentDpy
;
4603 const GLuint cmdlen
= 12;
4604 if (__builtin_expect(dpy
!= NULL
, 1)) {
4606 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4607 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4608 xcb_glx_get_tex_level_parameteriv_reply_t
*reply
=
4609 xcb_glx_get_tex_level_parameteriv_reply(c
,
4610 xcb_glx_get_tex_level_parameteriv
4611 (c
, gc
->currentContextTag
,
4612 target
, level
, pname
),
4614 if (xcb_glx_get_tex_level_parameteriv_data_length(reply
) == 0)
4615 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
4617 (void) memcpy(params
,
4618 xcb_glx_get_tex_level_parameteriv_data(reply
),
4619 xcb_glx_get_tex_level_parameteriv_data_length(reply
)
4624 __glXSetupSingleRequest(gc
, X_GLsop_GetTexLevelParameteriv
,
4626 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
4627 (void) memcpy((void *) (pc
+ 4), (void *) (&level
), 4);
4628 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
4629 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
4632 #endif /* USE_XCB */
4637 #define X_GLsop_IsList 141
4639 __indirect_glIsList(GLuint list
)
4641 __GLXcontext
*const gc
= __glXGetCurrentContext();
4642 Display
*const dpy
= gc
->currentDpy
;
4643 GLboolean retval
= (GLboolean
) 0;
4644 const GLuint cmdlen
= 4;
4645 if (__builtin_expect(dpy
!= NULL
, 1)) {
4647 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
4648 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4649 xcb_glx_is_list_reply_t
*reply
=
4650 xcb_glx_is_list_reply(c
,
4651 xcb_glx_is_list(c
, gc
->currentContextTag
,
4653 retval
= reply
->ret_val
;
4657 __glXSetupSingleRequest(gc
, X_GLsop_IsList
, cmdlen
);
4658 (void) memcpy((void *) (pc
+ 0), (void *) (&list
), 4);
4659 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
4662 #endif /* USE_XCB */
4667 #define X_GLrop_DepthRange 174
4669 __indirect_glDepthRange(GLclampd zNear
, GLclampd zFar
)
4671 __GLXcontext
*const gc
= __glXGetCurrentContext();
4672 const GLuint cmdlen
= 20;
4673 emit_header(gc
->pc
, X_GLrop_DepthRange
, cmdlen
);
4674 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&zNear
), 8);
4675 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&zFar
), 8);
4677 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4678 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4682 #define X_GLrop_Frustum 175
4684 __indirect_glFrustum(GLdouble left
, GLdouble right
, GLdouble bottom
,
4685 GLdouble top
, GLdouble zNear
, GLdouble zFar
)
4687 __GLXcontext
*const gc
= __glXGetCurrentContext();
4688 const GLuint cmdlen
= 52;
4689 emit_header(gc
->pc
, X_GLrop_Frustum
, cmdlen
);
4690 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&left
), 8);
4691 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&right
), 8);
4692 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&bottom
), 8);
4693 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&top
), 8);
4694 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&zNear
), 8);
4695 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&zFar
), 8);
4697 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4698 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4702 #define X_GLrop_LoadIdentity 176
4704 __indirect_glLoadIdentity(void)
4706 __GLXcontext
*const gc
= __glXGetCurrentContext();
4707 const GLuint cmdlen
= 4;
4708 emit_header(gc
->pc
, X_GLrop_LoadIdentity
, cmdlen
);
4710 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4711 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4715 #define X_GLrop_LoadMatrixf 177
4717 __indirect_glLoadMatrixf(const GLfloat
* m
)
4719 __GLXcontext
*const gc
= __glXGetCurrentContext();
4720 const GLuint cmdlen
= 68;
4721 emit_header(gc
->pc
, X_GLrop_LoadMatrixf
, cmdlen
);
4722 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (m
), 64);
4724 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4725 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4729 #define X_GLrop_LoadMatrixd 178
4731 __indirect_glLoadMatrixd(const GLdouble
* m
)
4733 __GLXcontext
*const gc
= __glXGetCurrentContext();
4734 const GLuint cmdlen
= 132;
4735 emit_header(gc
->pc
, X_GLrop_LoadMatrixd
, cmdlen
);
4736 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (m
), 128);
4738 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4739 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4743 #define X_GLrop_MatrixMode 179
4745 __indirect_glMatrixMode(GLenum mode
)
4747 __GLXcontext
*const gc
= __glXGetCurrentContext();
4748 const GLuint cmdlen
= 8;
4749 emit_header(gc
->pc
, X_GLrop_MatrixMode
, cmdlen
);
4750 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
4752 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4753 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4757 #define X_GLrop_MultMatrixf 180
4759 __indirect_glMultMatrixf(const GLfloat
* m
)
4761 __GLXcontext
*const gc
= __glXGetCurrentContext();
4762 const GLuint cmdlen
= 68;
4763 emit_header(gc
->pc
, X_GLrop_MultMatrixf
, cmdlen
);
4764 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (m
), 64);
4766 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4767 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4771 #define X_GLrop_MultMatrixd 181
4773 __indirect_glMultMatrixd(const GLdouble
* m
)
4775 __GLXcontext
*const gc
= __glXGetCurrentContext();
4776 const GLuint cmdlen
= 132;
4777 emit_header(gc
->pc
, X_GLrop_MultMatrixd
, cmdlen
);
4778 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (m
), 128);
4780 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4781 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4785 #define X_GLrop_Ortho 182
4787 __indirect_glOrtho(GLdouble left
, GLdouble right
, GLdouble bottom
,
4788 GLdouble top
, GLdouble zNear
, GLdouble zFar
)
4790 __GLXcontext
*const gc
= __glXGetCurrentContext();
4791 const GLuint cmdlen
= 52;
4792 emit_header(gc
->pc
, X_GLrop_Ortho
, cmdlen
);
4793 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&left
), 8);
4794 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&right
), 8);
4795 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&bottom
), 8);
4796 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&top
), 8);
4797 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&zNear
), 8);
4798 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&zFar
), 8);
4800 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4801 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4805 #define X_GLrop_PopMatrix 183
4807 __indirect_glPopMatrix(void)
4809 __GLXcontext
*const gc
= __glXGetCurrentContext();
4810 const GLuint cmdlen
= 4;
4811 emit_header(gc
->pc
, X_GLrop_PopMatrix
, cmdlen
);
4813 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4814 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4818 #define X_GLrop_PushMatrix 184
4820 __indirect_glPushMatrix(void)
4822 __GLXcontext
*const gc
= __glXGetCurrentContext();
4823 const GLuint cmdlen
= 4;
4824 emit_header(gc
->pc
, X_GLrop_PushMatrix
, cmdlen
);
4826 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4827 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4831 #define X_GLrop_Rotated 185
4833 __indirect_glRotated(GLdouble angle
, GLdouble x
, GLdouble y
, GLdouble z
)
4835 __GLXcontext
*const gc
= __glXGetCurrentContext();
4836 const GLuint cmdlen
= 36;
4837 emit_header(gc
->pc
, X_GLrop_Rotated
, cmdlen
);
4838 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&angle
), 8);
4839 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 8);
4840 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 8);
4841 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&z
), 8);
4843 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4844 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4848 #define X_GLrop_Rotatef 186
4850 __indirect_glRotatef(GLfloat angle
, GLfloat x
, GLfloat y
, GLfloat z
)
4852 __GLXcontext
*const gc
= __glXGetCurrentContext();
4853 const GLuint cmdlen
= 20;
4854 emit_header(gc
->pc
, X_GLrop_Rotatef
, cmdlen
);
4855 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&angle
), 4);
4856 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
4857 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
4858 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&z
), 4);
4860 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4861 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4865 #define X_GLrop_Scaled 187
4867 __indirect_glScaled(GLdouble x
, GLdouble y
, GLdouble z
)
4869 __GLXcontext
*const gc
= __glXGetCurrentContext();
4870 const GLuint cmdlen
= 28;
4871 emit_header(gc
->pc
, X_GLrop_Scaled
, cmdlen
);
4872 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
4873 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
4874 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
4876 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4877 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4881 #define X_GLrop_Scalef 188
4883 __indirect_glScalef(GLfloat x
, GLfloat y
, GLfloat z
)
4885 __GLXcontext
*const gc
= __glXGetCurrentContext();
4886 const GLuint cmdlen
= 16;
4887 emit_header(gc
->pc
, X_GLrop_Scalef
, cmdlen
);
4888 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
4889 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
4890 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
4892 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4893 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4897 #define X_GLrop_Translated 189
4899 __indirect_glTranslated(GLdouble x
, GLdouble y
, GLdouble z
)
4901 __GLXcontext
*const gc
= __glXGetCurrentContext();
4902 const GLuint cmdlen
= 28;
4903 emit_header(gc
->pc
, X_GLrop_Translated
, cmdlen
);
4904 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
4905 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
4906 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
4908 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4909 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4913 #define X_GLrop_Translatef 190
4915 __indirect_glTranslatef(GLfloat x
, GLfloat y
, GLfloat z
)
4917 __GLXcontext
*const gc
= __glXGetCurrentContext();
4918 const GLuint cmdlen
= 16;
4919 emit_header(gc
->pc
, X_GLrop_Translatef
, cmdlen
);
4920 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
4921 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
4922 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
4924 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4925 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4929 #define X_GLrop_Viewport 191
4931 __indirect_glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
4933 __GLXcontext
*const gc
= __glXGetCurrentContext();
4934 const GLuint cmdlen
= 20;
4935 emit_header(gc
->pc
, X_GLrop_Viewport
, cmdlen
);
4936 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
4937 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
4938 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&width
), 4);
4939 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&height
), 4);
4941 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4942 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4946 #define X_GLrop_BindTexture 4117
4948 __indirect_glBindTexture(GLenum target
, GLuint texture
)
4950 __GLXcontext
*const gc
= __glXGetCurrentContext();
4951 const GLuint cmdlen
= 12;
4952 emit_header(gc
->pc
, X_GLrop_BindTexture
, cmdlen
);
4953 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
4954 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&texture
), 4);
4956 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4957 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4961 #define X_GLrop_Indexubv 194
4963 __indirect_glIndexub(GLubyte c
)
4965 __GLXcontext
*const gc
= __glXGetCurrentContext();
4966 const GLuint cmdlen
= 8;
4967 emit_header(gc
->pc
, X_GLrop_Indexubv
, cmdlen
);
4968 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&c
), 1);
4970 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4971 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4975 #define X_GLrop_Indexubv 194
4977 __indirect_glIndexubv(const GLubyte
* c
)
4979 __GLXcontext
*const gc
= __glXGetCurrentContext();
4980 const GLuint cmdlen
= 8;
4981 emit_header(gc
->pc
, X_GLrop_Indexubv
, cmdlen
);
4982 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (c
), 1);
4984 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
4985 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
4989 #define X_GLrop_PolygonOffset 192
4991 __indirect_glPolygonOffset(GLfloat factor
, GLfloat units
)
4993 __GLXcontext
*const gc
= __glXGetCurrentContext();
4994 const GLuint cmdlen
= 12;
4995 emit_header(gc
->pc
, X_GLrop_PolygonOffset
, cmdlen
);
4996 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&factor
), 4);
4997 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&units
), 4);
4999 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5000 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5004 #define X_GLsop_AreTexturesResident 143
5006 __indirect_glAreTexturesResident(GLsizei n
, const GLuint
* textures
,
5007 GLboolean
* residences
)
5009 __GLXcontext
*const gc
= __glXGetCurrentContext();
5010 Display
*const dpy
= gc
->currentDpy
;
5011 GLboolean retval
= (GLboolean
) 0;
5012 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
5013 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
5015 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5016 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5017 xcb_glx_are_textures_resident_reply_t
*reply
=
5018 xcb_glx_are_textures_resident_reply(c
,
5019 xcb_glx_are_textures_resident
5020 (c
, gc
->currentContextTag
, n
,
5022 (void) memcpy(residences
, xcb_glx_are_textures_resident_data(reply
),
5023 xcb_glx_are_textures_resident_data_length(reply
) *
5025 retval
= reply
->ret_val
;
5029 __glXSetupSingleRequest(gc
, X_GLsop_AreTexturesResident
, cmdlen
);
5030 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
5031 (void) memcpy((void *) (pc
+ 4), (void *) (textures
), (n
* 4));
5032 retval
= (GLboolean
) __glXReadReply(dpy
, 1, residences
, GL_TRUE
);
5035 #endif /* USE_XCB */
5040 #define X_GLrop_CopyTexImage1D 4119
5042 __indirect_glCopyTexImage1D(GLenum target
, GLint level
, GLenum internalformat
,
5043 GLint x
, GLint y
, GLsizei width
, GLint border
)
5045 __GLXcontext
*const gc
= __glXGetCurrentContext();
5046 const GLuint cmdlen
= 32;
5047 emit_header(gc
->pc
, X_GLrop_CopyTexImage1D
, cmdlen
);
5048 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5049 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&level
), 4);
5050 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&internalformat
), 4);
5051 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&x
), 4);
5052 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 4);
5053 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&width
), 4);
5054 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&border
), 4);
5056 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5057 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5061 #define X_GLrop_CopyTexImage2D 4120
5063 __indirect_glCopyTexImage2D(GLenum target
, GLint level
, GLenum internalformat
,
5064 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
5067 __GLXcontext
*const gc
= __glXGetCurrentContext();
5068 const GLuint cmdlen
= 36;
5069 emit_header(gc
->pc
, X_GLrop_CopyTexImage2D
, cmdlen
);
5070 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5071 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&level
), 4);
5072 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&internalformat
), 4);
5073 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&x
), 4);
5074 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 4);
5075 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&width
), 4);
5076 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&height
), 4);
5077 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&border
), 4);
5079 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5080 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5084 #define X_GLrop_CopyTexSubImage1D 4121
5086 __indirect_glCopyTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
,
5087 GLint x
, GLint y
, GLsizei width
)
5089 __GLXcontext
*const gc
= __glXGetCurrentContext();
5090 const GLuint cmdlen
= 28;
5091 emit_header(gc
->pc
, X_GLrop_CopyTexSubImage1D
, cmdlen
);
5092 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5093 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&level
), 4);
5094 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&xoffset
), 4);
5095 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&x
), 4);
5096 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 4);
5097 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&width
), 4);
5099 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5100 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5104 #define X_GLrop_CopyTexSubImage2D 4122
5106 __indirect_glCopyTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
,
5107 GLint yoffset
, GLint x
, GLint y
, GLsizei width
,
5110 __GLXcontext
*const gc
= __glXGetCurrentContext();
5111 const GLuint cmdlen
= 36;
5112 emit_header(gc
->pc
, X_GLrop_CopyTexSubImage2D
, cmdlen
);
5113 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5114 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&level
), 4);
5115 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&xoffset
), 4);
5116 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&yoffset
), 4);
5117 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&x
), 4);
5118 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&y
), 4);
5119 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&width
), 4);
5120 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&height
), 4);
5122 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5123 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5127 #define X_GLvop_DeleteTextures 12
5129 __indirect_glDeleteTextures(GLsizei n
, const GLuint
* textures
)
5131 __GLXcontext
*const gc
= __glXGetCurrentContext();
5132 Display
*const dpy
= gc
->currentDpy
;
5133 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
5134 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
5136 __glXSetupVendorRequest(gc
, X_GLXVendorPrivate
,
5137 X_GLvop_DeleteTextures
, cmdlen
);
5138 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
5139 (void) memcpy((void *) (pc
+ 4), (void *) (textures
), (n
* 4));
5146 #define X_GLsop_GenTextures 145
5148 __indirect_glGenTextures(GLsizei n
, GLuint
* textures
)
5150 __GLXcontext
*const gc
= __glXGetCurrentContext();
5151 Display
*const dpy
= gc
->currentDpy
;
5152 const GLuint cmdlen
= 4;
5153 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
5155 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5156 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5157 xcb_glx_gen_textures_reply_t
*reply
=
5158 xcb_glx_gen_textures_reply(c
,
5159 xcb_glx_gen_textures(c
,
5163 (void) memcpy(textures
, xcb_glx_gen_textures_data(reply
),
5164 xcb_glx_gen_textures_data_length(reply
) *
5169 __glXSetupSingleRequest(gc
, X_GLsop_GenTextures
, cmdlen
);
5170 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
5171 (void) __glXReadReply(dpy
, 4, textures
, GL_TRUE
);
5174 #endif /* USE_XCB */
5179 #define X_GLsop_IsTexture 146
5181 __indirect_glIsTexture(GLuint texture
)
5183 __GLXcontext
*const gc
= __glXGetCurrentContext();
5184 Display
*const dpy
= gc
->currentDpy
;
5185 GLboolean retval
= (GLboolean
) 0;
5186 const GLuint cmdlen
= 4;
5187 if (__builtin_expect(dpy
!= NULL
, 1)) {
5189 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5190 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5191 xcb_glx_is_texture_reply_t
*reply
=
5192 xcb_glx_is_texture_reply(c
,
5193 xcb_glx_is_texture(c
,
5194 gc
->currentContextTag
,
5196 retval
= reply
->ret_val
;
5200 __glXSetupSingleRequest(gc
, X_GLsop_IsTexture
, cmdlen
);
5201 (void) memcpy((void *) (pc
+ 0), (void *) (&texture
), 4);
5202 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
5205 #endif /* USE_XCB */
5210 #define X_GLrop_PrioritizeTextures 4118
5212 __indirect_glPrioritizeTextures(GLsizei n
, const GLuint
* textures
,
5213 const GLclampf
* priorities
)
5215 __GLXcontext
*const gc
= __glXGetCurrentContext();
5216 const GLuint cmdlen
= 8 + __GLX_PAD((n
* 4)) + __GLX_PAD((n
* 4));
5217 if (__builtin_expect(n
>= 0, 1)) {
5218 emit_header(gc
->pc
, X_GLrop_PrioritizeTextures
, cmdlen
);
5219 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
5220 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (textures
), (n
* 4));
5221 (void) memcpy((void *) (gc
->pc
+ 8 + (n
* 4)), (void *) (priorities
),
5224 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5225 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5231 __glx_TexSubImage_1D2D(unsigned opcode
, unsigned dim
, GLenum target
,
5232 GLint level
, GLint xoffset
, GLint yoffset
,
5233 GLsizei width
, GLsizei height
, GLenum format
,
5234 GLenum type
, const GLvoid
* pixels
)
5236 __GLXcontext
*const gc
= __glXGetCurrentContext();
5237 const GLuint compsize
=
5238 (pixels
!= NULL
) ? __glImageSize(width
, height
, 1, format
, type
,
5240 const GLuint cmdlen
= 60 + __GLX_PAD(compsize
);
5241 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
5242 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
5243 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
5244 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5246 emit_header(gc
->pc
, opcode
, cmdlen
);
5247 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&target
), 4);
5248 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&level
), 4);
5249 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&xoffset
), 4);
5250 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&yoffset
), 4);
5251 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&width
), 4);
5252 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&height
), 4);
5253 (void) memcpy((void *) (gc
->pc
+ 48), (void *) (&format
), 4);
5254 (void) memcpy((void *) (gc
->pc
+ 52), (void *) (&type
), 4);
5255 (void) memcpy((void *) (gc
->pc
+ 56),
5256 (void *) ((pixels
== NULL
) ? one
: zero
), 4);
5258 (*gc
->fillImage
) (gc
, dim
, width
, height
, 1, format
, type
,
5259 pixels
, gc
->pc
+ 60, gc
->pc
+ 4);
5261 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
5262 default_pixel_store_2D_size
);
5265 if (gc
->pc
> gc
->limit
) {
5266 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5269 const GLint op
= opcode
;
5270 const GLuint cmdlenLarge
= cmdlen
+ 4;
5271 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
5272 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
5273 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
5274 (void) memcpy((void *) (pc
+ 28), (void *) (&target
), 4);
5275 (void) memcpy((void *) (pc
+ 32), (void *) (&level
), 4);
5276 (void) memcpy((void *) (pc
+ 36), (void *) (&xoffset
), 4);
5277 (void) memcpy((void *) (pc
+ 40), (void *) (&yoffset
), 4);
5278 (void) memcpy((void *) (pc
+ 44), (void *) (&width
), 4);
5279 (void) memcpy((void *) (pc
+ 48), (void *) (&height
), 4);
5280 (void) memcpy((void *) (pc
+ 52), (void *) (&format
), 4);
5281 (void) memcpy((void *) (pc
+ 56), (void *) (&type
), 4);
5282 (void) memcpy((void *) (pc
+ 60), zero
, 4);
5283 __glXSendLargeImage(gc
, compsize
, dim
, width
, height
, 1, format
,
5284 type
, pixels
, pc
+ 64, pc
+ 8);
5289 #define X_GLrop_TexSubImage1D 4099
5291 __indirect_glTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
,
5292 GLsizei width
, GLenum format
, GLenum type
,
5293 const GLvoid
* pixels
)
5295 __glx_TexSubImage_1D2D(X_GLrop_TexSubImage1D
, 1, target
, level
, xoffset
,
5296 1, width
, 1, format
, type
, pixels
);
5299 #define X_GLrop_TexSubImage2D 4100
5301 __indirect_glTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
,
5302 GLint yoffset
, GLsizei width
, GLsizei height
,
5303 GLenum format
, GLenum type
, const GLvoid
* pixels
)
5305 __glx_TexSubImage_1D2D(X_GLrop_TexSubImage2D
, 2, target
, level
, xoffset
,
5306 yoffset
, width
, height
, format
, type
, pixels
);
5309 #define X_GLrop_BlendColor 4096
5311 __indirect_glBlendColor(GLclampf red
, GLclampf green
, GLclampf blue
,
5314 __GLXcontext
*const gc
= __glXGetCurrentContext();
5315 const GLuint cmdlen
= 20;
5316 emit_header(gc
->pc
, X_GLrop_BlendColor
, cmdlen
);
5317 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
5318 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
5319 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
5320 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&alpha
), 4);
5322 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5323 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5327 #define X_GLrop_BlendEquation 4097
5329 __indirect_glBlendEquation(GLenum mode
)
5331 __GLXcontext
*const gc
= __glXGetCurrentContext();
5332 const GLuint cmdlen
= 8;
5333 emit_header(gc
->pc
, X_GLrop_BlendEquation
, cmdlen
);
5334 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&mode
), 4);
5336 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5337 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5341 #define X_GLrop_ColorTable 2053
5343 __indirect_glColorTable(GLenum target
, GLenum internalformat
, GLsizei width
,
5344 GLenum format
, GLenum type
, const GLvoid
* table
)
5346 __GLXcontext
*const gc
= __glXGetCurrentContext();
5347 const GLuint compsize
=
5348 (table
!= NULL
) ? __glImageSize(width
, 1, 1, format
, type
,
5350 const GLuint cmdlen
= 44 + __GLX_PAD(compsize
);
5351 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
5352 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
5353 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
5354 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5356 emit_header(gc
->pc
, X_GLrop_ColorTable
, cmdlen
);
5357 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&target
), 4);
5358 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&internalformat
),
5360 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&width
), 4);
5361 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&format
), 4);
5362 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&type
), 4);
5364 (*gc
->fillImage
) (gc
, 1, width
, 1, 1, format
, type
, table
,
5365 gc
->pc
+ 44, gc
->pc
+ 4);
5367 (void) memcpy(gc
->pc
+ 4, default_pixel_store_1D
,
5368 default_pixel_store_1D_size
);
5371 if (gc
->pc
> gc
->limit
) {
5372 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5375 const GLint op
= X_GLrop_ColorTable
;
5376 const GLuint cmdlenLarge
= cmdlen
+ 4;
5377 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
5378 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
5379 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
5380 (void) memcpy((void *) (pc
+ 28), (void *) (&target
), 4);
5381 (void) memcpy((void *) (pc
+ 32), (void *) (&internalformat
), 4);
5382 (void) memcpy((void *) (pc
+ 36), (void *) (&width
), 4);
5383 (void) memcpy((void *) (pc
+ 40), (void *) (&format
), 4);
5384 (void) memcpy((void *) (pc
+ 44), (void *) (&type
), 4);
5385 __glXSendLargeImage(gc
, compsize
, 1, width
, 1, 1, format
, type
,
5386 table
, pc
+ 48, pc
+ 8);
5391 #define X_GLrop_ColorTableParameterfv 2054
5393 __indirect_glColorTableParameterfv(GLenum target
, GLenum pname
,
5394 const GLfloat
* params
)
5396 __GLXcontext
*const gc
= __glXGetCurrentContext();
5397 const GLuint compsize
= __glColorTableParameterfv_size(pname
);
5398 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
5399 emit_header(gc
->pc
, X_GLrop_ColorTableParameterfv
, cmdlen
);
5400 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5401 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5402 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
5404 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5405 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5409 #define X_GLrop_ColorTableParameteriv 2055
5411 __indirect_glColorTableParameteriv(GLenum target
, GLenum pname
,
5412 const GLint
* params
)
5414 __GLXcontext
*const gc
= __glXGetCurrentContext();
5415 const GLuint compsize
= __glColorTableParameteriv_size(pname
);
5416 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
5417 emit_header(gc
->pc
, X_GLrop_ColorTableParameteriv
, cmdlen
);
5418 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5419 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5420 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
5422 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5423 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5427 #define X_GLrop_CopyColorTable 2056
5429 __indirect_glCopyColorTable(GLenum target
, GLenum internalformat
, GLint x
,
5430 GLint y
, GLsizei width
)
5432 __GLXcontext
*const gc
= __glXGetCurrentContext();
5433 const GLuint cmdlen
= 24;
5434 emit_header(gc
->pc
, X_GLrop_CopyColorTable
, cmdlen
);
5435 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5436 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&internalformat
), 4);
5437 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
5438 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
5439 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&width
), 4);
5441 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5442 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5446 #define X_GLsop_GetColorTable 147
5448 __indirect_glGetColorTable(GLenum target
, GLenum format
, GLenum type
,
5451 __GLXcontext
*const gc
= __glXGetCurrentContext();
5452 const __GLXattribute
*const state
= gc
->client_state_private
;
5453 Display
*const dpy
= gc
->currentDpy
;
5454 const GLuint cmdlen
= 16;
5455 if (__builtin_expect(dpy
!= NULL
, 1)) {
5457 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5458 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5459 xcb_glx_get_color_table_reply_t
*reply
=
5460 xcb_glx_get_color_table_reply(c
,
5461 xcb_glx_get_color_table(c
,
5471 (void) memcpy(table
, xcb_glx_get_color_table_data(reply
),
5472 xcb_glx_get_color_table_data_length(reply
) *
5477 __glXSetupSingleRequest(gc
, X_GLsop_GetColorTable
, cmdlen
);
5478 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5479 (void) memcpy((void *) (pc
+ 4), (void *) (&format
), 4);
5480 (void) memcpy((void *) (pc
+ 8), (void *) (&type
), 4);
5481 *(int32_t *) (pc
+ 12) = 0;
5482 *(int8_t *) (pc
+ 12) = state
->storePack
.swapEndian
;
5483 __glXReadPixelReply(dpy
, gc
, 1, 0, 0, 0, format
, type
, table
,
5487 #endif /* USE_XCB */
5492 #define X_GLsop_GetColorTableParameterfv 148
5494 __indirect_glGetColorTableParameterfv(GLenum target
, GLenum pname
,
5497 __GLXcontext
*const gc
= __glXGetCurrentContext();
5498 Display
*const dpy
= gc
->currentDpy
;
5499 const GLuint cmdlen
= 8;
5500 if (__builtin_expect(dpy
!= NULL
, 1)) {
5502 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5503 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5504 xcb_glx_get_color_table_parameterfv_reply_t
*reply
=
5505 xcb_glx_get_color_table_parameterfv_reply(c
,
5506 xcb_glx_get_color_table_parameterfv
5508 gc
->currentContextTag
,
5509 target
, pname
), NULL
);
5510 if (xcb_glx_get_color_table_parameterfv_data_length(reply
) == 0)
5511 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
5513 (void) memcpy(params
,
5514 xcb_glx_get_color_table_parameterfv_data(reply
),
5515 xcb_glx_get_color_table_parameterfv_data_length
5516 (reply
) * sizeof(GLfloat
));
5520 __glXSetupSingleRequest(gc
, X_GLsop_GetColorTableParameterfv
,
5522 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5523 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
5524 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
5527 #endif /* USE_XCB */
5532 #define X_GLsop_GetColorTableParameteriv 149
5534 __indirect_glGetColorTableParameteriv(GLenum target
, GLenum pname
,
5537 __GLXcontext
*const gc
= __glXGetCurrentContext();
5538 Display
*const dpy
= gc
->currentDpy
;
5539 const GLuint cmdlen
= 8;
5540 if (__builtin_expect(dpy
!= NULL
, 1)) {
5542 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5543 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5544 xcb_glx_get_color_table_parameteriv_reply_t
*reply
=
5545 xcb_glx_get_color_table_parameteriv_reply(c
,
5546 xcb_glx_get_color_table_parameteriv
5548 gc
->currentContextTag
,
5549 target
, pname
), NULL
);
5550 if (xcb_glx_get_color_table_parameteriv_data_length(reply
) == 0)
5551 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
5553 (void) memcpy(params
,
5554 xcb_glx_get_color_table_parameteriv_data(reply
),
5555 xcb_glx_get_color_table_parameteriv_data_length
5556 (reply
) * sizeof(GLint
));
5560 __glXSetupSingleRequest(gc
, X_GLsop_GetColorTableParameteriv
,
5562 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5563 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
5564 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
5567 #endif /* USE_XCB */
5572 #define X_GLrop_ColorSubTable 195
5574 __indirect_glColorSubTable(GLenum target
, GLsizei start
, GLsizei count
,
5575 GLenum format
, GLenum type
, const GLvoid
* data
)
5577 __GLXcontext
*const gc
= __glXGetCurrentContext();
5578 const GLuint compsize
=
5579 (data
!= NULL
) ? __glImageSize(count
, 1, 1, format
, type
, target
) : 0;
5580 const GLuint cmdlen
= 44 + __GLX_PAD(compsize
);
5581 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
5582 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
5583 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
5584 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5586 emit_header(gc
->pc
, X_GLrop_ColorSubTable
, cmdlen
);
5587 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&target
), 4);
5588 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&start
), 4);
5589 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&count
), 4);
5590 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&format
), 4);
5591 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&type
), 4);
5593 (*gc
->fillImage
) (gc
, 1, count
, 1, 1, format
, type
, data
,
5594 gc
->pc
+ 44, gc
->pc
+ 4);
5596 (void) memcpy(gc
->pc
+ 4, default_pixel_store_1D
,
5597 default_pixel_store_1D_size
);
5600 if (gc
->pc
> gc
->limit
) {
5601 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5604 const GLint op
= X_GLrop_ColorSubTable
;
5605 const GLuint cmdlenLarge
= cmdlen
+ 4;
5606 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
5607 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
5608 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
5609 (void) memcpy((void *) (pc
+ 28), (void *) (&target
), 4);
5610 (void) memcpy((void *) (pc
+ 32), (void *) (&start
), 4);
5611 (void) memcpy((void *) (pc
+ 36), (void *) (&count
), 4);
5612 (void) memcpy((void *) (pc
+ 40), (void *) (&format
), 4);
5613 (void) memcpy((void *) (pc
+ 44), (void *) (&type
), 4);
5614 __glXSendLargeImage(gc
, compsize
, 1, count
, 1, 1, format
, type
,
5615 data
, pc
+ 48, pc
+ 8);
5620 #define X_GLrop_CopyColorSubTable 196
5622 __indirect_glCopyColorSubTable(GLenum target
, GLsizei start
, GLint x
, GLint y
,
5625 __GLXcontext
*const gc
= __glXGetCurrentContext();
5626 const GLuint cmdlen
= 24;
5627 emit_header(gc
->pc
, X_GLrop_CopyColorSubTable
, cmdlen
);
5628 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5629 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&start
), 4);
5630 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
5631 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
5632 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&width
), 4);
5634 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5635 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5640 __glx_ConvolutionFilter_1D2D(unsigned opcode
, unsigned dim
, GLenum target
,
5641 GLenum internalformat
, GLsizei width
,
5642 GLsizei height
, GLenum format
, GLenum type
,
5643 const GLvoid
* image
)
5645 __GLXcontext
*const gc
= __glXGetCurrentContext();
5646 const GLuint compsize
=
5647 (image
!= NULL
) ? __glImageSize(width
, height
, 1, format
, type
,
5649 const GLuint cmdlen
= 48 + __GLX_PAD(compsize
);
5650 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
5651 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
5652 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
5653 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5655 emit_header(gc
->pc
, opcode
, cmdlen
);
5656 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&target
), 4);
5657 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&internalformat
),
5659 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&width
), 4);
5660 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&height
), 4);
5661 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&format
), 4);
5662 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&type
), 4);
5664 (*gc
->fillImage
) (gc
, dim
, width
, height
, 1, format
, type
,
5665 image
, gc
->pc
+ 48, gc
->pc
+ 4);
5667 (void) memcpy(gc
->pc
+ 4, default_pixel_store_2D
,
5668 default_pixel_store_2D_size
);
5671 if (gc
->pc
> gc
->limit
) {
5672 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5675 const GLint op
= opcode
;
5676 const GLuint cmdlenLarge
= cmdlen
+ 4;
5677 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
5678 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
5679 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
5680 (void) memcpy((void *) (pc
+ 28), (void *) (&target
), 4);
5681 (void) memcpy((void *) (pc
+ 32), (void *) (&internalformat
), 4);
5682 (void) memcpy((void *) (pc
+ 36), (void *) (&width
), 4);
5683 (void) memcpy((void *) (pc
+ 40), (void *) (&height
), 4);
5684 (void) memcpy((void *) (pc
+ 44), (void *) (&format
), 4);
5685 (void) memcpy((void *) (pc
+ 48), (void *) (&type
), 4);
5686 __glXSendLargeImage(gc
, compsize
, dim
, width
, height
, 1, format
,
5687 type
, image
, pc
+ 52, pc
+ 8);
5692 #define X_GLrop_ConvolutionFilter1D 4101
5694 __indirect_glConvolutionFilter1D(GLenum target
, GLenum internalformat
,
5695 GLsizei width
, GLenum format
, GLenum type
,
5696 const GLvoid
* image
)
5698 __glx_ConvolutionFilter_1D2D(X_GLrop_ConvolutionFilter1D
, 1, target
,
5699 internalformat
, width
, 1, format
, type
,
5703 #define X_GLrop_ConvolutionFilter2D 4102
5705 __indirect_glConvolutionFilter2D(GLenum target
, GLenum internalformat
,
5706 GLsizei width
, GLsizei height
, GLenum format
,
5707 GLenum type
, const GLvoid
* image
)
5709 __glx_ConvolutionFilter_1D2D(X_GLrop_ConvolutionFilter2D
, 2, target
,
5710 internalformat
, width
, height
, format
, type
,
5714 #define X_GLrop_ConvolutionParameterf 4103
5716 __indirect_glConvolutionParameterf(GLenum target
, GLenum pname
,
5719 __GLXcontext
*const gc
= __glXGetCurrentContext();
5720 const GLuint cmdlen
= 16;
5721 emit_header(gc
->pc
, X_GLrop_ConvolutionParameterf
, cmdlen
);
5722 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5723 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5724 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶ms
), 4);
5726 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5727 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5731 #define X_GLrop_ConvolutionParameterfv 4104
5733 __indirect_glConvolutionParameterfv(GLenum target
, GLenum pname
,
5734 const GLfloat
* params
)
5736 __GLXcontext
*const gc
= __glXGetCurrentContext();
5737 const GLuint compsize
= __glConvolutionParameterfv_size(pname
);
5738 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
5739 emit_header(gc
->pc
, X_GLrop_ConvolutionParameterfv
, cmdlen
);
5740 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5741 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5742 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
5744 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5745 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5749 #define X_GLrop_ConvolutionParameteri 4105
5751 __indirect_glConvolutionParameteri(GLenum target
, GLenum pname
, GLint params
)
5753 __GLXcontext
*const gc
= __glXGetCurrentContext();
5754 const GLuint cmdlen
= 16;
5755 emit_header(gc
->pc
, X_GLrop_ConvolutionParameteri
, cmdlen
);
5756 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5757 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5758 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (¶ms
), 4);
5760 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5761 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5765 #define X_GLrop_ConvolutionParameteriv 4106
5767 __indirect_glConvolutionParameteriv(GLenum target
, GLenum pname
,
5768 const GLint
* params
)
5770 __GLXcontext
*const gc
= __glXGetCurrentContext();
5771 const GLuint compsize
= __glConvolutionParameteriv_size(pname
);
5772 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 4));
5773 emit_header(gc
->pc
, X_GLrop_ConvolutionParameteriv
, cmdlen
);
5774 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5775 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&pname
), 4);
5776 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), (compsize
* 4));
5778 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5779 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5783 #define X_GLrop_CopyConvolutionFilter1D 4107
5785 __indirect_glCopyConvolutionFilter1D(GLenum target
, GLenum internalformat
,
5786 GLint x
, GLint y
, GLsizei width
)
5788 __GLXcontext
*const gc
= __glXGetCurrentContext();
5789 const GLuint cmdlen
= 24;
5790 emit_header(gc
->pc
, X_GLrop_CopyConvolutionFilter1D
, cmdlen
);
5791 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5792 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&internalformat
), 4);
5793 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
5794 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
5795 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&width
), 4);
5797 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5798 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5802 #define X_GLrop_CopyConvolutionFilter2D 4108
5804 __indirect_glCopyConvolutionFilter2D(GLenum target
, GLenum internalformat
,
5805 GLint x
, GLint y
, GLsizei width
,
5808 __GLXcontext
*const gc
= __glXGetCurrentContext();
5809 const GLuint cmdlen
= 28;
5810 emit_header(gc
->pc
, X_GLrop_CopyConvolutionFilter2D
, cmdlen
);
5811 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
5812 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&internalformat
), 4);
5813 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
5814 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
5815 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&width
), 4);
5816 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&height
), 4);
5818 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
5819 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5823 #define X_GLsop_GetConvolutionFilter 150
5825 __indirect_glGetConvolutionFilter(GLenum target
, GLenum format
, GLenum type
,
5828 __GLXcontext
*const gc
= __glXGetCurrentContext();
5829 const __GLXattribute
*const state
= gc
->client_state_private
;
5830 Display
*const dpy
= gc
->currentDpy
;
5831 const GLuint cmdlen
= 16;
5832 if (__builtin_expect(dpy
!= NULL
, 1)) {
5834 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5835 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5836 xcb_glx_get_convolution_filter_reply_t
*reply
=
5837 xcb_glx_get_convolution_filter_reply(c
,
5838 xcb_glx_get_convolution_filter
5839 (c
, gc
->currentContextTag
,
5840 target
, format
, type
,
5843 (void) memcpy(image
, xcb_glx_get_convolution_filter_data(reply
),
5844 xcb_glx_get_convolution_filter_data_length(reply
) *
5849 __glXSetupSingleRequest(gc
, X_GLsop_GetConvolutionFilter
, cmdlen
);
5850 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5851 (void) memcpy((void *) (pc
+ 4), (void *) (&format
), 4);
5852 (void) memcpy((void *) (pc
+ 8), (void *) (&type
), 4);
5853 *(int32_t *) (pc
+ 12) = 0;
5854 *(int8_t *) (pc
+ 12) = state
->storePack
.swapEndian
;
5855 __glXReadPixelReply(dpy
, gc
, 2, 0, 0, 0, format
, type
, image
,
5859 #endif /* USE_XCB */
5864 #define X_GLsop_GetConvolutionParameterfv 151
5866 __indirect_glGetConvolutionParameterfv(GLenum target
, GLenum pname
,
5869 __GLXcontext
*const gc
= __glXGetCurrentContext();
5870 Display
*const dpy
= gc
->currentDpy
;
5871 const GLuint cmdlen
= 8;
5872 if (__builtin_expect(dpy
!= NULL
, 1)) {
5874 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5875 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5876 xcb_glx_get_convolution_parameterfv_reply_t
*reply
=
5877 xcb_glx_get_convolution_parameterfv_reply(c
,
5878 xcb_glx_get_convolution_parameterfv
5880 gc
->currentContextTag
,
5881 target
, pname
), NULL
);
5882 if (xcb_glx_get_convolution_parameterfv_data_length(reply
) == 0)
5883 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
5885 (void) memcpy(params
,
5886 xcb_glx_get_convolution_parameterfv_data(reply
),
5887 xcb_glx_get_convolution_parameterfv_data_length
5888 (reply
) * sizeof(GLfloat
));
5892 __glXSetupSingleRequest(gc
, X_GLsop_GetConvolutionParameterfv
,
5894 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5895 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
5896 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
5899 #endif /* USE_XCB */
5904 #define X_GLsop_GetConvolutionParameteriv 152
5906 __indirect_glGetConvolutionParameteriv(GLenum target
, GLenum pname
,
5909 __GLXcontext
*const gc
= __glXGetCurrentContext();
5910 Display
*const dpy
= gc
->currentDpy
;
5911 const GLuint cmdlen
= 8;
5912 if (__builtin_expect(dpy
!= NULL
, 1)) {
5914 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5915 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5916 xcb_glx_get_convolution_parameteriv_reply_t
*reply
=
5917 xcb_glx_get_convolution_parameteriv_reply(c
,
5918 xcb_glx_get_convolution_parameteriv
5920 gc
->currentContextTag
,
5921 target
, pname
), NULL
);
5922 if (xcb_glx_get_convolution_parameteriv_data_length(reply
) == 0)
5923 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
5925 (void) memcpy(params
,
5926 xcb_glx_get_convolution_parameteriv_data(reply
),
5927 xcb_glx_get_convolution_parameteriv_data_length
5928 (reply
) * sizeof(GLint
));
5932 __glXSetupSingleRequest(gc
, X_GLsop_GetConvolutionParameteriv
,
5934 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5935 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
5936 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
5939 #endif /* USE_XCB */
5944 #define X_GLsop_GetHistogram 154
5946 __indirect_glGetHistogram(GLenum target
, GLboolean reset
, GLenum format
,
5947 GLenum type
, GLvoid
* values
)
5949 __GLXcontext
*const gc
= __glXGetCurrentContext();
5950 const __GLXattribute
*const state
= gc
->client_state_private
;
5951 Display
*const dpy
= gc
->currentDpy
;
5952 const GLuint cmdlen
= 16;
5953 if (__builtin_expect(dpy
!= NULL
, 1)) {
5955 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
5956 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
5957 xcb_glx_get_histogram_reply_t
*reply
=
5958 xcb_glx_get_histogram_reply(c
,
5959 xcb_glx_get_histogram(c
,
5968 (void) memcpy(values
, xcb_glx_get_histogram_data(reply
),
5969 xcb_glx_get_histogram_data_length(reply
) *
5974 __glXSetupSingleRequest(gc
, X_GLsop_GetHistogram
, cmdlen
);
5975 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
5976 (void) memcpy((void *) (pc
+ 4), (void *) (&format
), 4);
5977 (void) memcpy((void *) (pc
+ 8), (void *) (&type
), 4);
5978 *(int32_t *) (pc
+ 12) = 0;
5979 *(int8_t *) (pc
+ 12) = state
->storePack
.swapEndian
;
5980 *(int8_t *) (pc
+ 13) = reset
;
5981 __glXReadPixelReply(dpy
, gc
, 1, 0, 0, 0, format
, type
, values
,
5985 #endif /* USE_XCB */
5990 #define X_GLsop_GetHistogramParameterfv 155
5992 __indirect_glGetHistogramParameterfv(GLenum target
, GLenum pname
,
5995 __GLXcontext
*const gc
= __glXGetCurrentContext();
5996 Display
*const dpy
= gc
->currentDpy
;
5997 const GLuint cmdlen
= 8;
5998 if (__builtin_expect(dpy
!= NULL
, 1)) {
6000 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
6001 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6002 xcb_glx_get_histogram_parameterfv_reply_t
*reply
=
6003 xcb_glx_get_histogram_parameterfv_reply(c
,
6004 xcb_glx_get_histogram_parameterfv
6005 (c
, gc
->currentContextTag
,
6006 target
, pname
), NULL
);
6007 if (xcb_glx_get_histogram_parameterfv_data_length(reply
) == 0)
6008 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
6010 (void) memcpy(params
,
6011 xcb_glx_get_histogram_parameterfv_data(reply
),
6012 xcb_glx_get_histogram_parameterfv_data_length(reply
)
6017 __glXSetupSingleRequest(gc
, X_GLsop_GetHistogramParameterfv
,
6019 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6020 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6021 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
6024 #endif /* USE_XCB */
6029 #define X_GLsop_GetHistogramParameteriv 156
6031 __indirect_glGetHistogramParameteriv(GLenum target
, GLenum pname
,
6034 __GLXcontext
*const gc
= __glXGetCurrentContext();
6035 Display
*const dpy
= gc
->currentDpy
;
6036 const GLuint cmdlen
= 8;
6037 if (__builtin_expect(dpy
!= NULL
, 1)) {
6039 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
6040 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6041 xcb_glx_get_histogram_parameteriv_reply_t
*reply
=
6042 xcb_glx_get_histogram_parameteriv_reply(c
,
6043 xcb_glx_get_histogram_parameteriv
6044 (c
, gc
->currentContextTag
,
6045 target
, pname
), NULL
);
6046 if (xcb_glx_get_histogram_parameteriv_data_length(reply
) == 0)
6047 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
6049 (void) memcpy(params
,
6050 xcb_glx_get_histogram_parameteriv_data(reply
),
6051 xcb_glx_get_histogram_parameteriv_data_length(reply
)
6056 __glXSetupSingleRequest(gc
, X_GLsop_GetHistogramParameteriv
,
6058 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6059 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6060 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
6063 #endif /* USE_XCB */
6068 #define X_GLsop_GetMinmax 157
6070 __indirect_glGetMinmax(GLenum target
, GLboolean reset
, GLenum format
,
6071 GLenum type
, GLvoid
* values
)
6073 __GLXcontext
*const gc
= __glXGetCurrentContext();
6074 const __GLXattribute
*const state
= gc
->client_state_private
;
6075 Display
*const dpy
= gc
->currentDpy
;
6076 const GLuint cmdlen
= 16;
6077 if (__builtin_expect(dpy
!= NULL
, 1)) {
6079 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
6080 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6081 xcb_glx_get_minmax_reply_t
*reply
=
6082 xcb_glx_get_minmax_reply(c
,
6083 xcb_glx_get_minmax(c
,
6084 gc
->currentContextTag
,
6085 target
, reset
, format
,
6089 (void) memcpy(values
, xcb_glx_get_minmax_data(reply
),
6090 xcb_glx_get_minmax_data_length(reply
) * sizeof(GLvoid
));
6094 __glXSetupSingleRequest(gc
, X_GLsop_GetMinmax
, cmdlen
);
6095 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6096 (void) memcpy((void *) (pc
+ 4), (void *) (&format
), 4);
6097 (void) memcpy((void *) (pc
+ 8), (void *) (&type
), 4);
6098 *(int32_t *) (pc
+ 12) = 0;
6099 *(int8_t *) (pc
+ 12) = state
->storePack
.swapEndian
;
6100 *(int8_t *) (pc
+ 13) = reset
;
6101 __glXReadPixelReply(dpy
, gc
, 1, 2, 1, 1, format
, type
, values
,
6105 #endif /* USE_XCB */
6110 #define X_GLsop_GetMinmaxParameterfv 158
6112 __indirect_glGetMinmaxParameterfv(GLenum target
, GLenum pname
,
6115 __GLXcontext
*const gc
= __glXGetCurrentContext();
6116 Display
*const dpy
= gc
->currentDpy
;
6117 const GLuint cmdlen
= 8;
6118 if (__builtin_expect(dpy
!= NULL
, 1)) {
6120 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
6121 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6122 xcb_glx_get_minmax_parameterfv_reply_t
*reply
=
6123 xcb_glx_get_minmax_parameterfv_reply(c
,
6124 xcb_glx_get_minmax_parameterfv
6125 (c
, gc
->currentContextTag
,
6126 target
, pname
), NULL
);
6127 if (xcb_glx_get_minmax_parameterfv_data_length(reply
) == 0)
6128 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
6130 (void) memcpy(params
, xcb_glx_get_minmax_parameterfv_data(reply
),
6131 xcb_glx_get_minmax_parameterfv_data_length(reply
) *
6136 __glXSetupSingleRequest(gc
, X_GLsop_GetMinmaxParameterfv
, cmdlen
);
6137 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6138 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6139 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
6142 #endif /* USE_XCB */
6147 #define X_GLsop_GetMinmaxParameteriv 159
6149 __indirect_glGetMinmaxParameteriv(GLenum target
, GLenum pname
, GLint
* params
)
6151 __GLXcontext
*const gc
= __glXGetCurrentContext();
6152 Display
*const dpy
= gc
->currentDpy
;
6153 const GLuint cmdlen
= 8;
6154 if (__builtin_expect(dpy
!= NULL
, 1)) {
6156 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
6157 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6158 xcb_glx_get_minmax_parameteriv_reply_t
*reply
=
6159 xcb_glx_get_minmax_parameteriv_reply(c
,
6160 xcb_glx_get_minmax_parameteriv
6161 (c
, gc
->currentContextTag
,
6162 target
, pname
), NULL
);
6163 if (xcb_glx_get_minmax_parameteriv_data_length(reply
) == 0)
6164 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
6166 (void) memcpy(params
, xcb_glx_get_minmax_parameteriv_data(reply
),
6167 xcb_glx_get_minmax_parameteriv_data_length(reply
) *
6172 __glXSetupSingleRequest(gc
, X_GLsop_GetMinmaxParameteriv
, cmdlen
);
6173 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6174 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6175 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
6178 #endif /* USE_XCB */
6183 #define X_GLrop_Histogram 4110
6185 __indirect_glHistogram(GLenum target
, GLsizei width
, GLenum internalformat
,
6188 __GLXcontext
*const gc
= __glXGetCurrentContext();
6189 const GLuint cmdlen
= 20;
6190 emit_header(gc
->pc
, X_GLrop_Histogram
, cmdlen
);
6191 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6192 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&width
), 4);
6193 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&internalformat
), 4);
6194 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&sink
), 1);
6196 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6197 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6201 #define X_GLrop_Minmax 4111
6203 __indirect_glMinmax(GLenum target
, GLenum internalformat
, GLboolean sink
)
6205 __GLXcontext
*const gc
= __glXGetCurrentContext();
6206 const GLuint cmdlen
= 16;
6207 emit_header(gc
->pc
, X_GLrop_Minmax
, cmdlen
);
6208 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6209 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&internalformat
), 4);
6210 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&sink
), 1);
6212 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6213 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6217 #define X_GLrop_ResetHistogram 4112
6219 __indirect_glResetHistogram(GLenum target
)
6221 __GLXcontext
*const gc
= __glXGetCurrentContext();
6222 const GLuint cmdlen
= 8;
6223 emit_header(gc
->pc
, X_GLrop_ResetHistogram
, cmdlen
);
6224 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6226 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6227 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6231 #define X_GLrop_ResetMinmax 4113
6233 __indirect_glResetMinmax(GLenum target
)
6235 __GLXcontext
*const gc
= __glXGetCurrentContext();
6236 const GLuint cmdlen
= 8;
6237 emit_header(gc
->pc
, X_GLrop_ResetMinmax
, cmdlen
);
6238 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6240 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6241 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6246 __glx_TexImage_3D4D(unsigned opcode
, unsigned dim
, GLenum target
, GLint level
,
6247 GLint internalformat
, GLsizei width
, GLsizei height
,
6248 GLsizei depth
, GLsizei extent
, GLint border
,
6249 GLenum format
, GLenum type
, const GLvoid
* pixels
)
6251 __GLXcontext
*const gc
= __glXGetCurrentContext();
6252 const GLuint compsize
=
6253 (pixels
!= NULL
) ? __glImageSize(width
, height
, depth
, format
, type
,
6255 const GLuint cmdlen
= 84 + __GLX_PAD(compsize
);
6256 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
6257 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
6258 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
6259 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6261 emit_header(gc
->pc
, opcode
, cmdlen
);
6262 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&target
), 4);
6263 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&level
), 4);
6264 (void) memcpy((void *) (gc
->pc
+ 48), (void *) (&internalformat
),
6266 (void) memcpy((void *) (gc
->pc
+ 52), (void *) (&width
), 4);
6267 (void) memcpy((void *) (gc
->pc
+ 56), (void *) (&height
), 4);
6268 (void) memcpy((void *) (gc
->pc
+ 60), (void *) (&depth
), 4);
6269 (void) memcpy((void *) (gc
->pc
+ 64), (void *) (&extent
), 4);
6270 (void) memcpy((void *) (gc
->pc
+ 68), (void *) (&border
), 4);
6271 (void) memcpy((void *) (gc
->pc
+ 72), (void *) (&format
), 4);
6272 (void) memcpy((void *) (gc
->pc
+ 76), (void *) (&type
), 4);
6273 (void) memcpy((void *) (gc
->pc
+ 80),
6274 (void *) ((pixels
== NULL
) ? one
: zero
), 4);
6276 (*gc
->fillImage
) (gc
, dim
, width
, height
, depth
, format
, type
,
6277 pixels
, gc
->pc
+ 84, gc
->pc
+ 4);
6279 (void) memcpy(gc
->pc
+ 4, default_pixel_store_4D
,
6280 default_pixel_store_4D_size
);
6283 if (gc
->pc
> gc
->limit
) {
6284 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6287 const GLint op
= opcode
;
6288 const GLuint cmdlenLarge
= cmdlen
+ 4;
6289 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
6290 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
6291 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
6292 (void) memcpy((void *) (pc
+ 44), (void *) (&target
), 4);
6293 (void) memcpy((void *) (pc
+ 48), (void *) (&level
), 4);
6294 (void) memcpy((void *) (pc
+ 52), (void *) (&internalformat
), 4);
6295 (void) memcpy((void *) (pc
+ 56), (void *) (&width
), 4);
6296 (void) memcpy((void *) (pc
+ 60), (void *) (&height
), 4);
6297 (void) memcpy((void *) (pc
+ 64), (void *) (&depth
), 4);
6298 (void) memcpy((void *) (pc
+ 68), (void *) (&extent
), 4);
6299 (void) memcpy((void *) (pc
+ 72), (void *) (&border
), 4);
6300 (void) memcpy((void *) (pc
+ 76), (void *) (&format
), 4);
6301 (void) memcpy((void *) (pc
+ 80), (void *) (&type
), 4);
6302 (void) memcpy((void *) (pc
+ 84), zero
, 4);
6303 __glXSendLargeImage(gc
, compsize
, dim
, width
, height
, depth
,
6304 format
, type
, pixels
, pc
+ 88, pc
+ 8);
6309 #define X_GLrop_TexImage3D 4114
6311 __indirect_glTexImage3D(GLenum target
, GLint level
, GLint internalformat
,
6312 GLsizei width
, GLsizei height
, GLsizei depth
,
6313 GLint border
, GLenum format
, GLenum type
,
6314 const GLvoid
* pixels
)
6316 __glx_TexImage_3D4D(X_GLrop_TexImage3D
, 3, target
, level
, internalformat
,
6317 width
, height
, depth
, 1, border
, format
, type
,
6322 __glx_TexSubImage_3D4D(unsigned opcode
, unsigned dim
, GLenum target
,
6323 GLint level
, GLint xoffset
, GLint yoffset
,
6324 GLint zoffset
, GLint woffset
, GLsizei width
,
6325 GLsizei height
, GLsizei depth
, GLsizei extent
,
6326 GLenum format
, GLenum type
, const GLvoid
* pixels
)
6328 __GLXcontext
*const gc
= __glXGetCurrentContext();
6329 const GLuint compsize
=
6330 (pixels
!= NULL
) ? __glImageSize(width
, height
, depth
, format
, type
,
6332 const GLuint cmdlen
= 92 + __GLX_PAD(compsize
);
6333 if (__builtin_expect(gc
->currentDpy
!= NULL
, 1)) {
6334 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
6335 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
6336 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6338 emit_header(gc
->pc
, opcode
, cmdlen
);
6339 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&target
), 4);
6340 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (&level
), 4);
6341 (void) memcpy((void *) (gc
->pc
+ 48), (void *) (&xoffset
), 4);
6342 (void) memcpy((void *) (gc
->pc
+ 52), (void *) (&yoffset
), 4);
6343 (void) memcpy((void *) (gc
->pc
+ 56), (void *) (&zoffset
), 4);
6344 (void) memcpy((void *) (gc
->pc
+ 60), (void *) (&woffset
), 4);
6345 (void) memcpy((void *) (gc
->pc
+ 64), (void *) (&width
), 4);
6346 (void) memcpy((void *) (gc
->pc
+ 68), (void *) (&height
), 4);
6347 (void) memcpy((void *) (gc
->pc
+ 72), (void *) (&depth
), 4);
6348 (void) memcpy((void *) (gc
->pc
+ 76), (void *) (&extent
), 4);
6349 (void) memcpy((void *) (gc
->pc
+ 80), (void *) (&format
), 4);
6350 (void) memcpy((void *) (gc
->pc
+ 84), (void *) (&type
), 4);
6351 (void) memcpy((void *) (gc
->pc
+ 88),
6352 (void *) ((pixels
== NULL
) ? one
: zero
), 4);
6354 (*gc
->fillImage
) (gc
, dim
, width
, height
, depth
, format
, type
,
6355 pixels
, gc
->pc
+ 92, gc
->pc
+ 4);
6357 (void) memcpy(gc
->pc
+ 4, default_pixel_store_4D
,
6358 default_pixel_store_4D_size
);
6361 if (gc
->pc
> gc
->limit
) {
6362 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6365 const GLint op
= opcode
;
6366 const GLuint cmdlenLarge
= cmdlen
+ 4;
6367 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
6368 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
6369 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
6370 (void) memcpy((void *) (pc
+ 44), (void *) (&target
), 4);
6371 (void) memcpy((void *) (pc
+ 48), (void *) (&level
), 4);
6372 (void) memcpy((void *) (pc
+ 52), (void *) (&xoffset
), 4);
6373 (void) memcpy((void *) (pc
+ 56), (void *) (&yoffset
), 4);
6374 (void) memcpy((void *) (pc
+ 60), (void *) (&zoffset
), 4);
6375 (void) memcpy((void *) (pc
+ 64), (void *) (&woffset
), 4);
6376 (void) memcpy((void *) (pc
+ 68), (void *) (&width
), 4);
6377 (void) memcpy((void *) (pc
+ 72), (void *) (&height
), 4);
6378 (void) memcpy((void *) (pc
+ 76), (void *) (&depth
), 4);
6379 (void) memcpy((void *) (pc
+ 80), (void *) (&extent
), 4);
6380 (void) memcpy((void *) (pc
+ 84), (void *) (&format
), 4);
6381 (void) memcpy((void *) (pc
+ 88), (void *) (&type
), 4);
6382 (void) memcpy((void *) (pc
+ 92), zero
, 4);
6383 __glXSendLargeImage(gc
, compsize
, dim
, width
, height
, depth
,
6384 format
, type
, pixels
, pc
+ 96, pc
+ 8);
6389 #define X_GLrop_TexSubImage3D 4115
6391 __indirect_glTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
,
6392 GLint yoffset
, GLint zoffset
, GLsizei width
,
6393 GLsizei height
, GLsizei depth
, GLenum format
,
6394 GLenum type
, const GLvoid
* pixels
)
6396 __glx_TexSubImage_3D4D(X_GLrop_TexSubImage3D
, 3, target
, level
, xoffset
,
6397 yoffset
, zoffset
, 1, width
, height
, depth
, 1,
6398 format
, type
, pixels
);
6401 #define X_GLrop_CopyTexSubImage3D 4123
6403 __indirect_glCopyTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
,
6404 GLint yoffset
, GLint zoffset
, GLint x
, GLint y
,
6405 GLsizei width
, GLsizei height
)
6407 __GLXcontext
*const gc
= __glXGetCurrentContext();
6408 const GLuint cmdlen
= 40;
6409 emit_header(gc
->pc
, X_GLrop_CopyTexSubImage3D
, cmdlen
);
6410 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6411 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&level
), 4);
6412 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&xoffset
), 4);
6413 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&yoffset
), 4);
6414 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&zoffset
), 4);
6415 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&x
), 4);
6416 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&y
), 4);
6417 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&width
), 4);
6418 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&height
), 4);
6420 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6421 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6425 #define X_GLrop_ActiveTextureARB 197
6427 __indirect_glActiveTextureARB(GLenum texture
)
6429 __GLXcontext
*const gc
= __glXGetCurrentContext();
6430 const GLuint cmdlen
= 8;
6431 emit_header(gc
->pc
, X_GLrop_ActiveTextureARB
, cmdlen
);
6432 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&texture
), 4);
6434 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6435 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6439 #define X_GLrop_MultiTexCoord1dvARB 198
6441 __indirect_glMultiTexCoord1dARB(GLenum target
, GLdouble s
)
6443 __GLXcontext
*const gc
= __glXGetCurrentContext();
6444 const GLuint cmdlen
= 16;
6445 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1dvARB
, cmdlen
);
6446 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
6447 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&target
), 4);
6449 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6450 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6454 #define X_GLrop_MultiTexCoord1dvARB 198
6456 __indirect_glMultiTexCoord1dvARB(GLenum target
, const GLdouble
* v
)
6458 __GLXcontext
*const gc
= __glXGetCurrentContext();
6459 const GLuint cmdlen
= 16;
6460 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1dvARB
, cmdlen
);
6461 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 8);
6462 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&target
), 4);
6464 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6465 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6469 #define X_GLrop_MultiTexCoord1fvARB 199
6471 __indirect_glMultiTexCoord1fARB(GLenum target
, GLfloat s
)
6473 __GLXcontext
*const gc
= __glXGetCurrentContext();
6474 const GLuint cmdlen
= 12;
6475 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1fvARB
, cmdlen
);
6476 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6477 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6479 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6480 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6484 #define X_GLrop_MultiTexCoord1fvARB 199
6486 __indirect_glMultiTexCoord1fvARB(GLenum target
, const GLfloat
* v
)
6488 __GLXcontext
*const gc
= __glXGetCurrentContext();
6489 const GLuint cmdlen
= 12;
6490 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1fvARB
, cmdlen
);
6491 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6492 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
6494 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6495 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6499 #define X_GLrop_MultiTexCoord1ivARB 200
6501 __indirect_glMultiTexCoord1iARB(GLenum target
, GLint s
)
6503 __GLXcontext
*const gc
= __glXGetCurrentContext();
6504 const GLuint cmdlen
= 12;
6505 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1ivARB
, cmdlen
);
6506 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6507 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6509 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6510 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6514 #define X_GLrop_MultiTexCoord1ivARB 200
6516 __indirect_glMultiTexCoord1ivARB(GLenum target
, const GLint
* v
)
6518 __GLXcontext
*const gc
= __glXGetCurrentContext();
6519 const GLuint cmdlen
= 12;
6520 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1ivARB
, cmdlen
);
6521 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6522 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
6524 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6525 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6529 #define X_GLrop_MultiTexCoord1svARB 201
6531 __indirect_glMultiTexCoord1sARB(GLenum target
, GLshort s
)
6533 __GLXcontext
*const gc
= __glXGetCurrentContext();
6534 const GLuint cmdlen
= 12;
6535 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1svARB
, cmdlen
);
6536 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6537 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 2);
6539 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6540 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6544 #define X_GLrop_MultiTexCoord1svARB 201
6546 __indirect_glMultiTexCoord1svARB(GLenum target
, const GLshort
* v
)
6548 __GLXcontext
*const gc
= __glXGetCurrentContext();
6549 const GLuint cmdlen
= 12;
6550 emit_header(gc
->pc
, X_GLrop_MultiTexCoord1svARB
, cmdlen
);
6551 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6552 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 2);
6554 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6555 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6559 #define X_GLrop_MultiTexCoord2dvARB 202
6561 __indirect_glMultiTexCoord2dARB(GLenum target
, GLdouble s
, GLdouble t
)
6563 __GLXcontext
*const gc
= __glXGetCurrentContext();
6564 const GLuint cmdlen
= 24;
6565 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2dvARB
, cmdlen
);
6566 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
6567 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
6568 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&target
), 4);
6570 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6571 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6575 #define X_GLrop_MultiTexCoord2dvARB 202
6577 __indirect_glMultiTexCoord2dvARB(GLenum target
, const GLdouble
* v
)
6579 __GLXcontext
*const gc
= __glXGetCurrentContext();
6580 const GLuint cmdlen
= 24;
6581 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2dvARB
, cmdlen
);
6582 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 16);
6583 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&target
), 4);
6585 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6586 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6590 #define X_GLrop_MultiTexCoord2fvARB 203
6592 __indirect_glMultiTexCoord2fARB(GLenum target
, GLfloat s
, GLfloat t
)
6594 __GLXcontext
*const gc
= __glXGetCurrentContext();
6595 const GLuint cmdlen
= 16;
6596 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2fvARB
, cmdlen
);
6597 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6598 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6599 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6601 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6602 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6606 #define X_GLrop_MultiTexCoord2fvARB 203
6608 __indirect_glMultiTexCoord2fvARB(GLenum target
, const GLfloat
* v
)
6610 __GLXcontext
*const gc
= __glXGetCurrentContext();
6611 const GLuint cmdlen
= 16;
6612 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2fvARB
, cmdlen
);
6613 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6614 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
6616 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6617 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6621 #define X_GLrop_MultiTexCoord2ivARB 204
6623 __indirect_glMultiTexCoord2iARB(GLenum target
, GLint s
, GLint t
)
6625 __GLXcontext
*const gc
= __glXGetCurrentContext();
6626 const GLuint cmdlen
= 16;
6627 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2ivARB
, cmdlen
);
6628 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6629 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6630 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6632 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6633 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6637 #define X_GLrop_MultiTexCoord2ivARB 204
6639 __indirect_glMultiTexCoord2ivARB(GLenum target
, const GLint
* v
)
6641 __GLXcontext
*const gc
= __glXGetCurrentContext();
6642 const GLuint cmdlen
= 16;
6643 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2ivARB
, cmdlen
);
6644 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6645 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
6647 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6648 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6652 #define X_GLrop_MultiTexCoord2svARB 205
6654 __indirect_glMultiTexCoord2sARB(GLenum target
, GLshort s
, GLshort t
)
6656 __GLXcontext
*const gc
= __glXGetCurrentContext();
6657 const GLuint cmdlen
= 12;
6658 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2svARB
, cmdlen
);
6659 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6660 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 2);
6661 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&t
), 2);
6663 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6664 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6668 #define X_GLrop_MultiTexCoord2svARB 205
6670 __indirect_glMultiTexCoord2svARB(GLenum target
, const GLshort
* v
)
6672 __GLXcontext
*const gc
= __glXGetCurrentContext();
6673 const GLuint cmdlen
= 12;
6674 emit_header(gc
->pc
, X_GLrop_MultiTexCoord2svARB
, cmdlen
);
6675 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6676 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
6678 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6679 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6683 #define X_GLrop_MultiTexCoord3dvARB 206
6685 __indirect_glMultiTexCoord3dARB(GLenum target
, GLdouble s
, GLdouble t
,
6688 __GLXcontext
*const gc
= __glXGetCurrentContext();
6689 const GLuint cmdlen
= 32;
6690 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3dvARB
, cmdlen
);
6691 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
6692 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
6693 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&r
), 8);
6694 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&target
), 4);
6696 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6697 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6701 #define X_GLrop_MultiTexCoord3dvARB 206
6703 __indirect_glMultiTexCoord3dvARB(GLenum target
, const GLdouble
* v
)
6705 __GLXcontext
*const gc
= __glXGetCurrentContext();
6706 const GLuint cmdlen
= 32;
6707 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3dvARB
, cmdlen
);
6708 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 24);
6709 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&target
), 4);
6711 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6712 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6716 #define X_GLrop_MultiTexCoord3fvARB 207
6718 __indirect_glMultiTexCoord3fARB(GLenum target
, GLfloat s
, GLfloat t
,
6721 __GLXcontext
*const gc
= __glXGetCurrentContext();
6722 const GLuint cmdlen
= 20;
6723 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3fvARB
, cmdlen
);
6724 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6725 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6726 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6727 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&r
), 4);
6729 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6730 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6734 #define X_GLrop_MultiTexCoord3fvARB 207
6736 __indirect_glMultiTexCoord3fvARB(GLenum target
, const GLfloat
* v
)
6738 __GLXcontext
*const gc
= __glXGetCurrentContext();
6739 const GLuint cmdlen
= 20;
6740 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3fvARB
, cmdlen
);
6741 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6742 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 12);
6744 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6745 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6749 #define X_GLrop_MultiTexCoord3ivARB 208
6751 __indirect_glMultiTexCoord3iARB(GLenum target
, GLint s
, GLint t
, GLint r
)
6753 __GLXcontext
*const gc
= __glXGetCurrentContext();
6754 const GLuint cmdlen
= 20;
6755 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3ivARB
, cmdlen
);
6756 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6757 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6758 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6759 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&r
), 4);
6761 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6762 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6766 #define X_GLrop_MultiTexCoord3ivARB 208
6768 __indirect_glMultiTexCoord3ivARB(GLenum target
, const GLint
* v
)
6770 __GLXcontext
*const gc
= __glXGetCurrentContext();
6771 const GLuint cmdlen
= 20;
6772 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3ivARB
, cmdlen
);
6773 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6774 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 12);
6776 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6777 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6781 #define X_GLrop_MultiTexCoord3svARB 209
6783 __indirect_glMultiTexCoord3sARB(GLenum target
, GLshort s
, GLshort t
,
6786 __GLXcontext
*const gc
= __glXGetCurrentContext();
6787 const GLuint cmdlen
= 16;
6788 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3svARB
, cmdlen
);
6789 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6790 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 2);
6791 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&t
), 2);
6792 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 2);
6794 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6795 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6799 #define X_GLrop_MultiTexCoord3svARB 209
6801 __indirect_glMultiTexCoord3svARB(GLenum target
, const GLshort
* v
)
6803 __GLXcontext
*const gc
= __glXGetCurrentContext();
6804 const GLuint cmdlen
= 16;
6805 emit_header(gc
->pc
, X_GLrop_MultiTexCoord3svARB
, cmdlen
);
6806 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6807 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 6);
6809 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6810 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6814 #define X_GLrop_MultiTexCoord4dvARB 210
6816 __indirect_glMultiTexCoord4dARB(GLenum target
, GLdouble s
, GLdouble t
,
6817 GLdouble r
, GLdouble q
)
6819 __GLXcontext
*const gc
= __glXGetCurrentContext();
6820 const GLuint cmdlen
= 40;
6821 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4dvARB
, cmdlen
);
6822 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&s
), 8);
6823 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 8);
6824 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&r
), 8);
6825 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&q
), 8);
6826 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&target
), 4);
6828 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6829 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6833 #define X_GLrop_MultiTexCoord4dvARB 210
6835 __indirect_glMultiTexCoord4dvARB(GLenum target
, const GLdouble
* v
)
6837 __GLXcontext
*const gc
= __glXGetCurrentContext();
6838 const GLuint cmdlen
= 40;
6839 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4dvARB
, cmdlen
);
6840 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 32);
6841 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&target
), 4);
6843 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6844 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6848 #define X_GLrop_MultiTexCoord4fvARB 211
6850 __indirect_glMultiTexCoord4fARB(GLenum target
, GLfloat s
, GLfloat t
,
6851 GLfloat r
, GLfloat q
)
6853 __GLXcontext
*const gc
= __glXGetCurrentContext();
6854 const GLuint cmdlen
= 24;
6855 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4fvARB
, cmdlen
);
6856 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6857 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6858 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6859 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&r
), 4);
6860 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&q
), 4);
6862 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6863 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6867 #define X_GLrop_MultiTexCoord4fvARB 211
6869 __indirect_glMultiTexCoord4fvARB(GLenum target
, const GLfloat
* v
)
6871 __GLXcontext
*const gc
= __glXGetCurrentContext();
6872 const GLuint cmdlen
= 24;
6873 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4fvARB
, cmdlen
);
6874 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6875 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
6877 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6878 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6882 #define X_GLrop_MultiTexCoord4ivARB 212
6884 __indirect_glMultiTexCoord4iARB(GLenum target
, GLint s
, GLint t
, GLint r
,
6887 __GLXcontext
*const gc
= __glXGetCurrentContext();
6888 const GLuint cmdlen
= 24;
6889 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4ivARB
, cmdlen
);
6890 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6891 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 4);
6892 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&t
), 4);
6893 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&r
), 4);
6894 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&q
), 4);
6896 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6897 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6901 #define X_GLrop_MultiTexCoord4ivARB 212
6903 __indirect_glMultiTexCoord4ivARB(GLenum target
, const GLint
* v
)
6905 __GLXcontext
*const gc
= __glXGetCurrentContext();
6906 const GLuint cmdlen
= 24;
6907 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4ivARB
, cmdlen
);
6908 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6909 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
6911 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6912 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6916 #define X_GLrop_MultiTexCoord4svARB 213
6918 __indirect_glMultiTexCoord4sARB(GLenum target
, GLshort s
, GLshort t
,
6919 GLshort r
, GLshort q
)
6921 __GLXcontext
*const gc
= __glXGetCurrentContext();
6922 const GLuint cmdlen
= 16;
6923 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4svARB
, cmdlen
);
6924 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6925 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&s
), 2);
6926 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&t
), 2);
6927 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&r
), 2);
6928 (void) memcpy((void *) (gc
->pc
+ 14), (void *) (&q
), 2);
6930 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6931 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6935 #define X_GLrop_MultiTexCoord4svARB 213
6937 __indirect_glMultiTexCoord4svARB(GLenum target
, const GLshort
* v
)
6939 __GLXcontext
*const gc
= __glXGetCurrentContext();
6940 const GLuint cmdlen
= 16;
6941 emit_header(gc
->pc
, X_GLrop_MultiTexCoord4svARB
, cmdlen
);
6942 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
6943 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
6945 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6946 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6950 #define X_GLrop_SampleCoverageARB 229
6952 __indirect_glSampleCoverageARB(GLclampf value
, GLboolean invert
)
6954 __GLXcontext
*const gc
= __glXGetCurrentContext();
6955 const GLuint cmdlen
= 12;
6956 emit_header(gc
->pc
, X_GLrop_SampleCoverageARB
, cmdlen
);
6957 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&value
), 4);
6958 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&invert
), 1);
6960 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
6961 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
6965 #define X_GLvop_GetProgramStringARB 1308
6967 __indirect_glGetProgramStringARB(GLenum target
, GLenum pname
, GLvoid
* string
)
6969 __GLXcontext
*const gc
= __glXGetCurrentContext();
6970 Display
*const dpy
= gc
->currentDpy
;
6971 const GLuint cmdlen
= 8;
6972 if (__builtin_expect(dpy
!= NULL
, 1)) {
6974 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
6975 X_GLvop_GetProgramStringARB
, cmdlen
);
6976 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6977 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6978 (void) __glXReadReply(dpy
, 1, string
, GL_TRUE
);
6985 #define X_GLvop_GetProgramivARB 1307
6987 __indirect_glGetProgramivARB(GLenum target
, GLenum pname
, GLint
* params
)
6989 __GLXcontext
*const gc
= __glXGetCurrentContext();
6990 Display
*const dpy
= gc
->currentDpy
;
6991 const GLuint cmdlen
= 8;
6992 if (__builtin_expect(dpy
!= NULL
, 1)) {
6994 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
6995 X_GLvop_GetProgramivARB
, cmdlen
);
6996 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
6997 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
6998 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
7005 #define X_GLrop_ProgramEnvParameter4dvARB 4185
7007 __indirect_glProgramEnvParameter4dARB(GLenum target
, GLuint index
, GLdouble x
,
7008 GLdouble y
, GLdouble z
, GLdouble w
)
7010 __GLXcontext
*const gc
= __glXGetCurrentContext();
7011 const GLuint cmdlen
= 44;
7012 emit_header(gc
->pc
, X_GLrop_ProgramEnvParameter4dvARB
, cmdlen
);
7013 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7014 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7015 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 8);
7016 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 8);
7017 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&z
), 8);
7018 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&w
), 8);
7020 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7021 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7025 #define X_GLrop_ProgramEnvParameter4dvARB 4185
7027 __indirect_glProgramEnvParameter4dvARB(GLenum target
, GLuint index
,
7028 const GLdouble
* params
)
7030 __GLXcontext
*const gc
= __glXGetCurrentContext();
7031 const GLuint cmdlen
= 44;
7032 emit_header(gc
->pc
, X_GLrop_ProgramEnvParameter4dvARB
, cmdlen
);
7033 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7034 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7035 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 32);
7037 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7038 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7042 #define X_GLrop_ProgramEnvParameter4fvARB 4184
7044 __indirect_glProgramEnvParameter4fARB(GLenum target
, GLuint index
, GLfloat x
,
7045 GLfloat y
, GLfloat z
, GLfloat w
)
7047 __GLXcontext
*const gc
= __glXGetCurrentContext();
7048 const GLuint cmdlen
= 28;
7049 emit_header(gc
->pc
, X_GLrop_ProgramEnvParameter4fvARB
, cmdlen
);
7050 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7051 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7052 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
7053 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
7054 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 4);
7055 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&w
), 4);
7057 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7058 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7062 #define X_GLrop_ProgramEnvParameter4fvARB 4184
7064 __indirect_glProgramEnvParameter4fvARB(GLenum target
, GLuint index
,
7065 const GLfloat
* params
)
7067 __GLXcontext
*const gc
= __glXGetCurrentContext();
7068 const GLuint cmdlen
= 28;
7069 emit_header(gc
->pc
, X_GLrop_ProgramEnvParameter4fvARB
, cmdlen
);
7070 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7071 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7072 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 16);
7074 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7075 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7079 #define X_GLrop_ProgramLocalParameter4dvARB 4216
7081 __indirect_glProgramLocalParameter4dARB(GLenum target
, GLuint index
,
7082 GLdouble x
, GLdouble y
, GLdouble z
,
7085 __GLXcontext
*const gc
= __glXGetCurrentContext();
7086 const GLuint cmdlen
= 44;
7087 emit_header(gc
->pc
, X_GLrop_ProgramLocalParameter4dvARB
, cmdlen
);
7088 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7089 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7090 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 8);
7091 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 8);
7092 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&z
), 8);
7093 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&w
), 8);
7095 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7096 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7100 #define X_GLrop_ProgramLocalParameter4dvARB 4216
7102 __indirect_glProgramLocalParameter4dvARB(GLenum target
, GLuint index
,
7103 const GLdouble
* params
)
7105 __GLXcontext
*const gc
= __glXGetCurrentContext();
7106 const GLuint cmdlen
= 44;
7107 emit_header(gc
->pc
, X_GLrop_ProgramLocalParameter4dvARB
, cmdlen
);
7108 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7109 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7110 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 32);
7112 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7113 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7117 #define X_GLrop_ProgramLocalParameter4fvARB 4215
7119 __indirect_glProgramLocalParameter4fARB(GLenum target
, GLuint index
,
7120 GLfloat x
, GLfloat y
, GLfloat z
,
7123 __GLXcontext
*const gc
= __glXGetCurrentContext();
7124 const GLuint cmdlen
= 28;
7125 emit_header(gc
->pc
, X_GLrop_ProgramLocalParameter4fvARB
, cmdlen
);
7126 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7127 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7128 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
7129 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
7130 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 4);
7131 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&w
), 4);
7133 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7134 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7138 #define X_GLrop_ProgramLocalParameter4fvARB 4215
7140 __indirect_glProgramLocalParameter4fvARB(GLenum target
, GLuint index
,
7141 const GLfloat
* params
)
7143 __GLXcontext
*const gc
= __glXGetCurrentContext();
7144 const GLuint cmdlen
= 28;
7145 emit_header(gc
->pc
, X_GLrop_ProgramLocalParameter4fvARB
, cmdlen
);
7146 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7147 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
7148 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 16);
7150 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7151 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7155 #define X_GLrop_ProgramStringARB 4217
7157 __indirect_glProgramStringARB(GLenum target
, GLenum format
, GLsizei len
,
7158 const GLvoid
* string
)
7160 __GLXcontext
*const gc
= __glXGetCurrentContext();
7161 const GLuint cmdlen
= 16 + __GLX_PAD(len
);
7162 if (__builtin_expect((len
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
7163 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
7164 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
7165 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7167 emit_header(gc
->pc
, X_GLrop_ProgramStringARB
, cmdlen
);
7168 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7169 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&format
), 4);
7170 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&len
), 4);
7171 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (string
), len
);
7173 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7174 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7177 const GLint op
= X_GLrop_ProgramStringARB
;
7178 const GLuint cmdlenLarge
= cmdlen
+ 4;
7179 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
7180 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
7181 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
7182 (void) memcpy((void *) (pc
+ 8), (void *) (&target
), 4);
7183 (void) memcpy((void *) (pc
+ 12), (void *) (&format
), 4);
7184 (void) memcpy((void *) (pc
+ 16), (void *) (&len
), 4);
7185 __glXSendLargeCommand(gc
, pc
, 20, string
, len
);
7190 #define X_GLrop_VertexAttrib1dvARB 4197
7192 __indirect_glVertexAttrib1dARB(GLuint index
, GLdouble x
)
7194 __GLXcontext
*const gc
= __glXGetCurrentContext();
7195 const GLuint cmdlen
= 16;
7196 emit_header(gc
->pc
, X_GLrop_VertexAttrib1dvARB
, cmdlen
);
7197 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7198 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
7200 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7201 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7205 #define X_GLrop_VertexAttrib1dvARB 4197
7207 __indirect_glVertexAttrib1dvARB(GLuint index
, const GLdouble
* v
)
7209 __GLXcontext
*const gc
= __glXGetCurrentContext();
7210 const GLuint cmdlen
= 16;
7211 emit_header(gc
->pc
, X_GLrop_VertexAttrib1dvARB
, cmdlen
);
7212 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7213 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7215 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7216 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7220 #define X_GLrop_VertexAttrib1fvARB 4193
7222 __indirect_glVertexAttrib1fARB(GLuint index
, GLfloat x
)
7224 __GLXcontext
*const gc
= __glXGetCurrentContext();
7225 const GLuint cmdlen
= 12;
7226 emit_header(gc
->pc
, X_GLrop_VertexAttrib1fvARB
, cmdlen
);
7227 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7228 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
7230 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7231 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7235 #define X_GLrop_VertexAttrib1fvARB 4193
7237 __indirect_glVertexAttrib1fvARB(GLuint index
, const GLfloat
* v
)
7239 __GLXcontext
*const gc
= __glXGetCurrentContext();
7240 const GLuint cmdlen
= 12;
7241 emit_header(gc
->pc
, X_GLrop_VertexAttrib1fvARB
, cmdlen
);
7242 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7243 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7245 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7246 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7250 #define X_GLrop_VertexAttrib1svARB 4189
7252 __indirect_glVertexAttrib1sARB(GLuint index
, GLshort x
)
7254 __GLXcontext
*const gc
= __glXGetCurrentContext();
7255 const GLuint cmdlen
= 12;
7256 emit_header(gc
->pc
, X_GLrop_VertexAttrib1svARB
, cmdlen
);
7257 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7258 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
7260 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7261 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7265 #define X_GLrop_VertexAttrib1svARB 4189
7267 __indirect_glVertexAttrib1svARB(GLuint index
, const GLshort
* v
)
7269 __GLXcontext
*const gc
= __glXGetCurrentContext();
7270 const GLuint cmdlen
= 12;
7271 emit_header(gc
->pc
, X_GLrop_VertexAttrib1svARB
, cmdlen
);
7272 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7273 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 2);
7275 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7276 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7280 #define X_GLrop_VertexAttrib2dvARB 4198
7282 __indirect_glVertexAttrib2dARB(GLuint index
, GLdouble x
, GLdouble y
)
7284 __GLXcontext
*const gc
= __glXGetCurrentContext();
7285 const GLuint cmdlen
= 24;
7286 emit_header(gc
->pc
, X_GLrop_VertexAttrib2dvARB
, cmdlen
);
7287 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7288 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
7289 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
7291 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7292 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7296 #define X_GLrop_VertexAttrib2dvARB 4198
7298 __indirect_glVertexAttrib2dvARB(GLuint index
, const GLdouble
* v
)
7300 __GLXcontext
*const gc
= __glXGetCurrentContext();
7301 const GLuint cmdlen
= 24;
7302 emit_header(gc
->pc
, X_GLrop_VertexAttrib2dvARB
, cmdlen
);
7303 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7304 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7306 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7307 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7311 #define X_GLrop_VertexAttrib2fvARB 4194
7313 __indirect_glVertexAttrib2fARB(GLuint index
, GLfloat x
, GLfloat y
)
7315 __GLXcontext
*const gc
= __glXGetCurrentContext();
7316 const GLuint cmdlen
= 16;
7317 emit_header(gc
->pc
, X_GLrop_VertexAttrib2fvARB
, cmdlen
);
7318 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7319 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
7320 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
7322 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7323 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7327 #define X_GLrop_VertexAttrib2fvARB 4194
7329 __indirect_glVertexAttrib2fvARB(GLuint index
, const GLfloat
* v
)
7331 __GLXcontext
*const gc
= __glXGetCurrentContext();
7332 const GLuint cmdlen
= 16;
7333 emit_header(gc
->pc
, X_GLrop_VertexAttrib2fvARB
, cmdlen
);
7334 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7335 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7337 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7338 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7342 #define X_GLrop_VertexAttrib2svARB 4190
7344 __indirect_glVertexAttrib2sARB(GLuint index
, GLshort x
, GLshort y
)
7346 __GLXcontext
*const gc
= __glXGetCurrentContext();
7347 const GLuint cmdlen
= 12;
7348 emit_header(gc
->pc
, X_GLrop_VertexAttrib2svARB
, cmdlen
);
7349 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7350 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
7351 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
7353 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7354 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7358 #define X_GLrop_VertexAttrib2svARB 4190
7360 __indirect_glVertexAttrib2svARB(GLuint index
, const GLshort
* v
)
7362 __GLXcontext
*const gc
= __glXGetCurrentContext();
7363 const GLuint cmdlen
= 12;
7364 emit_header(gc
->pc
, X_GLrop_VertexAttrib2svARB
, cmdlen
);
7365 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7366 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7368 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7369 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7373 #define X_GLrop_VertexAttrib3dvARB 4199
7375 __indirect_glVertexAttrib3dARB(GLuint index
, GLdouble x
, GLdouble y
,
7378 __GLXcontext
*const gc
= __glXGetCurrentContext();
7379 const GLuint cmdlen
= 32;
7380 emit_header(gc
->pc
, X_GLrop_VertexAttrib3dvARB
, cmdlen
);
7381 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7382 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
7383 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
7384 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&z
), 8);
7386 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7387 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7391 #define X_GLrop_VertexAttrib3dvARB 4199
7393 __indirect_glVertexAttrib3dvARB(GLuint index
, const GLdouble
* v
)
7395 __GLXcontext
*const gc
= __glXGetCurrentContext();
7396 const GLuint cmdlen
= 32;
7397 emit_header(gc
->pc
, X_GLrop_VertexAttrib3dvARB
, cmdlen
);
7398 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7399 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 24);
7401 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7402 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7406 #define X_GLrop_VertexAttrib3fvARB 4195
7408 __indirect_glVertexAttrib3fARB(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
)
7410 __GLXcontext
*const gc
= __glXGetCurrentContext();
7411 const GLuint cmdlen
= 20;
7412 emit_header(gc
->pc
, X_GLrop_VertexAttrib3fvARB
, cmdlen
);
7413 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7414 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
7415 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
7416 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&z
), 4);
7418 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7419 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7423 #define X_GLrop_VertexAttrib3fvARB 4195
7425 __indirect_glVertexAttrib3fvARB(GLuint index
, const GLfloat
* v
)
7427 __GLXcontext
*const gc
= __glXGetCurrentContext();
7428 const GLuint cmdlen
= 20;
7429 emit_header(gc
->pc
, X_GLrop_VertexAttrib3fvARB
, cmdlen
);
7430 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7431 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 12);
7433 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7434 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7438 #define X_GLrop_VertexAttrib3svARB 4191
7440 __indirect_glVertexAttrib3sARB(GLuint index
, GLshort x
, GLshort y
, GLshort z
)
7442 __GLXcontext
*const gc
= __glXGetCurrentContext();
7443 const GLuint cmdlen
= 16;
7444 emit_header(gc
->pc
, X_GLrop_VertexAttrib3svARB
, cmdlen
);
7445 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7446 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
7447 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
7448 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 2);
7450 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7451 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7455 #define X_GLrop_VertexAttrib3svARB 4191
7457 __indirect_glVertexAttrib3svARB(GLuint index
, const GLshort
* v
)
7459 __GLXcontext
*const gc
= __glXGetCurrentContext();
7460 const GLuint cmdlen
= 16;
7461 emit_header(gc
->pc
, X_GLrop_VertexAttrib3svARB
, cmdlen
);
7462 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7463 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 6);
7465 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7466 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7470 #define X_GLrop_VertexAttrib4NbvARB 4235
7472 __indirect_glVertexAttrib4NbvARB(GLuint index
, const GLbyte
* v
)
7474 __GLXcontext
*const gc
= __glXGetCurrentContext();
7475 const GLuint cmdlen
= 12;
7476 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NbvARB
, cmdlen
);
7477 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7478 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7480 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7481 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7485 #define X_GLrop_VertexAttrib4NivARB 4237
7487 __indirect_glVertexAttrib4NivARB(GLuint index
, const GLint
* v
)
7489 __GLXcontext
*const gc
= __glXGetCurrentContext();
7490 const GLuint cmdlen
= 24;
7491 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NivARB
, cmdlen
);
7492 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7493 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7495 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7496 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7500 #define X_GLrop_VertexAttrib4NsvARB 4236
7502 __indirect_glVertexAttrib4NsvARB(GLuint index
, const GLshort
* v
)
7504 __GLXcontext
*const gc
= __glXGetCurrentContext();
7505 const GLuint cmdlen
= 16;
7506 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NsvARB
, cmdlen
);
7507 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7508 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7510 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7511 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7515 #define X_GLrop_VertexAttrib4NubvARB 4201
7517 __indirect_glVertexAttrib4NubARB(GLuint index
, GLubyte x
, GLubyte y
,
7518 GLubyte z
, GLubyte w
)
7520 __GLXcontext
*const gc
= __glXGetCurrentContext();
7521 const GLuint cmdlen
= 12;
7522 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NubvARB
, cmdlen
);
7523 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7524 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 1);
7525 (void) memcpy((void *) (gc
->pc
+ 9), (void *) (&y
), 1);
7526 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&z
), 1);
7527 (void) memcpy((void *) (gc
->pc
+ 11), (void *) (&w
), 1);
7529 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7530 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7534 #define X_GLrop_VertexAttrib4NubvARB 4201
7536 __indirect_glVertexAttrib4NubvARB(GLuint index
, const GLubyte
* v
)
7538 __GLXcontext
*const gc
= __glXGetCurrentContext();
7539 const GLuint cmdlen
= 12;
7540 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NubvARB
, cmdlen
);
7541 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7542 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7544 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7545 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7549 #define X_GLrop_VertexAttrib4NuivARB 4239
7551 __indirect_glVertexAttrib4NuivARB(GLuint index
, const GLuint
* v
)
7553 __GLXcontext
*const gc
= __glXGetCurrentContext();
7554 const GLuint cmdlen
= 24;
7555 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NuivARB
, cmdlen
);
7556 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7557 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7559 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7560 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7564 #define X_GLrop_VertexAttrib4NusvARB 4238
7566 __indirect_glVertexAttrib4NusvARB(GLuint index
, const GLushort
* v
)
7568 __GLXcontext
*const gc
= __glXGetCurrentContext();
7569 const GLuint cmdlen
= 16;
7570 emit_header(gc
->pc
, X_GLrop_VertexAttrib4NusvARB
, cmdlen
);
7571 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7572 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7574 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7575 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7579 #define X_GLrop_VertexAttrib4bvARB 4230
7581 __indirect_glVertexAttrib4bvARB(GLuint index
, const GLbyte
* v
)
7583 __GLXcontext
*const gc
= __glXGetCurrentContext();
7584 const GLuint cmdlen
= 12;
7585 emit_header(gc
->pc
, X_GLrop_VertexAttrib4bvARB
, cmdlen
);
7586 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7587 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7589 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7590 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7594 #define X_GLrop_VertexAttrib4dvARB 4200
7596 __indirect_glVertexAttrib4dARB(GLuint index
, GLdouble x
, GLdouble y
,
7597 GLdouble z
, GLdouble w
)
7599 __GLXcontext
*const gc
= __glXGetCurrentContext();
7600 const GLuint cmdlen
= 40;
7601 emit_header(gc
->pc
, X_GLrop_VertexAttrib4dvARB
, cmdlen
);
7602 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7603 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
7604 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
7605 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&z
), 8);
7606 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&w
), 8);
7608 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7609 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7613 #define X_GLrop_VertexAttrib4dvARB 4200
7615 __indirect_glVertexAttrib4dvARB(GLuint index
, const GLdouble
* v
)
7617 __GLXcontext
*const gc
= __glXGetCurrentContext();
7618 const GLuint cmdlen
= 40;
7619 emit_header(gc
->pc
, X_GLrop_VertexAttrib4dvARB
, cmdlen
);
7620 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7621 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 32);
7623 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7624 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7628 #define X_GLrop_VertexAttrib4fvARB 4196
7630 __indirect_glVertexAttrib4fARB(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
,
7633 __GLXcontext
*const gc
= __glXGetCurrentContext();
7634 const GLuint cmdlen
= 24;
7635 emit_header(gc
->pc
, X_GLrop_VertexAttrib4fvARB
, cmdlen
);
7636 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7637 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
7638 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
7639 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&z
), 4);
7640 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&w
), 4);
7642 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7643 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7647 #define X_GLrop_VertexAttrib4fvARB 4196
7649 __indirect_glVertexAttrib4fvARB(GLuint index
, const GLfloat
* v
)
7651 __GLXcontext
*const gc
= __glXGetCurrentContext();
7652 const GLuint cmdlen
= 24;
7653 emit_header(gc
->pc
, X_GLrop_VertexAttrib4fvARB
, cmdlen
);
7654 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7655 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7657 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7658 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7662 #define X_GLrop_VertexAttrib4ivARB 4231
7664 __indirect_glVertexAttrib4ivARB(GLuint index
, const GLint
* v
)
7666 __GLXcontext
*const gc
= __glXGetCurrentContext();
7667 const GLuint cmdlen
= 24;
7668 emit_header(gc
->pc
, X_GLrop_VertexAttrib4ivARB
, cmdlen
);
7669 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7670 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7672 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7673 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7677 #define X_GLrop_VertexAttrib4svARB 4192
7679 __indirect_glVertexAttrib4sARB(GLuint index
, GLshort x
, GLshort y
, GLshort z
,
7682 __GLXcontext
*const gc
= __glXGetCurrentContext();
7683 const GLuint cmdlen
= 16;
7684 emit_header(gc
->pc
, X_GLrop_VertexAttrib4svARB
, cmdlen
);
7685 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7686 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
7687 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
7688 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 2);
7689 (void) memcpy((void *) (gc
->pc
+ 14), (void *) (&w
), 2);
7691 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7692 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7696 #define X_GLrop_VertexAttrib4svARB 4192
7698 __indirect_glVertexAttrib4svARB(GLuint index
, const GLshort
* v
)
7700 __GLXcontext
*const gc
= __glXGetCurrentContext();
7701 const GLuint cmdlen
= 16;
7702 emit_header(gc
->pc
, X_GLrop_VertexAttrib4svARB
, cmdlen
);
7703 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7704 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7706 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7707 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7711 #define X_GLrop_VertexAttrib4ubvARB 4232
7713 __indirect_glVertexAttrib4ubvARB(GLuint index
, const GLubyte
* v
)
7715 __GLXcontext
*const gc
= __glXGetCurrentContext();
7716 const GLuint cmdlen
= 12;
7717 emit_header(gc
->pc
, X_GLrop_VertexAttrib4ubvARB
, cmdlen
);
7718 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7719 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
7721 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7722 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7726 #define X_GLrop_VertexAttrib4uivARB 4234
7728 __indirect_glVertexAttrib4uivARB(GLuint index
, const GLuint
* v
)
7730 __GLXcontext
*const gc
= __glXGetCurrentContext();
7731 const GLuint cmdlen
= 24;
7732 emit_header(gc
->pc
, X_GLrop_VertexAttrib4uivARB
, cmdlen
);
7733 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7734 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
7736 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7737 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7741 #define X_GLrop_VertexAttrib4usvARB 4233
7743 __indirect_glVertexAttrib4usvARB(GLuint index
, const GLushort
* v
)
7745 __GLXcontext
*const gc
= __glXGetCurrentContext();
7746 const GLuint cmdlen
= 16;
7747 emit_header(gc
->pc
, X_GLrop_VertexAttrib4usvARB
, cmdlen
);
7748 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
7749 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
7751 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7752 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7756 #define X_GLrop_BeginQueryARB 231
7758 __indirect_glBeginQueryARB(GLenum target
, GLuint id
)
7760 __GLXcontext
*const gc
= __glXGetCurrentContext();
7761 const GLuint cmdlen
= 12;
7762 emit_header(gc
->pc
, X_GLrop_BeginQueryARB
, cmdlen
);
7763 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7764 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&id
), 4);
7766 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7767 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7771 #define X_GLsop_DeleteQueriesARB 161
7773 __indirect_glDeleteQueriesARB(GLsizei n
, const GLuint
* ids
)
7775 __GLXcontext
*const gc
= __glXGetCurrentContext();
7776 Display
*const dpy
= gc
->currentDpy
;
7777 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
7778 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
7780 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7781 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7782 xcb_glx_delete_queries_arb(c
, gc
->currentContextTag
, n
, ids
);
7785 __glXSetupSingleRequest(gc
, X_GLsop_DeleteQueriesARB
, cmdlen
);
7786 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
7787 (void) memcpy((void *) (pc
+ 4), (void *) (ids
), (n
* 4));
7790 #endif /* USE_XCB */
7795 #define X_GLrop_EndQueryARB 232
7797 __indirect_glEndQueryARB(GLenum target
)
7799 __GLXcontext
*const gc
= __glXGetCurrentContext();
7800 const GLuint cmdlen
= 8;
7801 emit_header(gc
->pc
, X_GLrop_EndQueryARB
, cmdlen
);
7802 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
7804 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
7805 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7809 #define X_GLsop_GenQueriesARB 162
7811 __indirect_glGenQueriesARB(GLsizei n
, GLuint
* ids
)
7813 __GLXcontext
*const gc
= __glXGetCurrentContext();
7814 Display
*const dpy
= gc
->currentDpy
;
7815 const GLuint cmdlen
= 4;
7816 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
7818 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7819 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7820 xcb_glx_gen_queries_arb_reply_t
*reply
=
7821 xcb_glx_gen_queries_arb_reply(c
,
7822 xcb_glx_gen_queries_arb(c
,
7826 (void) memcpy(ids
, xcb_glx_gen_queries_arb_data(reply
),
7827 xcb_glx_gen_queries_arb_data_length(reply
) *
7832 __glXSetupSingleRequest(gc
, X_GLsop_GenQueriesARB
, cmdlen
);
7833 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
7834 (void) __glXReadReply(dpy
, 4, ids
, GL_TRUE
);
7837 #endif /* USE_XCB */
7842 #define X_GLsop_GetQueryObjectivARB 165
7844 __indirect_glGetQueryObjectivARB(GLuint id
, GLenum pname
, GLint
* params
)
7846 __GLXcontext
*const gc
= __glXGetCurrentContext();
7847 Display
*const dpy
= gc
->currentDpy
;
7848 const GLuint cmdlen
= 8;
7849 if (__builtin_expect(dpy
!= NULL
, 1)) {
7851 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7852 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7853 xcb_glx_get_query_objectiv_arb_reply_t
*reply
=
7854 xcb_glx_get_query_objectiv_arb_reply(c
,
7855 xcb_glx_get_query_objectiv_arb
7856 (c
, gc
->currentContextTag
,
7858 if (xcb_glx_get_query_objectiv_arb_data_length(reply
) == 0)
7859 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
7861 (void) memcpy(params
, xcb_glx_get_query_objectiv_arb_data(reply
),
7862 xcb_glx_get_query_objectiv_arb_data_length(reply
) *
7867 __glXSetupSingleRequest(gc
, X_GLsop_GetQueryObjectivARB
, cmdlen
);
7868 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
7869 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
7870 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
7873 #endif /* USE_XCB */
7878 #define X_GLsop_GetQueryObjectuivARB 166
7880 __indirect_glGetQueryObjectuivARB(GLuint id
, GLenum pname
, GLuint
* params
)
7882 __GLXcontext
*const gc
= __glXGetCurrentContext();
7883 Display
*const dpy
= gc
->currentDpy
;
7884 const GLuint cmdlen
= 8;
7885 if (__builtin_expect(dpy
!= NULL
, 1)) {
7887 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7888 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7889 xcb_glx_get_query_objectuiv_arb_reply_t
*reply
=
7890 xcb_glx_get_query_objectuiv_arb_reply(c
,
7891 xcb_glx_get_query_objectuiv_arb
7892 (c
, gc
->currentContextTag
,
7894 if (xcb_glx_get_query_objectuiv_arb_data_length(reply
) == 0)
7895 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
7897 (void) memcpy(params
, xcb_glx_get_query_objectuiv_arb_data(reply
),
7898 xcb_glx_get_query_objectuiv_arb_data_length(reply
) *
7903 __glXSetupSingleRequest(gc
, X_GLsop_GetQueryObjectuivARB
, cmdlen
);
7904 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
7905 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
7906 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
7909 #endif /* USE_XCB */
7914 #define X_GLsop_GetQueryivARB 164
7916 __indirect_glGetQueryivARB(GLenum target
, GLenum pname
, GLint
* params
)
7918 __GLXcontext
*const gc
= __glXGetCurrentContext();
7919 Display
*const dpy
= gc
->currentDpy
;
7920 const GLuint cmdlen
= 8;
7921 if (__builtin_expect(dpy
!= NULL
, 1)) {
7923 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7924 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7925 xcb_glx_get_queryiv_arb_reply_t
*reply
=
7926 xcb_glx_get_queryiv_arb_reply(c
,
7927 xcb_glx_get_queryiv_arb(c
,
7933 if (xcb_glx_get_queryiv_arb_data_length(reply
) == 0)
7934 (void) memcpy(params
, &reply
->datum
, sizeof(reply
->datum
));
7936 (void) memcpy(params
, xcb_glx_get_queryiv_arb_data(reply
),
7937 xcb_glx_get_queryiv_arb_data_length(reply
) *
7942 __glXSetupSingleRequest(gc
, X_GLsop_GetQueryivARB
, cmdlen
);
7943 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
7944 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
7945 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
7948 #endif /* USE_XCB */
7953 #define X_GLsop_IsQueryARB 163
7955 __indirect_glIsQueryARB(GLuint id
)
7957 __GLXcontext
*const gc
= __glXGetCurrentContext();
7958 Display
*const dpy
= gc
->currentDpy
;
7959 GLboolean retval
= (GLboolean
) 0;
7960 const GLuint cmdlen
= 4;
7961 if (__builtin_expect(dpy
!= NULL
, 1)) {
7963 xcb_connection_t
*c
= XGetXCBConnection(dpy
);
7964 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7965 xcb_glx_is_query_arb_reply_t
*reply
=
7966 xcb_glx_is_query_arb_reply(c
,
7967 xcb_glx_is_query_arb(c
,
7971 retval
= reply
->ret_val
;
7975 __glXSetupSingleRequest(gc
, X_GLsop_IsQueryARB
, cmdlen
);
7976 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
7977 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
7980 #endif /* USE_XCB */
7985 #define X_GLrop_DrawBuffersARB 233
7987 __indirect_glDrawBuffersARB(GLsizei n
, const GLenum
* bufs
)
7989 __GLXcontext
*const gc
= __glXGetCurrentContext();
7990 const GLuint cmdlen
= 8 + __GLX_PAD((n
* 4));
7991 if (__builtin_expect((n
>= 0) && (gc
->currentDpy
!= NULL
), 1)) {
7992 if (cmdlen
<= gc
->maxSmallRenderCommandSize
) {
7993 if ((gc
->pc
+ cmdlen
) > gc
->bufEnd
) {
7994 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
7996 emit_header(gc
->pc
, X_GLrop_DrawBuffersARB
, cmdlen
);
7997 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
7998 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (bufs
), (n
* 4));
8000 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8001 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8004 const GLint op
= X_GLrop_DrawBuffersARB
;
8005 const GLuint cmdlenLarge
= cmdlen
+ 4;
8006 GLubyte
*const pc
= __glXFlushRenderBuffer(gc
, gc
->pc
);
8007 (void) memcpy((void *) (pc
+ 0), (void *) (&cmdlenLarge
), 4);
8008 (void) memcpy((void *) (pc
+ 4), (void *) (&op
), 4);
8009 (void) memcpy((void *) (pc
+ 8), (void *) (&n
), 4);
8010 __glXSendLargeCommand(gc
, pc
, 12, bufs
, (n
* 4));
8015 #define X_GLvop_GetColorTableParameterfvSGI 4099
8017 __indirect_glGetColorTableParameterfvSGI(GLenum target
, GLenum pname
,
8020 __GLXcontext
*const gc
= __glXGetCurrentContext();
8021 Display
*const dpy
= gc
->currentDpy
;
8022 const GLuint cmdlen
= 8;
8023 if (__builtin_expect(dpy
!= NULL
, 1)) {
8025 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8026 X_GLvop_GetColorTableParameterfvSGI
,
8028 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8029 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8030 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8037 #define X_GLvop_GetColorTableParameterivSGI 4100
8039 __indirect_glGetColorTableParameterivSGI(GLenum target
, GLenum pname
,
8042 __GLXcontext
*const gc
= __glXGetCurrentContext();
8043 Display
*const dpy
= gc
->currentDpy
;
8044 const GLuint cmdlen
= 8;
8045 if (__builtin_expect(dpy
!= NULL
, 1)) {
8047 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8048 X_GLvop_GetColorTableParameterivSGI
,
8050 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8051 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8052 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8059 #define X_GLvop_GetColorTableSGI 4098
8061 __indirect_glGetColorTableSGI(GLenum target
, GLenum format
, GLenum type
,
8064 __GLXcontext
*const gc
= __glXGetCurrentContext();
8065 const __GLXattribute
*const state
= gc
->client_state_private
;
8066 Display
*const dpy
= gc
->currentDpy
;
8067 const GLuint cmdlen
= 16;
8068 if (__builtin_expect(dpy
!= NULL
, 1)) {
8070 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8071 X_GLvop_GetColorTableSGI
, cmdlen
);
8072 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8073 (void) memcpy((void *) (pc
+ 4), (void *) (&format
), 4);
8074 (void) memcpy((void *) (pc
+ 8), (void *) (&type
), 4);
8075 *(int32_t *) (pc
+ 12) = 0;
8076 *(int8_t *) (pc
+ 12) = state
->storePack
.swapEndian
;
8077 __glXReadPixelReply(dpy
, gc
, 1, 0, 0, 0, format
, type
, table
,
8085 #define X_GLvop_AreTexturesResidentEXT 11
8087 __indirect_glAreTexturesResidentEXT(GLsizei n
, const GLuint
* textures
,
8088 GLboolean
* residences
)
8090 __GLXcontext
*const gc
= __glXGetCurrentContext();
8091 Display
*const dpy
= gc
->currentDpy
;
8092 GLboolean retval
= (GLboolean
) 0;
8093 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
8094 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
8096 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8097 X_GLvop_AreTexturesResidentEXT
, cmdlen
);
8098 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
8099 (void) memcpy((void *) (pc
+ 4), (void *) (textures
), (n
* 4));
8100 retval
= (GLboolean
) __glXReadReply(dpy
, 1, residences
, GL_TRUE
);
8107 #define X_GLvop_GenTexturesEXT 13
8109 __indirect_glGenTexturesEXT(GLsizei n
, GLuint
* textures
)
8111 __GLXcontext
*const gc
= __glXGetCurrentContext();
8112 Display
*const dpy
= gc
->currentDpy
;
8113 const GLuint cmdlen
= 4;
8114 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
8116 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8117 X_GLvop_GenTexturesEXT
, cmdlen
);
8118 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
8119 (void) __glXReadReply(dpy
, 4, textures
, GL_TRUE
);
8126 #define X_GLvop_IsTextureEXT 14
8128 __indirect_glIsTextureEXT(GLuint texture
)
8130 __GLXcontext
*const gc
= __glXGetCurrentContext();
8131 Display
*const dpy
= gc
->currentDpy
;
8132 GLboolean retval
= (GLboolean
) 0;
8133 const GLuint cmdlen
= 4;
8134 if (__builtin_expect(dpy
!= NULL
, 1)) {
8136 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8137 X_GLvop_IsTextureEXT
, cmdlen
);
8138 (void) memcpy((void *) (pc
+ 0), (void *) (&texture
), 4);
8139 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
8146 #define X_GLrop_SampleMaskSGIS 2048
8148 __indirect_glSampleMaskSGIS(GLclampf value
, GLboolean invert
)
8150 __GLXcontext
*const gc
= __glXGetCurrentContext();
8151 const GLuint cmdlen
= 12;
8152 emit_header(gc
->pc
, X_GLrop_SampleMaskSGIS
, cmdlen
);
8153 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&value
), 4);
8154 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&invert
), 1);
8156 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8157 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8161 #define X_GLrop_SamplePatternSGIS 2049
8163 __indirect_glSamplePatternSGIS(GLenum pattern
)
8165 __GLXcontext
*const gc
= __glXGetCurrentContext();
8166 const GLuint cmdlen
= 8;
8167 emit_header(gc
->pc
, X_GLrop_SamplePatternSGIS
, cmdlen
);
8168 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pattern
), 4);
8170 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8171 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8175 #define X_GLrop_PointParameterfEXT 2065
8177 __indirect_glPointParameterfEXT(GLenum pname
, GLfloat param
)
8179 __GLXcontext
*const gc
= __glXGetCurrentContext();
8180 const GLuint cmdlen
= 12;
8181 emit_header(gc
->pc
, X_GLrop_PointParameterfEXT
, cmdlen
);
8182 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
8183 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
8185 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8186 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8190 #define X_GLrop_PointParameterfvEXT 2066
8192 __indirect_glPointParameterfvEXT(GLenum pname
, const GLfloat
* params
)
8194 __GLXcontext
*const gc
= __glXGetCurrentContext();
8195 const GLuint compsize
= __glPointParameterfvEXT_size(pname
);
8196 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
8197 emit_header(gc
->pc
, X_GLrop_PointParameterfvEXT
, cmdlen
);
8198 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
8199 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
8201 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8202 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8206 #define X_GLrop_SecondaryColor3bvEXT 4126
8208 __indirect_glSecondaryColor3bEXT(GLbyte red
, GLbyte green
, GLbyte blue
)
8210 __GLXcontext
*const gc
= __glXGetCurrentContext();
8211 const GLuint cmdlen
= 8;
8212 emit_header(gc
->pc
, X_GLrop_SecondaryColor3bvEXT
, cmdlen
);
8213 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
8214 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
8215 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
8217 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8218 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8222 #define X_GLrop_SecondaryColor3bvEXT 4126
8224 __indirect_glSecondaryColor3bvEXT(const GLbyte
* v
)
8226 generic_3_byte(X_GLrop_SecondaryColor3bvEXT
, v
);
8229 #define X_GLrop_SecondaryColor3dvEXT 4130
8231 __indirect_glSecondaryColor3dEXT(GLdouble red
, GLdouble green
, GLdouble blue
)
8233 __GLXcontext
*const gc
= __glXGetCurrentContext();
8234 const GLuint cmdlen
= 28;
8235 emit_header(gc
->pc
, X_GLrop_SecondaryColor3dvEXT
, cmdlen
);
8236 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 8);
8237 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&green
), 8);
8238 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&blue
), 8);
8240 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8241 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8245 #define X_GLrop_SecondaryColor3dvEXT 4130
8247 __indirect_glSecondaryColor3dvEXT(const GLdouble
* v
)
8249 generic_24_byte(X_GLrop_SecondaryColor3dvEXT
, v
);
8252 #define X_GLrop_SecondaryColor3fvEXT 4129
8254 __indirect_glSecondaryColor3fEXT(GLfloat red
, GLfloat green
, GLfloat blue
)
8256 __GLXcontext
*const gc
= __glXGetCurrentContext();
8257 const GLuint cmdlen
= 16;
8258 emit_header(gc
->pc
, X_GLrop_SecondaryColor3fvEXT
, cmdlen
);
8259 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
8260 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
8261 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
8263 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8264 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8268 #define X_GLrop_SecondaryColor3fvEXT 4129
8270 __indirect_glSecondaryColor3fvEXT(const GLfloat
* v
)
8272 generic_12_byte(X_GLrop_SecondaryColor3fvEXT
, v
);
8275 #define X_GLrop_SecondaryColor3ivEXT 4128
8277 __indirect_glSecondaryColor3iEXT(GLint red
, GLint green
, GLint blue
)
8279 __GLXcontext
*const gc
= __glXGetCurrentContext();
8280 const GLuint cmdlen
= 16;
8281 emit_header(gc
->pc
, X_GLrop_SecondaryColor3ivEXT
, cmdlen
);
8282 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
8283 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
8284 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
8286 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8287 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8291 #define X_GLrop_SecondaryColor3ivEXT 4128
8293 __indirect_glSecondaryColor3ivEXT(const GLint
* v
)
8295 generic_12_byte(X_GLrop_SecondaryColor3ivEXT
, v
);
8298 #define X_GLrop_SecondaryColor3svEXT 4127
8300 __indirect_glSecondaryColor3sEXT(GLshort red
, GLshort green
, GLshort blue
)
8302 __GLXcontext
*const gc
= __glXGetCurrentContext();
8303 const GLuint cmdlen
= 12;
8304 emit_header(gc
->pc
, X_GLrop_SecondaryColor3svEXT
, cmdlen
);
8305 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
8306 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
8307 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
8309 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8310 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8314 #define X_GLrop_SecondaryColor3svEXT 4127
8316 __indirect_glSecondaryColor3svEXT(const GLshort
* v
)
8318 generic_6_byte(X_GLrop_SecondaryColor3svEXT
, v
);
8321 #define X_GLrop_SecondaryColor3ubvEXT 4131
8323 __indirect_glSecondaryColor3ubEXT(GLubyte red
, GLubyte green
, GLubyte blue
)
8325 __GLXcontext
*const gc
= __glXGetCurrentContext();
8326 const GLuint cmdlen
= 8;
8327 emit_header(gc
->pc
, X_GLrop_SecondaryColor3ubvEXT
, cmdlen
);
8328 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 1);
8329 (void) memcpy((void *) (gc
->pc
+ 5), (void *) (&green
), 1);
8330 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&blue
), 1);
8332 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8333 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8337 #define X_GLrop_SecondaryColor3ubvEXT 4131
8339 __indirect_glSecondaryColor3ubvEXT(const GLubyte
* v
)
8341 generic_3_byte(X_GLrop_SecondaryColor3ubvEXT
, v
);
8344 #define X_GLrop_SecondaryColor3uivEXT 4133
8346 __indirect_glSecondaryColor3uiEXT(GLuint red
, GLuint green
, GLuint blue
)
8348 __GLXcontext
*const gc
= __glXGetCurrentContext();
8349 const GLuint cmdlen
= 16;
8350 emit_header(gc
->pc
, X_GLrop_SecondaryColor3uivEXT
, cmdlen
);
8351 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 4);
8352 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&green
), 4);
8353 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&blue
), 4);
8355 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8356 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8360 #define X_GLrop_SecondaryColor3uivEXT 4133
8362 __indirect_glSecondaryColor3uivEXT(const GLuint
* v
)
8364 generic_12_byte(X_GLrop_SecondaryColor3uivEXT
, v
);
8367 #define X_GLrop_SecondaryColor3usvEXT 4132
8369 __indirect_glSecondaryColor3usEXT(GLushort red
, GLushort green
, GLushort blue
)
8371 __GLXcontext
*const gc
= __glXGetCurrentContext();
8372 const GLuint cmdlen
= 12;
8373 emit_header(gc
->pc
, X_GLrop_SecondaryColor3usvEXT
, cmdlen
);
8374 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&red
), 2);
8375 (void) memcpy((void *) (gc
->pc
+ 6), (void *) (&green
), 2);
8376 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&blue
), 2);
8378 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8379 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8383 #define X_GLrop_SecondaryColor3usvEXT 4132
8385 __indirect_glSecondaryColor3usvEXT(const GLushort
* v
)
8387 generic_6_byte(X_GLrop_SecondaryColor3usvEXT
, v
);
8390 #define X_GLrop_FogCoorddvEXT 4125
8392 __indirect_glFogCoorddEXT(GLdouble coord
)
8394 __GLXcontext
*const gc
= __glXGetCurrentContext();
8395 const GLuint cmdlen
= 12;
8396 emit_header(gc
->pc
, X_GLrop_FogCoorddvEXT
, cmdlen
);
8397 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 8);
8399 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8400 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8404 #define X_GLrop_FogCoorddvEXT 4125
8406 __indirect_glFogCoorddvEXT(const GLdouble
* coord
)
8408 generic_8_byte(X_GLrop_FogCoorddvEXT
, coord
);
8411 #define X_GLrop_FogCoordfvEXT 4124
8413 __indirect_glFogCoordfEXT(GLfloat coord
)
8415 __GLXcontext
*const gc
= __glXGetCurrentContext();
8416 const GLuint cmdlen
= 8;
8417 emit_header(gc
->pc
, X_GLrop_FogCoordfvEXT
, cmdlen
);
8418 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&coord
), 4);
8420 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8421 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8425 #define X_GLrop_FogCoordfvEXT 4124
8427 __indirect_glFogCoordfvEXT(const GLfloat
* coord
)
8429 generic_4_byte(X_GLrop_FogCoordfvEXT
, coord
);
8432 #define X_GLrop_BlendFuncSeparateEXT 4134
8434 __indirect_glBlendFuncSeparateEXT(GLenum sfactorRGB
, GLenum dfactorRGB
,
8435 GLenum sfactorAlpha
, GLenum dfactorAlpha
)
8437 __GLXcontext
*const gc
= __glXGetCurrentContext();
8438 const GLuint cmdlen
= 20;
8439 emit_header(gc
->pc
, X_GLrop_BlendFuncSeparateEXT
, cmdlen
);
8440 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&sfactorRGB
), 4);
8441 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&dfactorRGB
), 4);
8442 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&sfactorAlpha
), 4);
8443 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&dfactorAlpha
), 4);
8445 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8446 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8450 #define X_GLrop_WindowPos3fvMESA 230
8452 __indirect_glWindowPos3fMESA(GLfloat x
, GLfloat y
, GLfloat z
)
8454 __GLXcontext
*const gc
= __glXGetCurrentContext();
8455 const GLuint cmdlen
= 16;
8456 emit_header(gc
->pc
, X_GLrop_WindowPos3fvMESA
, cmdlen
);
8457 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 4);
8458 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&y
), 4);
8459 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 4);
8461 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8462 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8466 #define X_GLrop_WindowPos3fvMESA 230
8468 __indirect_glWindowPos3fvMESA(const GLfloat
* v
)
8470 generic_12_byte(X_GLrop_WindowPos3fvMESA
, v
);
8473 #define X_GLvop_AreProgramsResidentNV 1293
8475 __indirect_glAreProgramsResidentNV(GLsizei n
, const GLuint
* ids
,
8476 GLboolean
* residences
)
8478 __GLXcontext
*const gc
= __glXGetCurrentContext();
8479 Display
*const dpy
= gc
->currentDpy
;
8480 GLboolean retval
= (GLboolean
) 0;
8481 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
8482 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
8484 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8485 X_GLvop_AreProgramsResidentNV
, cmdlen
);
8486 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
8487 (void) memcpy((void *) (pc
+ 4), (void *) (ids
), (n
* 4));
8488 retval
= (GLboolean
) __glXReadReply(dpy
, 1, residences
, GL_FALSE
);
8495 #define X_GLrop_BindProgramNV 4180
8497 __indirect_glBindProgramNV(GLenum target
, GLuint program
)
8499 __GLXcontext
*const gc
= __glXGetCurrentContext();
8500 const GLuint cmdlen
= 12;
8501 emit_header(gc
->pc
, X_GLrop_BindProgramNV
, cmdlen
);
8502 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8503 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&program
), 4);
8505 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8506 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8510 #define X_GLvop_DeleteProgramsNV 1294
8512 __indirect_glDeleteProgramsNV(GLsizei n
, const GLuint
* programs
)
8514 __GLXcontext
*const gc
= __glXGetCurrentContext();
8515 Display
*const dpy
= gc
->currentDpy
;
8516 const GLuint cmdlen
= 4 + __GLX_PAD((n
* 4));
8517 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
8519 __glXSetupVendorRequest(gc
, X_GLXVendorPrivate
,
8520 X_GLvop_DeleteProgramsNV
, cmdlen
);
8521 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
8522 (void) memcpy((void *) (pc
+ 4), (void *) (programs
), (n
* 4));
8529 #define X_GLrop_ExecuteProgramNV 4181
8531 __indirect_glExecuteProgramNV(GLenum target
, GLuint id
,
8532 const GLfloat
* params
)
8534 __GLXcontext
*const gc
= __glXGetCurrentContext();
8535 const GLuint cmdlen
= 28;
8536 emit_header(gc
->pc
, X_GLrop_ExecuteProgramNV
, cmdlen
);
8537 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8538 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&id
), 4);
8539 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 16);
8541 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8542 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8546 #define X_GLvop_GenProgramsNV 1295
8548 __indirect_glGenProgramsNV(GLsizei n
, GLuint
* programs
)
8550 __GLXcontext
*const gc
= __glXGetCurrentContext();
8551 Display
*const dpy
= gc
->currentDpy
;
8552 const GLuint cmdlen
= 4;
8553 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
8555 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8556 X_GLvop_GenProgramsNV
, cmdlen
);
8557 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
8558 (void) __glXReadReply(dpy
, 4, programs
, GL_TRUE
);
8565 #define X_GLvop_GetProgramParameterdvNV 1297
8567 __indirect_glGetProgramParameterdvNV(GLenum target
, GLuint index
,
8568 GLenum pname
, GLdouble
* params
)
8570 __GLXcontext
*const gc
= __glXGetCurrentContext();
8571 Display
*const dpy
= gc
->currentDpy
;
8572 const GLuint cmdlen
= 12;
8573 if (__builtin_expect(dpy
!= NULL
, 1)) {
8575 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8576 X_GLvop_GetProgramParameterdvNV
, cmdlen
);
8577 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8578 (void) memcpy((void *) (pc
+ 4), (void *) (&index
), 4);
8579 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
8580 (void) __glXReadReply(dpy
, 8, params
, GL_FALSE
);
8587 #define X_GLvop_GetProgramParameterfvNV 1296
8589 __indirect_glGetProgramParameterfvNV(GLenum target
, GLuint index
,
8590 GLenum pname
, GLfloat
* params
)
8592 __GLXcontext
*const gc
= __glXGetCurrentContext();
8593 Display
*const dpy
= gc
->currentDpy
;
8594 const GLuint cmdlen
= 12;
8595 if (__builtin_expect(dpy
!= NULL
, 1)) {
8597 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8598 X_GLvop_GetProgramParameterfvNV
, cmdlen
);
8599 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8600 (void) memcpy((void *) (pc
+ 4), (void *) (&index
), 4);
8601 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
8602 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8609 #define X_GLvop_GetProgramStringNV 1299
8611 __indirect_glGetProgramStringNV(GLuint id
, GLenum pname
, GLubyte
* program
)
8613 __GLXcontext
*const gc
= __glXGetCurrentContext();
8614 Display
*const dpy
= gc
->currentDpy
;
8615 const GLuint cmdlen
= 8;
8616 if (__builtin_expect(dpy
!= NULL
, 1)) {
8618 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8619 X_GLvop_GetProgramStringNV
, cmdlen
);
8620 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
8621 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8622 (void) __glXReadReply(dpy
, 1, program
, GL_TRUE
);
8629 #define X_GLvop_GetProgramivNV 1298
8631 __indirect_glGetProgramivNV(GLuint id
, GLenum pname
, GLint
* params
)
8633 __GLXcontext
*const gc
= __glXGetCurrentContext();
8634 Display
*const dpy
= gc
->currentDpy
;
8635 const GLuint cmdlen
= 8;
8636 if (__builtin_expect(dpy
!= NULL
, 1)) {
8638 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8639 X_GLvop_GetProgramivNV
, cmdlen
);
8640 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
8641 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8642 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8649 #define X_GLvop_GetTrackMatrixivNV 1300
8651 __indirect_glGetTrackMatrixivNV(GLenum target
, GLuint address
, GLenum pname
,
8654 __GLXcontext
*const gc
= __glXGetCurrentContext();
8655 Display
*const dpy
= gc
->currentDpy
;
8656 const GLuint cmdlen
= 12;
8657 if (__builtin_expect(dpy
!= NULL
, 1)) {
8659 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8660 X_GLvop_GetTrackMatrixivNV
, cmdlen
);
8661 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
8662 (void) memcpy((void *) (pc
+ 4), (void *) (&address
), 4);
8663 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
8664 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8671 #define X_GLvop_GetVertexAttribdvNV 1301
8673 __indirect_glGetVertexAttribdvNV(GLuint index
, GLenum pname
,
8676 __GLXcontext
*const gc
= __glXGetCurrentContext();
8677 Display
*const dpy
= gc
->currentDpy
;
8678 const GLuint cmdlen
= 8;
8679 if (__builtin_expect(dpy
!= NULL
, 1)) {
8681 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8682 X_GLvop_GetVertexAttribdvNV
, cmdlen
);
8683 (void) memcpy((void *) (pc
+ 0), (void *) (&index
), 4);
8684 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8685 (void) __glXReadReply(dpy
, 8, params
, GL_FALSE
);
8692 #define X_GLvop_GetVertexAttribfvNV 1302
8694 __indirect_glGetVertexAttribfvNV(GLuint index
, GLenum pname
, GLfloat
* params
)
8696 __GLXcontext
*const gc
= __glXGetCurrentContext();
8697 Display
*const dpy
= gc
->currentDpy
;
8698 const GLuint cmdlen
= 8;
8699 if (__builtin_expect(dpy
!= NULL
, 1)) {
8701 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8702 X_GLvop_GetVertexAttribfvNV
, cmdlen
);
8703 (void) memcpy((void *) (pc
+ 0), (void *) (&index
), 4);
8704 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8705 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8712 #define X_GLvop_GetVertexAttribivNV 1303
8714 __indirect_glGetVertexAttribivNV(GLuint index
, GLenum pname
, GLint
* params
)
8716 __GLXcontext
*const gc
= __glXGetCurrentContext();
8717 Display
*const dpy
= gc
->currentDpy
;
8718 const GLuint cmdlen
= 8;
8719 if (__builtin_expect(dpy
!= NULL
, 1)) {
8721 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8722 X_GLvop_GetVertexAttribivNV
, cmdlen
);
8723 (void) memcpy((void *) (pc
+ 0), (void *) (&index
), 4);
8724 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
8725 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
8732 #define X_GLvop_IsProgramNV 1304
8734 __indirect_glIsProgramNV(GLuint program
)
8736 __GLXcontext
*const gc
= __glXGetCurrentContext();
8737 Display
*const dpy
= gc
->currentDpy
;
8738 GLboolean retval
= (GLboolean
) 0;
8739 const GLuint cmdlen
= 4;
8740 if (__builtin_expect(dpy
!= NULL
, 1)) {
8742 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
8743 X_GLvop_IsProgramNV
, cmdlen
);
8744 (void) memcpy((void *) (pc
+ 0), (void *) (&program
), 4);
8745 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
8752 #define X_GLrop_LoadProgramNV 4183
8754 __indirect_glLoadProgramNV(GLenum target
, GLuint id
, GLsizei len
,
8755 const GLubyte
* program
)
8757 __GLXcontext
*const gc
= __glXGetCurrentContext();
8758 const GLuint cmdlen
= 16 + __GLX_PAD(len
);
8759 if (__builtin_expect(len
>= 0, 1)) {
8760 emit_header(gc
->pc
, X_GLrop_LoadProgramNV
, cmdlen
);
8761 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8762 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&id
), 4);
8763 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&len
), 4);
8764 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (program
), len
);
8766 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8767 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8772 #define X_GLrop_ProgramParameter4dvNV 4185
8774 __indirect_glProgramParameter4dNV(GLenum target
, GLuint index
, GLdouble x
,
8775 GLdouble y
, GLdouble z
, GLdouble w
)
8777 __GLXcontext
*const gc
= __glXGetCurrentContext();
8778 const GLuint cmdlen
= 44;
8779 emit_header(gc
->pc
, X_GLrop_ProgramParameter4dvNV
, cmdlen
);
8780 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8781 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8782 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 8);
8783 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&y
), 8);
8784 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&z
), 8);
8785 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&w
), 8);
8787 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8788 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8792 #define X_GLrop_ProgramParameter4dvNV 4185
8794 __indirect_glProgramParameter4dvNV(GLenum target
, GLuint index
,
8795 const GLdouble
* params
)
8797 __GLXcontext
*const gc
= __glXGetCurrentContext();
8798 const GLuint cmdlen
= 44;
8799 emit_header(gc
->pc
, X_GLrop_ProgramParameter4dvNV
, cmdlen
);
8800 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8801 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8802 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 32);
8804 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8805 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8809 #define X_GLrop_ProgramParameter4fvNV 4184
8811 __indirect_glProgramParameter4fNV(GLenum target
, GLuint index
, GLfloat x
,
8812 GLfloat y
, GLfloat z
, GLfloat w
)
8814 __GLXcontext
*const gc
= __glXGetCurrentContext();
8815 const GLuint cmdlen
= 28;
8816 emit_header(gc
->pc
, X_GLrop_ProgramParameter4fvNV
, cmdlen
);
8817 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8818 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8819 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
8820 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
8821 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 4);
8822 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&w
), 4);
8824 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8825 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8829 #define X_GLrop_ProgramParameter4fvNV 4184
8831 __indirect_glProgramParameter4fvNV(GLenum target
, GLuint index
,
8832 const GLfloat
* params
)
8834 __GLXcontext
*const gc
= __glXGetCurrentContext();
8835 const GLuint cmdlen
= 28;
8836 emit_header(gc
->pc
, X_GLrop_ProgramParameter4fvNV
, cmdlen
);
8837 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8838 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8839 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (params
), 16);
8841 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8842 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8846 #define X_GLrop_ProgramParameters4dvNV 4187
8848 __indirect_glProgramParameters4dvNV(GLenum target
, GLuint index
, GLuint num
,
8849 const GLdouble
* params
)
8851 __GLXcontext
*const gc
= __glXGetCurrentContext();
8852 const GLuint cmdlen
= 16 + __GLX_PAD((num
* 32));
8853 if (__builtin_expect(num
>= 0, 1)) {
8854 emit_header(gc
->pc
, X_GLrop_ProgramParameters4dvNV
, cmdlen
);
8855 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8856 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8857 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&num
), 4);
8858 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (params
), (num
* 32));
8860 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8861 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8866 #define X_GLrop_ProgramParameters4fvNV 4186
8868 __indirect_glProgramParameters4fvNV(GLenum target
, GLuint index
, GLuint num
,
8869 const GLfloat
* params
)
8871 __GLXcontext
*const gc
= __glXGetCurrentContext();
8872 const GLuint cmdlen
= 16 + __GLX_PAD((num
* 16));
8873 if (__builtin_expect(num
>= 0, 1)) {
8874 emit_header(gc
->pc
, X_GLrop_ProgramParameters4fvNV
, cmdlen
);
8875 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8876 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&index
), 4);
8877 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&num
), 4);
8878 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (params
), (num
* 16));
8880 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8881 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8886 #define X_GLrop_RequestResidentProgramsNV 4182
8888 __indirect_glRequestResidentProgramsNV(GLsizei n
, const GLuint
* ids
)
8890 __GLXcontext
*const gc
= __glXGetCurrentContext();
8891 const GLuint cmdlen
= 8 + __GLX_PAD((n
* 4));
8892 if (__builtin_expect(n
>= 0, 1)) {
8893 emit_header(gc
->pc
, X_GLrop_RequestResidentProgramsNV
, cmdlen
);
8894 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
8895 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (ids
), (n
* 4));
8897 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8898 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8903 #define X_GLrop_TrackMatrixNV 4188
8905 __indirect_glTrackMatrixNV(GLenum target
, GLuint address
, GLenum matrix
,
8908 __GLXcontext
*const gc
= __glXGetCurrentContext();
8909 const GLuint cmdlen
= 20;
8910 emit_header(gc
->pc
, X_GLrop_TrackMatrixNV
, cmdlen
);
8911 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
8912 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&address
), 4);
8913 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&matrix
), 4);
8914 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&transform
), 4);
8916 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8917 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8921 #define X_GLrop_VertexAttrib1dvNV 4273
8923 __indirect_glVertexAttrib1dNV(GLuint index
, GLdouble x
)
8925 __GLXcontext
*const gc
= __glXGetCurrentContext();
8926 const GLuint cmdlen
= 16;
8927 emit_header(gc
->pc
, X_GLrop_VertexAttrib1dvNV
, cmdlen
);
8928 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
8929 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
8931 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8932 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8936 #define X_GLrop_VertexAttrib1dvNV 4273
8938 __indirect_glVertexAttrib1dvNV(GLuint index
, const GLdouble
* v
)
8940 __GLXcontext
*const gc
= __glXGetCurrentContext();
8941 const GLuint cmdlen
= 16;
8942 emit_header(gc
->pc
, X_GLrop_VertexAttrib1dvNV
, cmdlen
);
8943 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
8944 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
8946 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8947 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8951 #define X_GLrop_VertexAttrib1fvNV 4269
8953 __indirect_glVertexAttrib1fNV(GLuint index
, GLfloat x
)
8955 __GLXcontext
*const gc
= __glXGetCurrentContext();
8956 const GLuint cmdlen
= 12;
8957 emit_header(gc
->pc
, X_GLrop_VertexAttrib1fvNV
, cmdlen
);
8958 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
8959 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
8961 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8962 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8966 #define X_GLrop_VertexAttrib1fvNV 4269
8968 __indirect_glVertexAttrib1fvNV(GLuint index
, const GLfloat
* v
)
8970 __GLXcontext
*const gc
= __glXGetCurrentContext();
8971 const GLuint cmdlen
= 12;
8972 emit_header(gc
->pc
, X_GLrop_VertexAttrib1fvNV
, cmdlen
);
8973 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
8974 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
8976 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8977 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8981 #define X_GLrop_VertexAttrib1svNV 4265
8983 __indirect_glVertexAttrib1sNV(GLuint index
, GLshort x
)
8985 __GLXcontext
*const gc
= __glXGetCurrentContext();
8986 const GLuint cmdlen
= 12;
8987 emit_header(gc
->pc
, X_GLrop_VertexAttrib1svNV
, cmdlen
);
8988 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
8989 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
8991 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
8992 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
8996 #define X_GLrop_VertexAttrib1svNV 4265
8998 __indirect_glVertexAttrib1svNV(GLuint index
, const GLshort
* v
)
9000 __GLXcontext
*const gc
= __glXGetCurrentContext();
9001 const GLuint cmdlen
= 12;
9002 emit_header(gc
->pc
, X_GLrop_VertexAttrib1svNV
, cmdlen
);
9003 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9004 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 2);
9006 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9007 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9011 #define X_GLrop_VertexAttrib2dvNV 4274
9013 __indirect_glVertexAttrib2dNV(GLuint index
, GLdouble x
, GLdouble y
)
9015 __GLXcontext
*const gc
= __glXGetCurrentContext();
9016 const GLuint cmdlen
= 24;
9017 emit_header(gc
->pc
, X_GLrop_VertexAttrib2dvNV
, cmdlen
);
9018 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9019 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
9020 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
9022 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9023 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9027 #define X_GLrop_VertexAttrib2dvNV 4274
9029 __indirect_glVertexAttrib2dvNV(GLuint index
, const GLdouble
* v
)
9031 __GLXcontext
*const gc
= __glXGetCurrentContext();
9032 const GLuint cmdlen
= 24;
9033 emit_header(gc
->pc
, X_GLrop_VertexAttrib2dvNV
, cmdlen
);
9034 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9035 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
9037 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9038 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9042 #define X_GLrop_VertexAttrib2fvNV 4270
9044 __indirect_glVertexAttrib2fNV(GLuint index
, GLfloat x
, GLfloat y
)
9046 __GLXcontext
*const gc
= __glXGetCurrentContext();
9047 const GLuint cmdlen
= 16;
9048 emit_header(gc
->pc
, X_GLrop_VertexAttrib2fvNV
, cmdlen
);
9049 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9050 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
9051 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
9053 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9054 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9058 #define X_GLrop_VertexAttrib2fvNV 4270
9060 __indirect_glVertexAttrib2fvNV(GLuint index
, const GLfloat
* v
)
9062 __GLXcontext
*const gc
= __glXGetCurrentContext();
9063 const GLuint cmdlen
= 16;
9064 emit_header(gc
->pc
, X_GLrop_VertexAttrib2fvNV
, cmdlen
);
9065 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9066 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
9068 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9069 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9073 #define X_GLrop_VertexAttrib2svNV 4266
9075 __indirect_glVertexAttrib2sNV(GLuint index
, GLshort x
, GLshort y
)
9077 __GLXcontext
*const gc
= __glXGetCurrentContext();
9078 const GLuint cmdlen
= 12;
9079 emit_header(gc
->pc
, X_GLrop_VertexAttrib2svNV
, cmdlen
);
9080 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9081 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
9082 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
9084 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9085 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9089 #define X_GLrop_VertexAttrib2svNV 4266
9091 __indirect_glVertexAttrib2svNV(GLuint index
, const GLshort
* v
)
9093 __GLXcontext
*const gc
= __glXGetCurrentContext();
9094 const GLuint cmdlen
= 12;
9095 emit_header(gc
->pc
, X_GLrop_VertexAttrib2svNV
, cmdlen
);
9096 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9097 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
9099 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9100 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9104 #define X_GLrop_VertexAttrib3dvNV 4275
9106 __indirect_glVertexAttrib3dNV(GLuint index
, GLdouble x
, GLdouble y
,
9109 __GLXcontext
*const gc
= __glXGetCurrentContext();
9110 const GLuint cmdlen
= 32;
9111 emit_header(gc
->pc
, X_GLrop_VertexAttrib3dvNV
, cmdlen
);
9112 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9113 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
9114 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
9115 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&z
), 8);
9117 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9118 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9122 #define X_GLrop_VertexAttrib3dvNV 4275
9124 __indirect_glVertexAttrib3dvNV(GLuint index
, const GLdouble
* v
)
9126 __GLXcontext
*const gc
= __glXGetCurrentContext();
9127 const GLuint cmdlen
= 32;
9128 emit_header(gc
->pc
, X_GLrop_VertexAttrib3dvNV
, cmdlen
);
9129 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9130 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 24);
9132 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9133 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9137 #define X_GLrop_VertexAttrib3fvNV 4271
9139 __indirect_glVertexAttrib3fNV(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
)
9141 __GLXcontext
*const gc
= __glXGetCurrentContext();
9142 const GLuint cmdlen
= 20;
9143 emit_header(gc
->pc
, X_GLrop_VertexAttrib3fvNV
, cmdlen
);
9144 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9145 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
9146 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
9147 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&z
), 4);
9149 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9150 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9154 #define X_GLrop_VertexAttrib3fvNV 4271
9156 __indirect_glVertexAttrib3fvNV(GLuint index
, const GLfloat
* v
)
9158 __GLXcontext
*const gc
= __glXGetCurrentContext();
9159 const GLuint cmdlen
= 20;
9160 emit_header(gc
->pc
, X_GLrop_VertexAttrib3fvNV
, cmdlen
);
9161 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9162 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 12);
9164 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9165 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9169 #define X_GLrop_VertexAttrib3svNV 4267
9171 __indirect_glVertexAttrib3sNV(GLuint index
, GLshort x
, GLshort y
, GLshort z
)
9173 __GLXcontext
*const gc
= __glXGetCurrentContext();
9174 const GLuint cmdlen
= 16;
9175 emit_header(gc
->pc
, X_GLrop_VertexAttrib3svNV
, cmdlen
);
9176 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9177 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
9178 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
9179 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 2);
9181 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9182 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9186 #define X_GLrop_VertexAttrib3svNV 4267
9188 __indirect_glVertexAttrib3svNV(GLuint index
, const GLshort
* v
)
9190 __GLXcontext
*const gc
= __glXGetCurrentContext();
9191 const GLuint cmdlen
= 16;
9192 emit_header(gc
->pc
, X_GLrop_VertexAttrib3svNV
, cmdlen
);
9193 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9194 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 6);
9196 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9197 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9201 #define X_GLrop_VertexAttrib4dvNV 4276
9203 __indirect_glVertexAttrib4dNV(GLuint index
, GLdouble x
, GLdouble y
,
9204 GLdouble z
, GLdouble w
)
9206 __GLXcontext
*const gc
= __glXGetCurrentContext();
9207 const GLuint cmdlen
= 40;
9208 emit_header(gc
->pc
, X_GLrop_VertexAttrib4dvNV
, cmdlen
);
9209 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9210 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 8);
9211 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 8);
9212 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&z
), 8);
9213 (void) memcpy((void *) (gc
->pc
+ 32), (void *) (&w
), 8);
9215 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9216 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9220 #define X_GLrop_VertexAttrib4dvNV 4276
9222 __indirect_glVertexAttrib4dvNV(GLuint index
, const GLdouble
* v
)
9224 __GLXcontext
*const gc
= __glXGetCurrentContext();
9225 const GLuint cmdlen
= 40;
9226 emit_header(gc
->pc
, X_GLrop_VertexAttrib4dvNV
, cmdlen
);
9227 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9228 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 32);
9230 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9231 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9235 #define X_GLrop_VertexAttrib4fvNV 4272
9237 __indirect_glVertexAttrib4fNV(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
,
9240 __GLXcontext
*const gc
= __glXGetCurrentContext();
9241 const GLuint cmdlen
= 24;
9242 emit_header(gc
->pc
, X_GLrop_VertexAttrib4fvNV
, cmdlen
);
9243 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9244 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 4);
9245 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 4);
9246 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&z
), 4);
9247 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&w
), 4);
9249 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9250 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9254 #define X_GLrop_VertexAttrib4fvNV 4272
9256 __indirect_glVertexAttrib4fvNV(GLuint index
, const GLfloat
* v
)
9258 __GLXcontext
*const gc
= __glXGetCurrentContext();
9259 const GLuint cmdlen
= 24;
9260 emit_header(gc
->pc
, X_GLrop_VertexAttrib4fvNV
, cmdlen
);
9261 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9262 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 16);
9264 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9265 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9269 #define X_GLrop_VertexAttrib4svNV 4268
9271 __indirect_glVertexAttrib4sNV(GLuint index
, GLshort x
, GLshort y
, GLshort z
,
9274 __GLXcontext
*const gc
= __glXGetCurrentContext();
9275 const GLuint cmdlen
= 16;
9276 emit_header(gc
->pc
, X_GLrop_VertexAttrib4svNV
, cmdlen
);
9277 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9278 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 2);
9279 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&y
), 2);
9280 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&z
), 2);
9281 (void) memcpy((void *) (gc
->pc
+ 14), (void *) (&w
), 2);
9283 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9284 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9288 #define X_GLrop_VertexAttrib4svNV 4268
9290 __indirect_glVertexAttrib4svNV(GLuint index
, const GLshort
* v
)
9292 __GLXcontext
*const gc
= __glXGetCurrentContext();
9293 const GLuint cmdlen
= 16;
9294 emit_header(gc
->pc
, X_GLrop_VertexAttrib4svNV
, cmdlen
);
9295 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9296 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 8);
9298 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9299 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9303 #define X_GLrop_VertexAttrib4ubvNV 4277
9305 __indirect_glVertexAttrib4ubNV(GLuint index
, GLubyte x
, GLubyte y
, GLubyte z
,
9308 __GLXcontext
*const gc
= __glXGetCurrentContext();
9309 const GLuint cmdlen
= 12;
9310 emit_header(gc
->pc
, X_GLrop_VertexAttrib4ubvNV
, cmdlen
);
9311 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9312 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&x
), 1);
9313 (void) memcpy((void *) (gc
->pc
+ 9), (void *) (&y
), 1);
9314 (void) memcpy((void *) (gc
->pc
+ 10), (void *) (&z
), 1);
9315 (void) memcpy((void *) (gc
->pc
+ 11), (void *) (&w
), 1);
9317 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9318 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9322 #define X_GLrop_VertexAttrib4ubvNV 4277
9324 __indirect_glVertexAttrib4ubvNV(GLuint index
, const GLubyte
* v
)
9326 __GLXcontext
*const gc
= __glXGetCurrentContext();
9327 const GLuint cmdlen
= 12;
9328 emit_header(gc
->pc
, X_GLrop_VertexAttrib4ubvNV
, cmdlen
);
9329 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9330 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (v
), 4);
9332 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9333 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9337 #define X_GLrop_VertexAttribs1dvNV 4210
9339 __indirect_glVertexAttribs1dvNV(GLuint index
, GLsizei n
, const GLdouble
* v
)
9341 __GLXcontext
*const gc
= __glXGetCurrentContext();
9342 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 8));
9343 if (__builtin_expect(n
>= 0, 1)) {
9344 emit_header(gc
->pc
, X_GLrop_VertexAttribs1dvNV
, cmdlen
);
9345 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9346 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9347 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 8));
9349 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9350 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9355 #define X_GLrop_VertexAttribs1fvNV 4206
9357 __indirect_glVertexAttribs1fvNV(GLuint index
, GLsizei n
, const GLfloat
* v
)
9359 __GLXcontext
*const gc
= __glXGetCurrentContext();
9360 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 4));
9361 if (__builtin_expect(n
>= 0, 1)) {
9362 emit_header(gc
->pc
, X_GLrop_VertexAttribs1fvNV
, cmdlen
);
9363 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9364 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9365 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 4));
9367 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9368 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9373 #define X_GLrop_VertexAttribs1svNV 4202
9375 __indirect_glVertexAttribs1svNV(GLuint index
, GLsizei n
, const GLshort
* v
)
9377 __GLXcontext
*const gc
= __glXGetCurrentContext();
9378 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 2));
9379 if (__builtin_expect(n
>= 0, 1)) {
9380 emit_header(gc
->pc
, X_GLrop_VertexAttribs1svNV
, cmdlen
);
9381 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9382 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9383 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 2));
9385 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9386 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9391 #define X_GLrop_VertexAttribs2dvNV 4211
9393 __indirect_glVertexAttribs2dvNV(GLuint index
, GLsizei n
, const GLdouble
* v
)
9395 __GLXcontext
*const gc
= __glXGetCurrentContext();
9396 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 16));
9397 if (__builtin_expect(n
>= 0, 1)) {
9398 emit_header(gc
->pc
, X_GLrop_VertexAttribs2dvNV
, cmdlen
);
9399 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9400 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9401 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 16));
9403 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9404 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9409 #define X_GLrop_VertexAttribs2fvNV 4207
9411 __indirect_glVertexAttribs2fvNV(GLuint index
, GLsizei n
, const GLfloat
* v
)
9413 __GLXcontext
*const gc
= __glXGetCurrentContext();
9414 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 8));
9415 if (__builtin_expect(n
>= 0, 1)) {
9416 emit_header(gc
->pc
, X_GLrop_VertexAttribs2fvNV
, cmdlen
);
9417 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9418 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9419 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 8));
9421 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9422 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9427 #define X_GLrop_VertexAttribs2svNV 4203
9429 __indirect_glVertexAttribs2svNV(GLuint index
, GLsizei n
, const GLshort
* v
)
9431 __GLXcontext
*const gc
= __glXGetCurrentContext();
9432 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 4));
9433 if (__builtin_expect(n
>= 0, 1)) {
9434 emit_header(gc
->pc
, X_GLrop_VertexAttribs2svNV
, cmdlen
);
9435 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9436 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9437 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 4));
9439 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9440 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9445 #define X_GLrop_VertexAttribs3dvNV 4212
9447 __indirect_glVertexAttribs3dvNV(GLuint index
, GLsizei n
, const GLdouble
* v
)
9449 __GLXcontext
*const gc
= __glXGetCurrentContext();
9450 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 24));
9451 if (__builtin_expect(n
>= 0, 1)) {
9452 emit_header(gc
->pc
, X_GLrop_VertexAttribs3dvNV
, cmdlen
);
9453 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9454 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9455 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 24));
9457 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9458 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9463 #define X_GLrop_VertexAttribs3fvNV 4208
9465 __indirect_glVertexAttribs3fvNV(GLuint index
, GLsizei n
, const GLfloat
* v
)
9467 __GLXcontext
*const gc
= __glXGetCurrentContext();
9468 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 12));
9469 if (__builtin_expect(n
>= 0, 1)) {
9470 emit_header(gc
->pc
, X_GLrop_VertexAttribs3fvNV
, cmdlen
);
9471 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9472 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9473 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 12));
9475 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9476 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9481 #define X_GLrop_VertexAttribs3svNV 4204
9483 __indirect_glVertexAttribs3svNV(GLuint index
, GLsizei n
, const GLshort
* v
)
9485 __GLXcontext
*const gc
= __glXGetCurrentContext();
9486 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 6));
9487 if (__builtin_expect(n
>= 0, 1)) {
9488 emit_header(gc
->pc
, X_GLrop_VertexAttribs3svNV
, cmdlen
);
9489 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9490 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9491 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 6));
9493 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9494 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9499 #define X_GLrop_VertexAttribs4dvNV 4213
9501 __indirect_glVertexAttribs4dvNV(GLuint index
, GLsizei n
, const GLdouble
* v
)
9503 __GLXcontext
*const gc
= __glXGetCurrentContext();
9504 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 32));
9505 if (__builtin_expect(n
>= 0, 1)) {
9506 emit_header(gc
->pc
, X_GLrop_VertexAttribs4dvNV
, cmdlen
);
9507 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9508 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9509 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 32));
9511 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9512 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9517 #define X_GLrop_VertexAttribs4fvNV 4209
9519 __indirect_glVertexAttribs4fvNV(GLuint index
, GLsizei n
, const GLfloat
* v
)
9521 __GLXcontext
*const gc
= __glXGetCurrentContext();
9522 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 16));
9523 if (__builtin_expect(n
>= 0, 1)) {
9524 emit_header(gc
->pc
, X_GLrop_VertexAttribs4fvNV
, cmdlen
);
9525 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9526 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9527 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 16));
9529 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9530 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9535 #define X_GLrop_VertexAttribs4svNV 4205
9537 __indirect_glVertexAttribs4svNV(GLuint index
, GLsizei n
, const GLshort
* v
)
9539 __GLXcontext
*const gc
= __glXGetCurrentContext();
9540 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 8));
9541 if (__builtin_expect(n
>= 0, 1)) {
9542 emit_header(gc
->pc
, X_GLrop_VertexAttribs4svNV
, cmdlen
);
9543 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9544 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9545 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 8));
9547 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9548 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9553 #define X_GLrop_VertexAttribs4ubvNV 4214
9555 __indirect_glVertexAttribs4ubvNV(GLuint index
, GLsizei n
, const GLubyte
* v
)
9557 __GLXcontext
*const gc
= __glXGetCurrentContext();
9558 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 4));
9559 if (__builtin_expect(n
>= 0, 1)) {
9560 emit_header(gc
->pc
, X_GLrop_VertexAttribs4ubvNV
, cmdlen
);
9561 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&index
), 4);
9562 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&n
), 4);
9563 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), (n
* 4));
9565 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9566 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9571 #define X_GLrop_PointParameteriNV 4221
9573 __indirect_glPointParameteriNV(GLenum pname
, GLint param
)
9575 __GLXcontext
*const gc
= __glXGetCurrentContext();
9576 const GLuint cmdlen
= 12;
9577 emit_header(gc
->pc
, X_GLrop_PointParameteriNV
, cmdlen
);
9578 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
9579 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (¶m
), 4);
9581 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9582 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9586 #define X_GLrop_PointParameterivNV 4222
9588 __indirect_glPointParameterivNV(GLenum pname
, const GLint
* params
)
9590 __GLXcontext
*const gc
= __glXGetCurrentContext();
9591 const GLuint compsize
= __glPointParameterivNV_size(pname
);
9592 const GLuint cmdlen
= 8 + __GLX_PAD((compsize
* 4));
9593 emit_header(gc
->pc
, X_GLrop_PointParameterivNV
, cmdlen
);
9594 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&pname
), 4);
9595 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (params
), (compsize
* 4));
9597 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9598 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9602 #define X_GLrop_ActiveStencilFaceEXT 4220
9604 __indirect_glActiveStencilFaceEXT(GLenum face
)
9606 __GLXcontext
*const gc
= __glXGetCurrentContext();
9607 const GLuint cmdlen
= 8;
9608 emit_header(gc
->pc
, X_GLrop_ActiveStencilFaceEXT
, cmdlen
);
9609 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&face
), 4);
9611 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9612 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9616 #define X_GLvop_GetProgramNamedParameterdvNV 1311
9618 __indirect_glGetProgramNamedParameterdvNV(GLuint id
, GLsizei len
,
9619 const GLubyte
* name
,
9622 __GLXcontext
*const gc
= __glXGetCurrentContext();
9623 Display
*const dpy
= gc
->currentDpy
;
9624 const GLuint cmdlen
= 8 + __GLX_PAD(len
);
9625 if (__builtin_expect((len
>= 0) && (dpy
!= NULL
), 1)) {
9627 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
9628 X_GLvop_GetProgramNamedParameterdvNV
,
9630 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
9631 (void) memcpy((void *) (pc
+ 4), (void *) (&len
), 4);
9632 (void) memcpy((void *) (pc
+ 8), (void *) (name
), len
);
9633 (void) __glXReadReply(dpy
, 8, params
, GL_TRUE
);
9640 #define X_GLvop_GetProgramNamedParameterfvNV 1310
9642 __indirect_glGetProgramNamedParameterfvNV(GLuint id
, GLsizei len
,
9643 const GLubyte
* name
,
9646 __GLXcontext
*const gc
= __glXGetCurrentContext();
9647 Display
*const dpy
= gc
->currentDpy
;
9648 const GLuint cmdlen
= 8 + __GLX_PAD(len
);
9649 if (__builtin_expect((len
>= 0) && (dpy
!= NULL
), 1)) {
9651 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
9652 X_GLvop_GetProgramNamedParameterfvNV
,
9654 (void) memcpy((void *) (pc
+ 0), (void *) (&id
), 4);
9655 (void) memcpy((void *) (pc
+ 4), (void *) (&len
), 4);
9656 (void) memcpy((void *) (pc
+ 8), (void *) (name
), len
);
9657 (void) __glXReadReply(dpy
, 4, params
, GL_TRUE
);
9664 #define X_GLrop_ProgramNamedParameter4dvNV 4219
9666 __indirect_glProgramNamedParameter4dNV(GLuint id
, GLsizei len
,
9667 const GLubyte
* name
, GLdouble x
,
9668 GLdouble y
, GLdouble z
, GLdouble w
)
9670 __GLXcontext
*const gc
= __glXGetCurrentContext();
9671 const GLuint cmdlen
= 44 + __GLX_PAD(len
);
9672 if (__builtin_expect(len
>= 0, 1)) {
9673 emit_header(gc
->pc
, X_GLrop_ProgramNamedParameter4dvNV
, cmdlen
);
9674 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&x
), 8);
9675 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&y
), 8);
9676 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 8);
9677 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (&w
), 8);
9678 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&id
), 4);
9679 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&len
), 4);
9680 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (name
), len
);
9682 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9683 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9688 #define X_GLrop_ProgramNamedParameter4dvNV 4219
9690 __indirect_glProgramNamedParameter4dvNV(GLuint id
, GLsizei len
,
9691 const GLubyte
* name
,
9694 __GLXcontext
*const gc
= __glXGetCurrentContext();
9695 const GLuint cmdlen
= 44 + __GLX_PAD(len
);
9696 if (__builtin_expect(len
>= 0, 1)) {
9697 emit_header(gc
->pc
, X_GLrop_ProgramNamedParameter4dvNV
, cmdlen
);
9698 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (v
), 32);
9699 (void) memcpy((void *) (gc
->pc
+ 36), (void *) (&id
), 4);
9700 (void) memcpy((void *) (gc
->pc
+ 40), (void *) (&len
), 4);
9701 (void) memcpy((void *) (gc
->pc
+ 44), (void *) (name
), len
);
9703 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9704 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9709 #define X_GLrop_ProgramNamedParameter4fvNV 4218
9711 __indirect_glProgramNamedParameter4fNV(GLuint id
, GLsizei len
,
9712 const GLubyte
* name
, GLfloat x
,
9713 GLfloat y
, GLfloat z
, GLfloat w
)
9715 __GLXcontext
*const gc
= __glXGetCurrentContext();
9716 const GLuint cmdlen
= 28 + __GLX_PAD(len
);
9717 if (__builtin_expect(len
>= 0, 1)) {
9718 emit_header(gc
->pc
, X_GLrop_ProgramNamedParameter4fvNV
, cmdlen
);
9719 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&id
), 4);
9720 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&len
), 4);
9721 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&x
), 4);
9722 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&y
), 4);
9723 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&z
), 4);
9724 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&w
), 4);
9725 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (name
), len
);
9727 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9728 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9733 #define X_GLrop_ProgramNamedParameter4fvNV 4218
9735 __indirect_glProgramNamedParameter4fvNV(GLuint id
, GLsizei len
,
9736 const GLubyte
* name
,
9739 __GLXcontext
*const gc
= __glXGetCurrentContext();
9740 const GLuint cmdlen
= 28 + __GLX_PAD(len
);
9741 if (__builtin_expect(len
>= 0, 1)) {
9742 emit_header(gc
->pc
, X_GLrop_ProgramNamedParameter4fvNV
, cmdlen
);
9743 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&id
), 4);
9744 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&len
), 4);
9745 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (v
), 16);
9746 (void) memcpy((void *) (gc
->pc
+ 28), (void *) (name
), len
);
9748 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9749 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9754 #define X_GLrop_BlendEquationSeparateEXT 4228
9756 __indirect_glBlendEquationSeparateEXT(GLenum modeRGB
, GLenum modeA
)
9758 __GLXcontext
*const gc
= __glXGetCurrentContext();
9759 const GLuint cmdlen
= 12;
9760 emit_header(gc
->pc
, X_GLrop_BlendEquationSeparateEXT
, cmdlen
);
9761 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&modeRGB
), 4);
9762 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&modeA
), 4);
9764 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9765 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9769 #define X_GLrop_BindFramebufferEXT 4319
9771 __indirect_glBindFramebufferEXT(GLenum target
, GLuint framebuffer
)
9773 __GLXcontext
*const gc
= __glXGetCurrentContext();
9774 const GLuint cmdlen
= 12;
9775 emit_header(gc
->pc
, X_GLrop_BindFramebufferEXT
, cmdlen
);
9776 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9777 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&framebuffer
), 4);
9779 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9780 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9784 #define X_GLrop_BindRenderbufferEXT 4316
9786 __indirect_glBindRenderbufferEXT(GLenum target
, GLuint renderbuffer
)
9788 __GLXcontext
*const gc
= __glXGetCurrentContext();
9789 const GLuint cmdlen
= 12;
9790 emit_header(gc
->pc
, X_GLrop_BindRenderbufferEXT
, cmdlen
);
9791 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9792 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&renderbuffer
), 4);
9794 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9795 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9799 #define X_GLvop_CheckFramebufferStatusEXT 1427
9801 __indirect_glCheckFramebufferStatusEXT(GLenum target
)
9803 __GLXcontext
*const gc
= __glXGetCurrentContext();
9804 Display
*const dpy
= gc
->currentDpy
;
9805 GLenum retval
= (GLenum
) 0;
9806 const GLuint cmdlen
= 4;
9807 if (__builtin_expect(dpy
!= NULL
, 1)) {
9809 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
9810 X_GLvop_CheckFramebufferStatusEXT
,
9812 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
9813 retval
= (GLenum
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
9820 #define X_GLrop_DeleteFramebuffersEXT 4320
9822 __indirect_glDeleteFramebuffersEXT(GLsizei n
, const GLuint
* framebuffers
)
9824 __GLXcontext
*const gc
= __glXGetCurrentContext();
9825 const GLuint cmdlen
= 8 + __GLX_PAD((n
* 4));
9826 if (__builtin_expect(n
>= 0, 1)) {
9827 emit_header(gc
->pc
, X_GLrop_DeleteFramebuffersEXT
, cmdlen
);
9828 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
9829 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (framebuffers
),
9832 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9833 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9838 #define X_GLrop_DeleteRenderbuffersEXT 4317
9840 __indirect_glDeleteRenderbuffersEXT(GLsizei n
, const GLuint
* renderbuffers
)
9842 __GLXcontext
*const gc
= __glXGetCurrentContext();
9843 const GLuint cmdlen
= 8 + __GLX_PAD((n
* 4));
9844 if (__builtin_expect(n
>= 0, 1)) {
9845 emit_header(gc
->pc
, X_GLrop_DeleteRenderbuffersEXT
, cmdlen
);
9846 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&n
), 4);
9847 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (renderbuffers
),
9850 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9851 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9856 #define X_GLrop_FramebufferRenderbufferEXT 4324
9858 __indirect_glFramebufferRenderbufferEXT(GLenum target
, GLenum attachment
,
9859 GLenum renderbuffertarget
,
9860 GLuint renderbuffer
)
9862 __GLXcontext
*const gc
= __glXGetCurrentContext();
9863 const GLuint cmdlen
= 20;
9864 emit_header(gc
->pc
, X_GLrop_FramebufferRenderbufferEXT
, cmdlen
);
9865 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9866 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&attachment
), 4);
9867 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&renderbuffertarget
), 4);
9868 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&renderbuffer
), 4);
9870 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9871 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9875 #define X_GLrop_FramebufferTexture1DEXT 4321
9877 __indirect_glFramebufferTexture1DEXT(GLenum target
, GLenum attachment
,
9878 GLenum textarget
, GLuint texture
,
9881 __GLXcontext
*const gc
= __glXGetCurrentContext();
9882 const GLuint cmdlen
= 24;
9883 emit_header(gc
->pc
, X_GLrop_FramebufferTexture1DEXT
, cmdlen
);
9884 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9885 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&attachment
), 4);
9886 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&textarget
), 4);
9887 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&texture
), 4);
9888 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&level
), 4);
9890 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9891 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9895 #define X_GLrop_FramebufferTexture2DEXT 4322
9897 __indirect_glFramebufferTexture2DEXT(GLenum target
, GLenum attachment
,
9898 GLenum textarget
, GLuint texture
,
9901 __GLXcontext
*const gc
= __glXGetCurrentContext();
9902 const GLuint cmdlen
= 24;
9903 emit_header(gc
->pc
, X_GLrop_FramebufferTexture2DEXT
, cmdlen
);
9904 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9905 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&attachment
), 4);
9906 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&textarget
), 4);
9907 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&texture
), 4);
9908 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&level
), 4);
9910 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9911 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9915 #define X_GLrop_FramebufferTexture3DEXT 4323
9917 __indirect_glFramebufferTexture3DEXT(GLenum target
, GLenum attachment
,
9918 GLenum textarget
, GLuint texture
,
9919 GLint level
, GLint zoffset
)
9921 __GLXcontext
*const gc
= __glXGetCurrentContext();
9922 const GLuint cmdlen
= 28;
9923 emit_header(gc
->pc
, X_GLrop_FramebufferTexture3DEXT
, cmdlen
);
9924 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9925 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&attachment
), 4);
9926 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&textarget
), 4);
9927 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&texture
), 4);
9928 (void) memcpy((void *) (gc
->pc
+ 20), (void *) (&level
), 4);
9929 (void) memcpy((void *) (gc
->pc
+ 24), (void *) (&zoffset
), 4);
9931 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9932 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9936 #define X_GLvop_GenFramebuffersEXT 1426
9938 __indirect_glGenFramebuffersEXT(GLsizei n
, GLuint
* framebuffers
)
9940 __GLXcontext
*const gc
= __glXGetCurrentContext();
9941 Display
*const dpy
= gc
->currentDpy
;
9942 const GLuint cmdlen
= 4;
9943 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
9945 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
9946 X_GLvop_GenFramebuffersEXT
, cmdlen
);
9947 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
9948 (void) __glXReadReply(dpy
, 4, framebuffers
, GL_TRUE
);
9955 #define X_GLvop_GenRenderbuffersEXT 1423
9957 __indirect_glGenRenderbuffersEXT(GLsizei n
, GLuint
* renderbuffers
)
9959 __GLXcontext
*const gc
= __glXGetCurrentContext();
9960 Display
*const dpy
= gc
->currentDpy
;
9961 const GLuint cmdlen
= 4;
9962 if (__builtin_expect((n
>= 0) && (dpy
!= NULL
), 1)) {
9964 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
9965 X_GLvop_GenRenderbuffersEXT
, cmdlen
);
9966 (void) memcpy((void *) (pc
+ 0), (void *) (&n
), 4);
9967 (void) __glXReadReply(dpy
, 4, renderbuffers
, GL_TRUE
);
9974 #define X_GLrop_GenerateMipmapEXT 4325
9976 __indirect_glGenerateMipmapEXT(GLenum target
)
9978 __GLXcontext
*const gc
= __glXGetCurrentContext();
9979 const GLuint cmdlen
= 8;
9980 emit_header(gc
->pc
, X_GLrop_GenerateMipmapEXT
, cmdlen
);
9981 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
9983 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
9984 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);
9988 #define X_GLvop_GetFramebufferAttachmentParameterivEXT 1428
9990 __indirect_glGetFramebufferAttachmentParameterivEXT(GLenum target
,
9995 __GLXcontext
*const gc
= __glXGetCurrentContext();
9996 Display
*const dpy
= gc
->currentDpy
;
9997 const GLuint cmdlen
= 12;
9998 if (__builtin_expect(dpy
!= NULL
, 1)) {
10000 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
10001 X_GLvop_GetFramebufferAttachmentParameterivEXT
,
10003 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
10004 (void) memcpy((void *) (pc
+ 4), (void *) (&attachment
), 4);
10005 (void) memcpy((void *) (pc
+ 8), (void *) (&pname
), 4);
10006 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
10007 UnlockDisplay(dpy
);
10013 #define X_GLvop_GetRenderbufferParameterivEXT 1424
10015 __indirect_glGetRenderbufferParameterivEXT(GLenum target
, GLenum pname
,
10018 __GLXcontext
*const gc
= __glXGetCurrentContext();
10019 Display
*const dpy
= gc
->currentDpy
;
10020 const GLuint cmdlen
= 8;
10021 if (__builtin_expect(dpy
!= NULL
, 1)) {
10022 GLubyte
const *pc
=
10023 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
10024 X_GLvop_GetRenderbufferParameterivEXT
,
10026 (void) memcpy((void *) (pc
+ 0), (void *) (&target
), 4);
10027 (void) memcpy((void *) (pc
+ 4), (void *) (&pname
), 4);
10028 (void) __glXReadReply(dpy
, 4, params
, GL_FALSE
);
10029 UnlockDisplay(dpy
);
10035 #define X_GLvop_IsFramebufferEXT 1425
10037 __indirect_glIsFramebufferEXT(GLuint framebuffer
)
10039 __GLXcontext
*const gc
= __glXGetCurrentContext();
10040 Display
*const dpy
= gc
->currentDpy
;
10041 GLboolean retval
= (GLboolean
) 0;
10042 const GLuint cmdlen
= 4;
10043 if (__builtin_expect(dpy
!= NULL
, 1)) {
10044 GLubyte
const *pc
=
10045 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
10046 X_GLvop_IsFramebufferEXT
, cmdlen
);
10047 (void) memcpy((void *) (pc
+ 0), (void *) (&framebuffer
), 4);
10048 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
10049 UnlockDisplay(dpy
);
10055 #define X_GLvop_IsRenderbufferEXT 1422
10057 __indirect_glIsRenderbufferEXT(GLuint renderbuffer
)
10059 __GLXcontext
*const gc
= __glXGetCurrentContext();
10060 Display
*const dpy
= gc
->currentDpy
;
10061 GLboolean retval
= (GLboolean
) 0;
10062 const GLuint cmdlen
= 4;
10063 if (__builtin_expect(dpy
!= NULL
, 1)) {
10064 GLubyte
const *pc
=
10065 __glXSetupVendorRequest(gc
, X_GLXVendorPrivateWithReply
,
10066 X_GLvop_IsRenderbufferEXT
, cmdlen
);
10067 (void) memcpy((void *) (pc
+ 0), (void *) (&renderbuffer
), 4);
10068 retval
= (GLboolean
) __glXReadReply(dpy
, 0, NULL
, GL_FALSE
);
10069 UnlockDisplay(dpy
);
10075 #define X_GLrop_RenderbufferStorageEXT 4318
10077 __indirect_glRenderbufferStorageEXT(GLenum target
, GLenum internalformat
,
10078 GLsizei width
, GLsizei height
)
10080 __GLXcontext
*const gc
= __glXGetCurrentContext();
10081 const GLuint cmdlen
= 20;
10082 emit_header(gc
->pc
, X_GLrop_RenderbufferStorageEXT
, cmdlen
);
10083 (void) memcpy((void *) (gc
->pc
+ 4), (void *) (&target
), 4);
10084 (void) memcpy((void *) (gc
->pc
+ 8), (void *) (&internalformat
), 4);
10085 (void) memcpy((void *) (gc
->pc
+ 12), (void *) (&width
), 4);
10086 (void) memcpy((void *) (gc
->pc
+ 16), (void *) (&height
), 4);
10088 if (__builtin_expect(gc
->pc
> gc
->limit
, 0)) {
10089 (void) __glXFlushRenderBuffer(gc
, gc
->pc
);