1 /* DO NOT EDIT - This file generated automatically by glX_proto_recv.py (from Mesa) script */
4 * (C) Copyright IBM Corporation 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
29 #include "glxserver.h"
30 #include "indirect_size.h"
31 #include "indirect_size_get.h"
32 #include "indirect_dispatch.h"
33 #include "glxbyteorder.h"
34 #include "indirect_util.h"
35 #include "singlesize.h"
37 #define __GLX_PAD(x) (((x) + 3) & ~3)
43 extern GLboolean
__glXErrorOccured(void);
44 extern void __glXClearErrorOccured(void);
46 static const unsigned dummy_answer
[2] = { 0, 0 };
49 bswap_CARD32(const void *src
)
56 x
.dst
= bswap_32(*(uint32_t *) src
);
61 bswap_CARD16(const void *src
)
68 x
.dst
= bswap_16(*(uint16_t *) src
);
73 bswap_ENUM(const void *src
)
80 x
.dst
= bswap_32(*(uint32_t *) src
);
85 bswap_CARD64(const void *src
)
92 x
.dst
= bswap_64(*(uint64_t *) src
);
97 bswap_FLOAT64(const void *src
)
104 x
.dst
= bswap_64(*(uint64_t *) src
);
109 bswap_FLOAT32(const void *src
)
116 x
.dst
= bswap_32(*(uint32_t *) src
);
121 bswap_16_array(uint16_t * src
, unsigned count
)
125 for (i
= 0; i
< count
; i
++) {
126 uint16_t temp
= bswap_16(src
[i
]);
135 bswap_32_array(uint32_t * src
, unsigned count
)
139 for (i
= 0; i
< count
; i
++) {
140 uint32_t temp
= bswap_32(src
[i
]);
149 bswap_64_array(uint64_t * src
, unsigned count
)
153 for (i
= 0; i
< count
; i
++) {
154 uint64_t temp
= bswap_64(src
[i
]);
163 __glXDispSwap_NewList(__GLXclientState
* cl
, GLbyte
* pc
)
165 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
167 __GLXcontext
*const cx
=
168 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
170 pc
+= __GLX_SINGLE_HDR_SIZE
;
172 glNewList((GLuint
) bswap_CARD32(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
180 __glXDispSwap_EndList(__GLXclientState
* cl
, GLbyte
* pc
)
182 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
184 __GLXcontext
*const cx
=
185 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
187 pc
+= __GLX_SINGLE_HDR_SIZE
;
197 __glXDispSwap_CallList(GLbyte
* pc
)
199 glCallList((GLuint
) bswap_CARD32(pc
+ 0));
203 __glXDispSwap_CallLists(GLbyte
* pc
)
205 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
206 const GLenum type
= (GLenum
) bswap_ENUM(pc
+ 4);
211 case GL_UNSIGNED_BYTE
:
215 lists
= (const GLvoid
*) (pc
+ 8);
218 case GL_UNSIGNED_SHORT
:
219 lists
= (const GLvoid
*) bswap_16_array((uint16_t *) (pc
+ 8), n
);
222 case GL_UNSIGNED_INT
:
224 lists
= (const GLvoid
*) bswap_32_array((uint32_t *) (pc
+ 8), n
);
230 glCallLists(n
, type
, lists
);
234 __glXDispSwap_DeleteLists(__GLXclientState
* cl
, GLbyte
* pc
)
236 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
238 __GLXcontext
*const cx
=
239 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
241 pc
+= __GLX_SINGLE_HDR_SIZE
;
243 glDeleteLists((GLuint
) bswap_CARD32(pc
+ 0),
244 (GLsizei
) bswap_CARD32(pc
+ 4));
252 __glXDispSwap_GenLists(__GLXclientState
* cl
, GLbyte
* pc
)
254 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
256 __GLXcontext
*const cx
=
257 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
259 pc
+= __GLX_SINGLE_HDR_SIZE
;
263 retval
= glGenLists((GLsizei
) bswap_CARD32(pc
+ 0));
264 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
272 __glXDispSwap_ListBase(GLbyte
* pc
)
274 glListBase((GLuint
) bswap_CARD32(pc
+ 0));
278 __glXDispSwap_Begin(GLbyte
* pc
)
280 glBegin((GLenum
) bswap_ENUM(pc
+ 0));
284 __glXDispSwap_Bitmap(GLbyte
* pc
)
286 const GLubyte
*const bitmap
= (const GLubyte
*) ((pc
+ 44));
287 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
289 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
290 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
291 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
292 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
293 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
294 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
296 glBitmap((GLsizei
) bswap_CARD32(pc
+ 20),
297 (GLsizei
) bswap_CARD32(pc
+ 24),
298 (GLfloat
) bswap_FLOAT32(pc
+ 28),
299 (GLfloat
) bswap_FLOAT32(pc
+ 32),
300 (GLfloat
) bswap_FLOAT32(pc
+ 36),
301 (GLfloat
) bswap_FLOAT32(pc
+ 40), bitmap
);
305 __glXDispSwap_Color3bv(GLbyte
* pc
)
307 glColor3bv((const GLbyte
*) (pc
+ 0));
311 __glXDispSwap_Color3dv(GLbyte
* pc
)
314 if ((unsigned long) (pc
) & 7) {
315 (void) memmove(pc
- 4, pc
, 24);
320 glColor3dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 3));
324 __glXDispSwap_Color3fv(GLbyte
* pc
)
326 glColor3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
330 __glXDispSwap_Color3iv(GLbyte
* pc
)
332 glColor3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
336 __glXDispSwap_Color3sv(GLbyte
* pc
)
338 glColor3sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
342 __glXDispSwap_Color3ubv(GLbyte
* pc
)
344 glColor3ubv((const GLubyte
*) (pc
+ 0));
348 __glXDispSwap_Color3uiv(GLbyte
* pc
)
350 glColor3uiv((const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
354 __glXDispSwap_Color3usv(GLbyte
* pc
)
356 glColor3usv((const GLushort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
360 __glXDispSwap_Color4bv(GLbyte
* pc
)
362 glColor4bv((const GLbyte
*) (pc
+ 0));
366 __glXDispSwap_Color4dv(GLbyte
* pc
)
369 if ((unsigned long) (pc
) & 7) {
370 (void) memmove(pc
- 4, pc
, 32);
375 glColor4dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 4));
379 __glXDispSwap_Color4fv(GLbyte
* pc
)
381 glColor4fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
385 __glXDispSwap_Color4iv(GLbyte
* pc
)
387 glColor4iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
391 __glXDispSwap_Color4sv(GLbyte
* pc
)
393 glColor4sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 4));
397 __glXDispSwap_Color4ubv(GLbyte
* pc
)
399 glColor4ubv((const GLubyte
*) (pc
+ 0));
403 __glXDispSwap_Color4uiv(GLbyte
* pc
)
405 glColor4uiv((const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
409 __glXDispSwap_Color4usv(GLbyte
* pc
)
411 glColor4usv((const GLushort
*) bswap_16_array((uint16_t *) (pc
+ 0), 4));
415 __glXDispSwap_EdgeFlagv(GLbyte
* pc
)
417 glEdgeFlagv((const GLboolean
*) (pc
+ 0));
421 __glXDispSwap_End(GLbyte
* pc
)
427 __glXDispSwap_Indexdv(GLbyte
* pc
)
430 if ((unsigned long) (pc
) & 7) {
431 (void) memmove(pc
- 4, pc
, 8);
436 glIndexdv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 1));
440 __glXDispSwap_Indexfv(GLbyte
* pc
)
442 glIndexfv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
446 __glXDispSwap_Indexiv(GLbyte
* pc
)
448 glIndexiv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
452 __glXDispSwap_Indexsv(GLbyte
* pc
)
454 glIndexsv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 1));
458 __glXDispSwap_Normal3bv(GLbyte
* pc
)
460 glNormal3bv((const GLbyte
*) (pc
+ 0));
464 __glXDispSwap_Normal3dv(GLbyte
* pc
)
467 if ((unsigned long) (pc
) & 7) {
468 (void) memmove(pc
- 4, pc
, 24);
473 glNormal3dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 3));
477 __glXDispSwap_Normal3fv(GLbyte
* pc
)
479 glNormal3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
483 __glXDispSwap_Normal3iv(GLbyte
* pc
)
485 glNormal3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
489 __glXDispSwap_Normal3sv(GLbyte
* pc
)
491 glNormal3sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
495 __glXDispSwap_RasterPos2dv(GLbyte
* pc
)
498 if ((unsigned long) (pc
) & 7) {
499 (void) memmove(pc
- 4, pc
, 16);
504 glRasterPos2dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 2));
508 __glXDispSwap_RasterPos2fv(GLbyte
* pc
)
510 glRasterPos2fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
514 __glXDispSwap_RasterPos2iv(GLbyte
* pc
)
516 glRasterPos2iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
520 __glXDispSwap_RasterPos2sv(GLbyte
* pc
)
522 glRasterPos2sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 2));
526 __glXDispSwap_RasterPos3dv(GLbyte
* pc
)
529 if ((unsigned long) (pc
) & 7) {
530 (void) memmove(pc
- 4, pc
, 24);
535 glRasterPos3dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 3));
539 __glXDispSwap_RasterPos3fv(GLbyte
* pc
)
541 glRasterPos3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
545 __glXDispSwap_RasterPos3iv(GLbyte
* pc
)
547 glRasterPos3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
551 __glXDispSwap_RasterPos3sv(GLbyte
* pc
)
553 glRasterPos3sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
557 __glXDispSwap_RasterPos4dv(GLbyte
* pc
)
560 if ((unsigned long) (pc
) & 7) {
561 (void) memmove(pc
- 4, pc
, 32);
566 glRasterPos4dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 4));
570 __glXDispSwap_RasterPos4fv(GLbyte
* pc
)
572 glRasterPos4fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
576 __glXDispSwap_RasterPos4iv(GLbyte
* pc
)
578 glRasterPos4iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
582 __glXDispSwap_RasterPos4sv(GLbyte
* pc
)
584 glRasterPos4sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 4));
588 __glXDispSwap_Rectdv(GLbyte
* pc
)
591 if ((unsigned long) (pc
) & 7) {
592 (void) memmove(pc
- 4, pc
, 32);
597 glRectdv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 2),
598 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 16), 2));
602 __glXDispSwap_Rectfv(GLbyte
* pc
)
604 glRectfv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 2),
605 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8), 2));
609 __glXDispSwap_Rectiv(GLbyte
* pc
)
611 glRectiv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 2),
612 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8), 2));
616 __glXDispSwap_Rectsv(GLbyte
* pc
)
618 glRectsv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 2),
619 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4), 2));
623 __glXDispSwap_TexCoord1dv(GLbyte
* pc
)
626 if ((unsigned long) (pc
) & 7) {
627 (void) memmove(pc
- 4, pc
, 8);
632 glTexCoord1dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 1));
636 __glXDispSwap_TexCoord1fv(GLbyte
* pc
)
638 glTexCoord1fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
642 __glXDispSwap_TexCoord1iv(GLbyte
* pc
)
644 glTexCoord1iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
648 __glXDispSwap_TexCoord1sv(GLbyte
* pc
)
650 glTexCoord1sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 1));
654 __glXDispSwap_TexCoord2dv(GLbyte
* pc
)
657 if ((unsigned long) (pc
) & 7) {
658 (void) memmove(pc
- 4, pc
, 16);
663 glTexCoord2dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 2));
667 __glXDispSwap_TexCoord2fv(GLbyte
* pc
)
669 glTexCoord2fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
673 __glXDispSwap_TexCoord2iv(GLbyte
* pc
)
675 glTexCoord2iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
679 __glXDispSwap_TexCoord2sv(GLbyte
* pc
)
681 glTexCoord2sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 2));
685 __glXDispSwap_TexCoord3dv(GLbyte
* pc
)
688 if ((unsigned long) (pc
) & 7) {
689 (void) memmove(pc
- 4, pc
, 24);
694 glTexCoord3dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 3));
698 __glXDispSwap_TexCoord3fv(GLbyte
* pc
)
700 glTexCoord3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
704 __glXDispSwap_TexCoord3iv(GLbyte
* pc
)
706 glTexCoord3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
710 __glXDispSwap_TexCoord3sv(GLbyte
* pc
)
712 glTexCoord3sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
716 __glXDispSwap_TexCoord4dv(GLbyte
* pc
)
719 if ((unsigned long) (pc
) & 7) {
720 (void) memmove(pc
- 4, pc
, 32);
725 glTexCoord4dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 4));
729 __glXDispSwap_TexCoord4fv(GLbyte
* pc
)
731 glTexCoord4fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
735 __glXDispSwap_TexCoord4iv(GLbyte
* pc
)
737 glTexCoord4iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
741 __glXDispSwap_TexCoord4sv(GLbyte
* pc
)
743 glTexCoord4sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 4));
747 __glXDispSwap_Vertex2dv(GLbyte
* pc
)
750 if ((unsigned long) (pc
) & 7) {
751 (void) memmove(pc
- 4, pc
, 16);
756 glVertex2dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 2));
760 __glXDispSwap_Vertex2fv(GLbyte
* pc
)
762 glVertex2fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
766 __glXDispSwap_Vertex2iv(GLbyte
* pc
)
768 glVertex2iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
772 __glXDispSwap_Vertex2sv(GLbyte
* pc
)
774 glVertex2sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 2));
778 __glXDispSwap_Vertex3dv(GLbyte
* pc
)
781 if ((unsigned long) (pc
) & 7) {
782 (void) memmove(pc
- 4, pc
, 24);
787 glVertex3dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 3));
791 __glXDispSwap_Vertex3fv(GLbyte
* pc
)
793 glVertex3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
797 __glXDispSwap_Vertex3iv(GLbyte
* pc
)
799 glVertex3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
803 __glXDispSwap_Vertex3sv(GLbyte
* pc
)
805 glVertex3sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 3));
809 __glXDispSwap_Vertex4dv(GLbyte
* pc
)
812 if ((unsigned long) (pc
) & 7) {
813 (void) memmove(pc
- 4, pc
, 32);
818 glVertex4dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 4));
822 __glXDispSwap_Vertex4fv(GLbyte
* pc
)
824 glVertex4fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
828 __glXDispSwap_Vertex4iv(GLbyte
* pc
)
830 glVertex4iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 4));
834 __glXDispSwap_Vertex4sv(GLbyte
* pc
)
836 glVertex4sv((const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 0), 4));
840 __glXDispSwap_ClipPlane(GLbyte
* pc
)
843 if ((unsigned long) (pc
) & 7) {
844 (void) memmove(pc
- 4, pc
, 36);
849 glClipPlane((GLenum
) bswap_ENUM(pc
+ 32),
850 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 4));
854 __glXDispSwap_ColorMaterial(GLbyte
* pc
)
856 glColorMaterial((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
860 __glXDispSwap_CullFace(GLbyte
* pc
)
862 glCullFace((GLenum
) bswap_ENUM(pc
+ 0));
866 __glXDispSwap_Fogf(GLbyte
* pc
)
868 glFogf((GLenum
) bswap_ENUM(pc
+ 0), (GLfloat
) bswap_FLOAT32(pc
+ 4));
872 __glXDispSwap_Fogfv(GLbyte
* pc
)
874 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
875 const GLfloat
*params
;
878 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
879 __glFogfv_size(pname
));
881 glFogfv(pname
, params
);
885 __glXDispSwap_Fogi(GLbyte
* pc
)
887 glFogi((GLenum
) bswap_ENUM(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4));
891 __glXDispSwap_Fogiv(GLbyte
* pc
)
893 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
897 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
898 __glFogiv_size(pname
));
900 glFogiv(pname
, params
);
904 __glXDispSwap_FrontFace(GLbyte
* pc
)
906 glFrontFace((GLenum
) bswap_ENUM(pc
+ 0));
910 __glXDispSwap_Hint(GLbyte
* pc
)
912 glHint((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
916 __glXDispSwap_Lightf(GLbyte
* pc
)
918 glLightf((GLenum
) bswap_ENUM(pc
+ 0),
919 (GLenum
) bswap_ENUM(pc
+ 4), (GLfloat
) bswap_FLOAT32(pc
+ 8));
923 __glXDispSwap_Lightfv(GLbyte
* pc
)
925 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
926 const GLfloat
*params
;
929 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
930 __glLightfv_size(pname
));
932 glLightfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
936 __glXDispSwap_Lighti(GLbyte
* pc
)
938 glLighti((GLenum
) bswap_ENUM(pc
+ 0),
939 (GLenum
) bswap_ENUM(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
943 __glXDispSwap_Lightiv(GLbyte
* pc
)
945 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
949 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
950 __glLightiv_size(pname
));
952 glLightiv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
956 __glXDispSwap_LightModelf(GLbyte
* pc
)
958 glLightModelf((GLenum
) bswap_ENUM(pc
+ 0), (GLfloat
) bswap_FLOAT32(pc
+ 4));
962 __glXDispSwap_LightModelfv(GLbyte
* pc
)
964 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
965 const GLfloat
*params
;
968 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
969 __glLightModelfv_size(pname
));
971 glLightModelfv(pname
, params
);
975 __glXDispSwap_LightModeli(GLbyte
* pc
)
977 glLightModeli((GLenum
) bswap_ENUM(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4));
981 __glXDispSwap_LightModeliv(GLbyte
* pc
)
983 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
987 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
988 __glLightModeliv_size(pname
));
990 glLightModeliv(pname
, params
);
994 __glXDispSwap_LineStipple(GLbyte
* pc
)
996 glLineStipple((GLint
) bswap_CARD32(pc
+ 0),
997 (GLushort
) bswap_CARD16(pc
+ 4));
1001 __glXDispSwap_LineWidth(GLbyte
* pc
)
1003 glLineWidth((GLfloat
) bswap_FLOAT32(pc
+ 0));
1007 __glXDispSwap_Materialf(GLbyte
* pc
)
1009 glMaterialf((GLenum
) bswap_ENUM(pc
+ 0),
1010 (GLenum
) bswap_ENUM(pc
+ 4), (GLfloat
) bswap_FLOAT32(pc
+ 8));
1014 __glXDispSwap_Materialfv(GLbyte
* pc
)
1016 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1017 const GLfloat
*params
;
1020 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
1021 __glMaterialfv_size(pname
));
1023 glMaterialfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1027 __glXDispSwap_Materiali(GLbyte
* pc
)
1029 glMateriali((GLenum
) bswap_ENUM(pc
+ 0),
1030 (GLenum
) bswap_ENUM(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
1034 __glXDispSwap_Materialiv(GLbyte
* pc
)
1036 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1037 const GLint
*params
;
1040 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
1041 __glMaterialiv_size(pname
));
1043 glMaterialiv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1047 __glXDispSwap_PointSize(GLbyte
* pc
)
1049 glPointSize((GLfloat
) bswap_FLOAT32(pc
+ 0));
1053 __glXDispSwap_PolygonMode(GLbyte
* pc
)
1055 glPolygonMode((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
1059 __glXDispSwap_PolygonStipple(GLbyte
* pc
)
1061 const GLubyte
*const mask
= (const GLubyte
*) ((pc
+ 20));
1062 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
1064 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
1065 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
1066 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
1067 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
1068 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
1069 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
1071 glPolygonStipple(mask
);
1075 __glXDispSwap_Scissor(GLbyte
* pc
)
1077 glScissor((GLint
) bswap_CARD32(pc
+ 0),
1078 (GLint
) bswap_CARD32(pc
+ 4),
1079 (GLsizei
) bswap_CARD32(pc
+ 8), (GLsizei
) bswap_CARD32(pc
+ 12));
1083 __glXDispSwap_ShadeModel(GLbyte
* pc
)
1085 glShadeModel((GLenum
) bswap_ENUM(pc
+ 0));
1089 __glXDispSwap_TexParameterf(GLbyte
* pc
)
1091 glTexParameterf((GLenum
) bswap_ENUM(pc
+ 0),
1092 (GLenum
) bswap_ENUM(pc
+ 4),
1093 (GLfloat
) bswap_FLOAT32(pc
+ 8));
1097 __glXDispSwap_TexParameterfv(GLbyte
* pc
)
1099 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1100 const GLfloat
*params
;
1103 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
1104 __glTexParameterfv_size(pname
));
1106 glTexParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1110 __glXDispSwap_TexParameteri(GLbyte
* pc
)
1112 glTexParameteri((GLenum
) bswap_ENUM(pc
+ 0),
1113 (GLenum
) bswap_ENUM(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
1117 __glXDispSwap_TexParameteriv(GLbyte
* pc
)
1119 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1120 const GLint
*params
;
1123 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
1124 __glTexParameteriv_size(pname
));
1126 glTexParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1130 __glXDispSwap_TexImage1D(GLbyte
* pc
)
1132 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 52));
1133 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
1135 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
1136 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
1137 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
1138 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
1139 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
1140 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
1141 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
1143 glTexImage1D((GLenum
) bswap_ENUM(pc
+ 20),
1144 (GLint
) bswap_CARD32(pc
+ 24),
1145 (GLint
) bswap_CARD32(pc
+ 28),
1146 (GLsizei
) bswap_CARD32(pc
+ 32),
1147 (GLint
) bswap_CARD32(pc
+ 40),
1148 (GLenum
) bswap_ENUM(pc
+ 44),
1149 (GLenum
) bswap_ENUM(pc
+ 48), pixels
);
1153 __glXDispSwap_TexImage2D(GLbyte
* pc
)
1155 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 52));
1156 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
1158 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
1159 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
1160 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
1161 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
1162 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
1163 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
1164 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
1166 glTexImage2D((GLenum
) bswap_ENUM(pc
+ 20),
1167 (GLint
) bswap_CARD32(pc
+ 24),
1168 (GLint
) bswap_CARD32(pc
+ 28),
1169 (GLsizei
) bswap_CARD32(pc
+ 32),
1170 (GLsizei
) bswap_CARD32(pc
+ 36),
1171 (GLint
) bswap_CARD32(pc
+ 40),
1172 (GLenum
) bswap_ENUM(pc
+ 44),
1173 (GLenum
) bswap_ENUM(pc
+ 48), pixels
);
1177 __glXDispSwap_TexEnvf(GLbyte
* pc
)
1179 glTexEnvf((GLenum
) bswap_ENUM(pc
+ 0),
1180 (GLenum
) bswap_ENUM(pc
+ 4), (GLfloat
) bswap_FLOAT32(pc
+ 8));
1184 __glXDispSwap_TexEnvfv(GLbyte
* pc
)
1186 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1187 const GLfloat
*params
;
1190 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
1191 __glTexEnvfv_size(pname
));
1193 glTexEnvfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1197 __glXDispSwap_TexEnvi(GLbyte
* pc
)
1199 glTexEnvi((GLenum
) bswap_ENUM(pc
+ 0),
1200 (GLenum
) bswap_ENUM(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
1204 __glXDispSwap_TexEnviv(GLbyte
* pc
)
1206 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1207 const GLint
*params
;
1210 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
1211 __glTexEnviv_size(pname
));
1213 glTexEnviv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1217 __glXDispSwap_TexGend(GLbyte
* pc
)
1219 #ifdef __GLX_ALIGN64
1220 if ((unsigned long) (pc
) & 7) {
1221 (void) memmove(pc
- 4, pc
, 16);
1226 glTexGend((GLenum
) bswap_ENUM(pc
+ 8),
1227 (GLenum
) bswap_ENUM(pc
+ 12), (GLdouble
) bswap_FLOAT64(pc
+ 0));
1231 __glXDispSwap_TexGendv(GLbyte
* pc
)
1233 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1234 const GLdouble
*params
;
1236 #ifdef __GLX_ALIGN64
1237 const GLuint compsize
= __glTexGendv_size(pname
);
1238 const GLuint cmdlen
= 12 + __GLX_PAD((compsize
* 8)) - 4;
1240 if ((unsigned long) (pc
) & 7) {
1241 (void) memmove(pc
- 4, pc
, cmdlen
);
1247 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 8),
1248 __glTexGendv_size(pname
));
1250 glTexGendv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1254 __glXDispSwap_TexGenf(GLbyte
* pc
)
1256 glTexGenf((GLenum
) bswap_ENUM(pc
+ 0),
1257 (GLenum
) bswap_ENUM(pc
+ 4), (GLfloat
) bswap_FLOAT32(pc
+ 8));
1261 __glXDispSwap_TexGenfv(GLbyte
* pc
)
1263 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1264 const GLfloat
*params
;
1267 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
1268 __glTexGenfv_size(pname
));
1270 glTexGenfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1274 __glXDispSwap_TexGeni(GLbyte
* pc
)
1276 glTexGeni((GLenum
) bswap_ENUM(pc
+ 0),
1277 (GLenum
) bswap_ENUM(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
1281 __glXDispSwap_TexGeniv(GLbyte
* pc
)
1283 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1284 const GLint
*params
;
1287 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
1288 __glTexGeniv_size(pname
));
1290 glTexGeniv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1294 __glXDispSwap_InitNames(GLbyte
* pc
)
1300 __glXDispSwap_LoadName(GLbyte
* pc
)
1302 glLoadName((GLuint
) bswap_CARD32(pc
+ 0));
1306 __glXDispSwap_PassThrough(GLbyte
* pc
)
1308 glPassThrough((GLfloat
) bswap_FLOAT32(pc
+ 0));
1312 __glXDispSwap_PopName(GLbyte
* pc
)
1318 __glXDispSwap_PushName(GLbyte
* pc
)
1320 glPushName((GLuint
) bswap_CARD32(pc
+ 0));
1324 __glXDispSwap_DrawBuffer(GLbyte
* pc
)
1326 glDrawBuffer((GLenum
) bswap_ENUM(pc
+ 0));
1330 __glXDispSwap_Clear(GLbyte
* pc
)
1332 glClear((GLbitfield
) bswap_CARD32(pc
+ 0));
1336 __glXDispSwap_ClearAccum(GLbyte
* pc
)
1338 glClearAccum((GLfloat
) bswap_FLOAT32(pc
+ 0),
1339 (GLfloat
) bswap_FLOAT32(pc
+ 4),
1340 (GLfloat
) bswap_FLOAT32(pc
+ 8),
1341 (GLfloat
) bswap_FLOAT32(pc
+ 12));
1345 __glXDispSwap_ClearIndex(GLbyte
* pc
)
1347 glClearIndex((GLfloat
) bswap_FLOAT32(pc
+ 0));
1351 __glXDispSwap_ClearColor(GLbyte
* pc
)
1353 glClearColor((GLclampf
) bswap_FLOAT32(pc
+ 0),
1354 (GLclampf
) bswap_FLOAT32(pc
+ 4),
1355 (GLclampf
) bswap_FLOAT32(pc
+ 8),
1356 (GLclampf
) bswap_FLOAT32(pc
+ 12));
1360 __glXDispSwap_ClearStencil(GLbyte
* pc
)
1362 glClearStencil((GLint
) bswap_CARD32(pc
+ 0));
1366 __glXDispSwap_ClearDepth(GLbyte
* pc
)
1368 #ifdef __GLX_ALIGN64
1369 if ((unsigned long) (pc
) & 7) {
1370 (void) memmove(pc
- 4, pc
, 8);
1375 glClearDepth((GLclampd
) bswap_FLOAT64(pc
+ 0));
1379 __glXDispSwap_StencilMask(GLbyte
* pc
)
1381 glStencilMask((GLuint
) bswap_CARD32(pc
+ 0));
1385 __glXDispSwap_ColorMask(GLbyte
* pc
)
1387 glColorMask(*(GLboolean
*) (pc
+ 0),
1388 *(GLboolean
*) (pc
+ 1),
1389 *(GLboolean
*) (pc
+ 2), *(GLboolean
*) (pc
+ 3));
1393 __glXDispSwap_DepthMask(GLbyte
* pc
)
1395 glDepthMask(*(GLboolean
*) (pc
+ 0));
1399 __glXDispSwap_IndexMask(GLbyte
* pc
)
1401 glIndexMask((GLuint
) bswap_CARD32(pc
+ 0));
1405 __glXDispSwap_Accum(GLbyte
* pc
)
1407 glAccum((GLenum
) bswap_ENUM(pc
+ 0), (GLfloat
) bswap_FLOAT32(pc
+ 4));
1411 __glXDispSwap_Disable(GLbyte
* pc
)
1413 glDisable((GLenum
) bswap_ENUM(pc
+ 0));
1417 __glXDispSwap_Enable(GLbyte
* pc
)
1419 glEnable((GLenum
) bswap_ENUM(pc
+ 0));
1423 __glXDispSwap_PopAttrib(GLbyte
* pc
)
1429 __glXDispSwap_PushAttrib(GLbyte
* pc
)
1431 glPushAttrib((GLbitfield
) bswap_CARD32(pc
+ 0));
1435 __glXDispSwap_MapGrid1d(GLbyte
* pc
)
1437 #ifdef __GLX_ALIGN64
1438 if ((unsigned long) (pc
) & 7) {
1439 (void) memmove(pc
- 4, pc
, 20);
1444 glMapGrid1d((GLint
) bswap_CARD32(pc
+ 16),
1445 (GLdouble
) bswap_FLOAT64(pc
+ 0),
1446 (GLdouble
) bswap_FLOAT64(pc
+ 8));
1450 __glXDispSwap_MapGrid1f(GLbyte
* pc
)
1452 glMapGrid1f((GLint
) bswap_CARD32(pc
+ 0),
1453 (GLfloat
) bswap_FLOAT32(pc
+ 4),
1454 (GLfloat
) bswap_FLOAT32(pc
+ 8));
1458 __glXDispSwap_MapGrid2d(GLbyte
* pc
)
1460 #ifdef __GLX_ALIGN64
1461 if ((unsigned long) (pc
) & 7) {
1462 (void) memmove(pc
- 4, pc
, 40);
1467 glMapGrid2d((GLint
) bswap_CARD32(pc
+ 32),
1468 (GLdouble
) bswap_FLOAT64(pc
+ 0),
1469 (GLdouble
) bswap_FLOAT64(pc
+ 8),
1470 (GLint
) bswap_CARD32(pc
+ 36),
1471 (GLdouble
) bswap_FLOAT64(pc
+ 16),
1472 (GLdouble
) bswap_FLOAT64(pc
+ 24));
1476 __glXDispSwap_MapGrid2f(GLbyte
* pc
)
1478 glMapGrid2f((GLint
) bswap_CARD32(pc
+ 0),
1479 (GLfloat
) bswap_FLOAT32(pc
+ 4),
1480 (GLfloat
) bswap_FLOAT32(pc
+ 8),
1481 (GLint
) bswap_CARD32(pc
+ 12),
1482 (GLfloat
) bswap_FLOAT32(pc
+ 16),
1483 (GLfloat
) bswap_FLOAT32(pc
+ 20));
1487 __glXDispSwap_EvalCoord1dv(GLbyte
* pc
)
1489 #ifdef __GLX_ALIGN64
1490 if ((unsigned long) (pc
) & 7) {
1491 (void) memmove(pc
- 4, pc
, 8);
1496 glEvalCoord1dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 1));
1500 __glXDispSwap_EvalCoord1fv(GLbyte
* pc
)
1502 glEvalCoord1fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
1506 __glXDispSwap_EvalCoord2dv(GLbyte
* pc
)
1508 #ifdef __GLX_ALIGN64
1509 if ((unsigned long) (pc
) & 7) {
1510 (void) memmove(pc
- 4, pc
, 16);
1515 glEvalCoord2dv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 2));
1519 __glXDispSwap_EvalCoord2fv(GLbyte
* pc
)
1521 glEvalCoord2fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 2));
1525 __glXDispSwap_EvalMesh1(GLbyte
* pc
)
1527 glEvalMesh1((GLenum
) bswap_ENUM(pc
+ 0),
1528 (GLint
) bswap_CARD32(pc
+ 4), (GLint
) bswap_CARD32(pc
+ 8));
1532 __glXDispSwap_EvalPoint1(GLbyte
* pc
)
1534 glEvalPoint1((GLint
) bswap_CARD32(pc
+ 0));
1538 __glXDispSwap_EvalMesh2(GLbyte
* pc
)
1540 glEvalMesh2((GLenum
) bswap_ENUM(pc
+ 0),
1541 (GLint
) bswap_CARD32(pc
+ 4),
1542 (GLint
) bswap_CARD32(pc
+ 8),
1543 (GLint
) bswap_CARD32(pc
+ 12), (GLint
) bswap_CARD32(pc
+ 16));
1547 __glXDispSwap_EvalPoint2(GLbyte
* pc
)
1549 glEvalPoint2((GLint
) bswap_CARD32(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4));
1553 __glXDispSwap_AlphaFunc(GLbyte
* pc
)
1555 glAlphaFunc((GLenum
) bswap_ENUM(pc
+ 0), (GLclampf
) bswap_FLOAT32(pc
+ 4));
1559 __glXDispSwap_BlendFunc(GLbyte
* pc
)
1561 glBlendFunc((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
1565 __glXDispSwap_LogicOp(GLbyte
* pc
)
1567 glLogicOp((GLenum
) bswap_ENUM(pc
+ 0));
1571 __glXDispSwap_StencilFunc(GLbyte
* pc
)
1573 glStencilFunc((GLenum
) bswap_ENUM(pc
+ 0),
1574 (GLint
) bswap_CARD32(pc
+ 4), (GLuint
) bswap_CARD32(pc
+ 8));
1578 __glXDispSwap_StencilOp(GLbyte
* pc
)
1580 glStencilOp((GLenum
) bswap_ENUM(pc
+ 0),
1581 (GLenum
) bswap_ENUM(pc
+ 4), (GLenum
) bswap_ENUM(pc
+ 8));
1585 __glXDispSwap_DepthFunc(GLbyte
* pc
)
1587 glDepthFunc((GLenum
) bswap_ENUM(pc
+ 0));
1591 __glXDispSwap_PixelZoom(GLbyte
* pc
)
1593 glPixelZoom((GLfloat
) bswap_FLOAT32(pc
+ 0),
1594 (GLfloat
) bswap_FLOAT32(pc
+ 4));
1598 __glXDispSwap_PixelTransferf(GLbyte
* pc
)
1600 glPixelTransferf((GLenum
) bswap_ENUM(pc
+ 0),
1601 (GLfloat
) bswap_FLOAT32(pc
+ 4));
1605 __glXDispSwap_PixelTransferi(GLbyte
* pc
)
1607 glPixelTransferi((GLenum
) bswap_ENUM(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4));
1611 __glXDispSwap_PixelStoref(__GLXclientState
* cl
, GLbyte
* pc
)
1613 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1615 __GLXcontext
*const cx
=
1616 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1618 pc
+= __GLX_SINGLE_HDR_SIZE
;
1620 glPixelStoref((GLenum
) bswap_ENUM(pc
+ 0),
1621 (GLfloat
) bswap_FLOAT32(pc
+ 4));
1629 __glXDispSwap_PixelStorei(__GLXclientState
* cl
, GLbyte
* pc
)
1631 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1633 __GLXcontext
*const cx
=
1634 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1636 pc
+= __GLX_SINGLE_HDR_SIZE
;
1638 glPixelStorei((GLenum
) bswap_ENUM(pc
+ 0),
1639 (GLint
) bswap_CARD32(pc
+ 4));
1647 __glXDispSwap_PixelMapfv(GLbyte
* pc
)
1649 const GLsizei mapsize
= (GLsizei
) bswap_CARD32(pc
+ 4);
1651 glPixelMapfv((GLenum
) bswap_ENUM(pc
+ 0),
1653 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8), 0));
1657 __glXDispSwap_PixelMapuiv(GLbyte
* pc
)
1659 const GLsizei mapsize
= (GLsizei
) bswap_CARD32(pc
+ 4);
1661 glPixelMapuiv((GLenum
) bswap_ENUM(pc
+ 0),
1663 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 8), 0));
1667 __glXDispSwap_PixelMapusv(GLbyte
* pc
)
1669 const GLsizei mapsize
= (GLsizei
) bswap_CARD32(pc
+ 4);
1671 glPixelMapusv((GLenum
) bswap_ENUM(pc
+ 0),
1673 (const GLushort
*) bswap_16_array((uint16_t *) (pc
+ 8), 0));
1677 __glXDispSwap_ReadBuffer(GLbyte
* pc
)
1679 glReadBuffer((GLenum
) bswap_ENUM(pc
+ 0));
1683 __glXDispSwap_CopyPixels(GLbyte
* pc
)
1685 glCopyPixels((GLint
) bswap_CARD32(pc
+ 0),
1686 (GLint
) bswap_CARD32(pc
+ 4),
1687 (GLsizei
) bswap_CARD32(pc
+ 8),
1688 (GLsizei
) bswap_CARD32(pc
+ 12), (GLenum
) bswap_ENUM(pc
+ 16));
1692 __glXDispSwap_DrawPixels(GLbyte
* pc
)
1694 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 36));
1695 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
1697 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
1698 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
1699 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
1700 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
1701 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
1702 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
1703 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
1705 glDrawPixels((GLsizei
) bswap_CARD32(pc
+ 20),
1706 (GLsizei
) bswap_CARD32(pc
+ 24),
1707 (GLenum
) bswap_ENUM(pc
+ 28),
1708 (GLenum
) bswap_ENUM(pc
+ 32), pixels
);
1712 __glXDispSwap_GetBooleanv(__GLXclientState
* cl
, GLbyte
* pc
)
1714 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1716 __GLXcontext
*const cx
=
1717 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1719 pc
+= __GLX_SINGLE_HDR_SIZE
;
1721 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
1723 const GLuint compsize
= __glGetBooleanv_size(pname
);
1724 GLboolean answerBuffer
[200];
1726 __glXGetAnswerBuffer(cl
, compsize
, answerBuffer
,
1727 sizeof(answerBuffer
), 1);
1731 __glXClearErrorOccured();
1733 glGetBooleanv(pname
, params
);
1734 __glXSendReplySwap(cl
->client
, params
, compsize
, 1, GL_FALSE
, 0);
1742 __glXDispSwap_GetClipPlane(__GLXclientState
* cl
, GLbyte
* pc
)
1744 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1746 __GLXcontext
*const cx
=
1747 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1749 pc
+= __GLX_SINGLE_HDR_SIZE
;
1751 GLdouble equation
[4];
1753 glGetClipPlane((GLenum
) bswap_ENUM(pc
+ 0), equation
);
1754 (void) bswap_64_array((uint64_t *) equation
, 4);
1755 __glXSendReplySwap(cl
->client
, equation
, 4, 8, GL_TRUE
, 0);
1763 __glXDispSwap_GetDoublev(__GLXclientState
* cl
, GLbyte
* pc
)
1765 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1767 __GLXcontext
*const cx
=
1768 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1770 pc
+= __GLX_SINGLE_HDR_SIZE
;
1772 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
1774 const GLuint compsize
= __glGetDoublev_size(pname
);
1775 GLdouble answerBuffer
[200];
1777 __glXGetAnswerBuffer(cl
, compsize
* 8, answerBuffer
,
1778 sizeof(answerBuffer
), 8);
1782 __glXClearErrorOccured();
1784 glGetDoublev(pname
, params
);
1785 (void) bswap_64_array((uint64_t *) params
, compsize
);
1786 __glXSendReplySwap(cl
->client
, params
, compsize
, 8, GL_FALSE
, 0);
1794 __glXDispSwap_GetError(__GLXclientState
* cl
, GLbyte
* pc
)
1796 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1798 __GLXcontext
*const cx
=
1799 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1801 pc
+= __GLX_SINGLE_HDR_SIZE
;
1805 retval
= glGetError();
1806 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
1814 __glXDispSwap_GetFloatv(__GLXclientState
* cl
, GLbyte
* pc
)
1816 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1818 __GLXcontext
*const cx
=
1819 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1821 pc
+= __GLX_SINGLE_HDR_SIZE
;
1823 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
1825 const GLuint compsize
= __glGetFloatv_size(pname
);
1826 GLfloat answerBuffer
[200];
1828 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
1829 sizeof(answerBuffer
), 4);
1833 __glXClearErrorOccured();
1835 glGetFloatv(pname
, params
);
1836 (void) bswap_32_array((uint32_t *) params
, compsize
);
1837 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
1845 __glXDispSwap_GetIntegerv(__GLXclientState
* cl
, GLbyte
* pc
)
1847 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1849 __GLXcontext
*const cx
=
1850 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1852 pc
+= __GLX_SINGLE_HDR_SIZE
;
1854 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
1856 const GLuint compsize
= __glGetIntegerv_size(pname
);
1857 GLint answerBuffer
[200];
1859 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
1860 sizeof(answerBuffer
), 4);
1864 __glXClearErrorOccured();
1866 glGetIntegerv(pname
, params
);
1867 (void) bswap_32_array((uint32_t *) params
, compsize
);
1868 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
1876 __glXDispSwap_GetLightfv(__GLXclientState
* cl
, GLbyte
* pc
)
1878 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1880 __GLXcontext
*const cx
=
1881 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1883 pc
+= __GLX_SINGLE_HDR_SIZE
;
1885 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1887 const GLuint compsize
= __glGetLightfv_size(pname
);
1888 GLfloat answerBuffer
[200];
1890 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
1891 sizeof(answerBuffer
), 4);
1895 __glXClearErrorOccured();
1897 glGetLightfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1898 (void) bswap_32_array((uint32_t *) params
, compsize
);
1899 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
1907 __glXDispSwap_GetLightiv(__GLXclientState
* cl
, GLbyte
* pc
)
1909 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1911 __GLXcontext
*const cx
=
1912 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1914 pc
+= __GLX_SINGLE_HDR_SIZE
;
1916 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
1918 const GLuint compsize
= __glGetLightiv_size(pname
);
1919 GLint answerBuffer
[200];
1921 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
1922 sizeof(answerBuffer
), 4);
1926 __glXClearErrorOccured();
1928 glGetLightiv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
1929 (void) bswap_32_array((uint32_t *) params
, compsize
);
1930 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
1938 __glXDispSwap_GetMapdv(__GLXclientState
* cl
, GLbyte
* pc
)
1940 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1942 __GLXcontext
*const cx
=
1943 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1945 pc
+= __GLX_SINGLE_HDR_SIZE
;
1947 const GLenum target
= (GLenum
) bswap_ENUM(pc
+ 0);
1948 const GLenum query
= (GLenum
) bswap_ENUM(pc
+ 4);
1950 const GLuint compsize
= __glGetMapdv_size(target
, query
);
1951 GLdouble answerBuffer
[200];
1953 __glXGetAnswerBuffer(cl
, compsize
* 8, answerBuffer
,
1954 sizeof(answerBuffer
), 8);
1958 __glXClearErrorOccured();
1960 glGetMapdv(target
, query
, v
);
1961 (void) bswap_64_array((uint64_t *) v
, compsize
);
1962 __glXSendReplySwap(cl
->client
, v
, compsize
, 8, GL_FALSE
, 0);
1970 __glXDispSwap_GetMapfv(__GLXclientState
* cl
, GLbyte
* pc
)
1972 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
1974 __GLXcontext
*const cx
=
1975 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
1977 pc
+= __GLX_SINGLE_HDR_SIZE
;
1979 const GLenum target
= (GLenum
) bswap_ENUM(pc
+ 0);
1980 const GLenum query
= (GLenum
) bswap_ENUM(pc
+ 4);
1982 const GLuint compsize
= __glGetMapfv_size(target
, query
);
1983 GLfloat answerBuffer
[200];
1985 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
1986 sizeof(answerBuffer
), 4);
1990 __glXClearErrorOccured();
1992 glGetMapfv(target
, query
, v
);
1993 (void) bswap_32_array((uint32_t *) v
, compsize
);
1994 __glXSendReplySwap(cl
->client
, v
, compsize
, 4, GL_FALSE
, 0);
2002 __glXDispSwap_GetMapiv(__GLXclientState
* cl
, GLbyte
* pc
)
2004 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2006 __GLXcontext
*const cx
=
2007 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2009 pc
+= __GLX_SINGLE_HDR_SIZE
;
2011 const GLenum target
= (GLenum
) bswap_ENUM(pc
+ 0);
2012 const GLenum query
= (GLenum
) bswap_ENUM(pc
+ 4);
2014 const GLuint compsize
= __glGetMapiv_size(target
, query
);
2015 GLint answerBuffer
[200];
2017 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2018 sizeof(answerBuffer
), 4);
2022 __glXClearErrorOccured();
2024 glGetMapiv(target
, query
, v
);
2025 (void) bswap_32_array((uint32_t *) v
, compsize
);
2026 __glXSendReplySwap(cl
->client
, v
, compsize
, 4, GL_FALSE
, 0);
2034 __glXDispSwap_GetMaterialfv(__GLXclientState
* cl
, GLbyte
* pc
)
2036 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2038 __GLXcontext
*const cx
=
2039 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2041 pc
+= __GLX_SINGLE_HDR_SIZE
;
2043 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2045 const GLuint compsize
= __glGetMaterialfv_size(pname
);
2046 GLfloat answerBuffer
[200];
2048 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2049 sizeof(answerBuffer
), 4);
2053 __glXClearErrorOccured();
2055 glGetMaterialfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2056 (void) bswap_32_array((uint32_t *) params
, compsize
);
2057 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2065 __glXDispSwap_GetMaterialiv(__GLXclientState
* cl
, GLbyte
* pc
)
2067 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2069 __GLXcontext
*const cx
=
2070 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2072 pc
+= __GLX_SINGLE_HDR_SIZE
;
2074 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2076 const GLuint compsize
= __glGetMaterialiv_size(pname
);
2077 GLint answerBuffer
[200];
2079 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2080 sizeof(answerBuffer
), 4);
2084 __glXClearErrorOccured();
2086 glGetMaterialiv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2087 (void) bswap_32_array((uint32_t *) params
, compsize
);
2088 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2096 __glXDispSwap_GetPixelMapfv(__GLXclientState
* cl
, GLbyte
* pc
)
2098 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2100 __GLXcontext
*const cx
=
2101 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2103 pc
+= __GLX_SINGLE_HDR_SIZE
;
2105 const GLenum map
= (GLenum
) bswap_ENUM(pc
+ 0);
2107 const GLuint compsize
= __glGetPixelMapfv_size(map
);
2108 GLfloat answerBuffer
[200];
2110 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2111 sizeof(answerBuffer
), 4);
2115 __glXClearErrorOccured();
2117 glGetPixelMapfv(map
, values
);
2118 (void) bswap_32_array((uint32_t *) values
, compsize
);
2119 __glXSendReplySwap(cl
->client
, values
, compsize
, 4, GL_FALSE
, 0);
2127 __glXDispSwap_GetPixelMapuiv(__GLXclientState
* cl
, GLbyte
* pc
)
2129 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2131 __GLXcontext
*const cx
=
2132 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2134 pc
+= __GLX_SINGLE_HDR_SIZE
;
2136 const GLenum map
= (GLenum
) bswap_ENUM(pc
+ 0);
2138 const GLuint compsize
= __glGetPixelMapuiv_size(map
);
2139 GLuint answerBuffer
[200];
2141 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2142 sizeof(answerBuffer
), 4);
2146 __glXClearErrorOccured();
2148 glGetPixelMapuiv(map
, values
);
2149 (void) bswap_32_array((uint32_t *) values
, compsize
);
2150 __glXSendReplySwap(cl
->client
, values
, compsize
, 4, GL_FALSE
, 0);
2158 __glXDispSwap_GetPixelMapusv(__GLXclientState
* cl
, GLbyte
* pc
)
2160 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2162 __GLXcontext
*const cx
=
2163 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2165 pc
+= __GLX_SINGLE_HDR_SIZE
;
2167 const GLenum map
= (GLenum
) bswap_ENUM(pc
+ 0);
2169 const GLuint compsize
= __glGetPixelMapusv_size(map
);
2170 GLushort answerBuffer
[200];
2172 __glXGetAnswerBuffer(cl
, compsize
* 2, answerBuffer
,
2173 sizeof(answerBuffer
), 2);
2177 __glXClearErrorOccured();
2179 glGetPixelMapusv(map
, values
);
2180 (void) bswap_16_array((uint16_t *) values
, compsize
);
2181 __glXSendReplySwap(cl
->client
, values
, compsize
, 2, GL_FALSE
, 0);
2189 __glXDispSwap_GetTexEnvfv(__GLXclientState
* cl
, GLbyte
* pc
)
2191 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2193 __GLXcontext
*const cx
=
2194 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2196 pc
+= __GLX_SINGLE_HDR_SIZE
;
2198 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2200 const GLuint compsize
= __glGetTexEnvfv_size(pname
);
2201 GLfloat answerBuffer
[200];
2203 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2204 sizeof(answerBuffer
), 4);
2208 __glXClearErrorOccured();
2210 glGetTexEnvfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2211 (void) bswap_32_array((uint32_t *) params
, compsize
);
2212 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2220 __glXDispSwap_GetTexEnviv(__GLXclientState
* cl
, GLbyte
* pc
)
2222 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2224 __GLXcontext
*const cx
=
2225 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2227 pc
+= __GLX_SINGLE_HDR_SIZE
;
2229 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2231 const GLuint compsize
= __glGetTexEnviv_size(pname
);
2232 GLint answerBuffer
[200];
2234 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2235 sizeof(answerBuffer
), 4);
2239 __glXClearErrorOccured();
2241 glGetTexEnviv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2242 (void) bswap_32_array((uint32_t *) params
, compsize
);
2243 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2251 __glXDispSwap_GetTexGendv(__GLXclientState
* cl
, GLbyte
* pc
)
2253 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2255 __GLXcontext
*const cx
=
2256 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2258 pc
+= __GLX_SINGLE_HDR_SIZE
;
2260 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2262 const GLuint compsize
= __glGetTexGendv_size(pname
);
2263 GLdouble answerBuffer
[200];
2265 __glXGetAnswerBuffer(cl
, compsize
* 8, answerBuffer
,
2266 sizeof(answerBuffer
), 8);
2270 __glXClearErrorOccured();
2272 glGetTexGendv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2273 (void) bswap_64_array((uint64_t *) params
, compsize
);
2274 __glXSendReplySwap(cl
->client
, params
, compsize
, 8, GL_FALSE
, 0);
2282 __glXDispSwap_GetTexGenfv(__GLXclientState
* cl
, GLbyte
* pc
)
2284 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2286 __GLXcontext
*const cx
=
2287 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2289 pc
+= __GLX_SINGLE_HDR_SIZE
;
2291 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2293 const GLuint compsize
= __glGetTexGenfv_size(pname
);
2294 GLfloat answerBuffer
[200];
2296 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2297 sizeof(answerBuffer
), 4);
2301 __glXClearErrorOccured();
2303 glGetTexGenfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2304 (void) bswap_32_array((uint32_t *) params
, compsize
);
2305 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2313 __glXDispSwap_GetTexGeniv(__GLXclientState
* cl
, GLbyte
* pc
)
2315 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2317 __GLXcontext
*const cx
=
2318 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2320 pc
+= __GLX_SINGLE_HDR_SIZE
;
2322 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2324 const GLuint compsize
= __glGetTexGeniv_size(pname
);
2325 GLint answerBuffer
[200];
2327 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2328 sizeof(answerBuffer
), 4);
2332 __glXClearErrorOccured();
2334 glGetTexGeniv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2335 (void) bswap_32_array((uint32_t *) params
, compsize
);
2336 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2344 __glXDispSwap_GetTexParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
2346 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2348 __GLXcontext
*const cx
=
2349 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2351 pc
+= __GLX_SINGLE_HDR_SIZE
;
2353 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2355 const GLuint compsize
= __glGetTexParameterfv_size(pname
);
2356 GLfloat answerBuffer
[200];
2358 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2359 sizeof(answerBuffer
), 4);
2363 __glXClearErrorOccured();
2365 glGetTexParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2366 (void) bswap_32_array((uint32_t *) params
, compsize
);
2367 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2375 __glXDispSwap_GetTexParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
2377 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2379 __GLXcontext
*const cx
=
2380 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2382 pc
+= __GLX_SINGLE_HDR_SIZE
;
2384 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
2386 const GLuint compsize
= __glGetTexParameteriv_size(pname
);
2387 GLint answerBuffer
[200];
2389 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2390 sizeof(answerBuffer
), 4);
2394 __glXClearErrorOccured();
2396 glGetTexParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
2397 (void) bswap_32_array((uint32_t *) params
, compsize
);
2398 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2406 __glXDispSwap_GetTexLevelParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
2408 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2410 __GLXcontext
*const cx
=
2411 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2413 pc
+= __GLX_SINGLE_HDR_SIZE
;
2415 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 8);
2417 const GLuint compsize
= __glGetTexLevelParameterfv_size(pname
);
2418 GLfloat answerBuffer
[200];
2420 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2421 sizeof(answerBuffer
), 4);
2425 __glXClearErrorOccured();
2427 glGetTexLevelParameterfv((GLenum
) bswap_ENUM(pc
+ 0),
2428 (GLint
) bswap_CARD32(pc
+ 4), pname
, params
);
2429 (void) bswap_32_array((uint32_t *) params
, compsize
);
2430 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2438 __glXDispSwap_GetTexLevelParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
2440 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2442 __GLXcontext
*const cx
=
2443 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2445 pc
+= __GLX_SINGLE_HDR_SIZE
;
2447 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 8);
2449 const GLuint compsize
= __glGetTexLevelParameteriv_size(pname
);
2450 GLint answerBuffer
[200];
2452 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
2453 sizeof(answerBuffer
), 4);
2457 __glXClearErrorOccured();
2459 glGetTexLevelParameteriv((GLenum
) bswap_ENUM(pc
+ 0),
2460 (GLint
) bswap_CARD32(pc
+ 4), pname
, params
);
2461 (void) bswap_32_array((uint32_t *) params
, compsize
);
2462 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
2470 __glXDispSwap_IsEnabled(__GLXclientState
* cl
, GLbyte
* pc
)
2472 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2474 __GLXcontext
*const cx
=
2475 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2477 pc
+= __GLX_SINGLE_HDR_SIZE
;
2481 retval
= glIsEnabled((GLenum
) bswap_ENUM(pc
+ 0));
2482 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
2490 __glXDispSwap_IsList(__GLXclientState
* cl
, GLbyte
* pc
)
2492 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2494 __GLXcontext
*const cx
=
2495 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2497 pc
+= __GLX_SINGLE_HDR_SIZE
;
2501 retval
= glIsList((GLuint
) bswap_CARD32(pc
+ 0));
2502 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
2510 __glXDispSwap_DepthRange(GLbyte
* pc
)
2512 #ifdef __GLX_ALIGN64
2513 if ((unsigned long) (pc
) & 7) {
2514 (void) memmove(pc
- 4, pc
, 16);
2519 glDepthRange((GLclampd
) bswap_FLOAT64(pc
+ 0),
2520 (GLclampd
) bswap_FLOAT64(pc
+ 8));
2524 __glXDispSwap_Frustum(GLbyte
* pc
)
2526 #ifdef __GLX_ALIGN64
2527 if ((unsigned long) (pc
) & 7) {
2528 (void) memmove(pc
- 4, pc
, 48);
2533 glFrustum((GLdouble
) bswap_FLOAT64(pc
+ 0),
2534 (GLdouble
) bswap_FLOAT64(pc
+ 8),
2535 (GLdouble
) bswap_FLOAT64(pc
+ 16),
2536 (GLdouble
) bswap_FLOAT64(pc
+ 24),
2537 (GLdouble
) bswap_FLOAT64(pc
+ 32),
2538 (GLdouble
) bswap_FLOAT64(pc
+ 40));
2542 __glXDispSwap_LoadIdentity(GLbyte
* pc
)
2548 __glXDispSwap_LoadMatrixf(GLbyte
* pc
)
2550 glLoadMatrixf((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 16));
2554 __glXDispSwap_LoadMatrixd(GLbyte
* pc
)
2556 #ifdef __GLX_ALIGN64
2557 if ((unsigned long) (pc
) & 7) {
2558 (void) memmove(pc
- 4, pc
, 128);
2563 glLoadMatrixd((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 16));
2567 __glXDispSwap_MatrixMode(GLbyte
* pc
)
2569 glMatrixMode((GLenum
) bswap_ENUM(pc
+ 0));
2573 __glXDispSwap_MultMatrixf(GLbyte
* pc
)
2575 glMultMatrixf((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 16));
2579 __glXDispSwap_MultMatrixd(GLbyte
* pc
)
2581 #ifdef __GLX_ALIGN64
2582 if ((unsigned long) (pc
) & 7) {
2583 (void) memmove(pc
- 4, pc
, 128);
2588 glMultMatrixd((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 16));
2592 __glXDispSwap_Ortho(GLbyte
* pc
)
2594 #ifdef __GLX_ALIGN64
2595 if ((unsigned long) (pc
) & 7) {
2596 (void) memmove(pc
- 4, pc
, 48);
2601 glOrtho((GLdouble
) bswap_FLOAT64(pc
+ 0),
2602 (GLdouble
) bswap_FLOAT64(pc
+ 8),
2603 (GLdouble
) bswap_FLOAT64(pc
+ 16),
2604 (GLdouble
) bswap_FLOAT64(pc
+ 24),
2605 (GLdouble
) bswap_FLOAT64(pc
+ 32),
2606 (GLdouble
) bswap_FLOAT64(pc
+ 40));
2610 __glXDispSwap_PopMatrix(GLbyte
* pc
)
2616 __glXDispSwap_PushMatrix(GLbyte
* pc
)
2622 __glXDispSwap_Rotated(GLbyte
* pc
)
2624 #ifdef __GLX_ALIGN64
2625 if ((unsigned long) (pc
) & 7) {
2626 (void) memmove(pc
- 4, pc
, 32);
2631 glRotated((GLdouble
) bswap_FLOAT64(pc
+ 0),
2632 (GLdouble
) bswap_FLOAT64(pc
+ 8),
2633 (GLdouble
) bswap_FLOAT64(pc
+ 16),
2634 (GLdouble
) bswap_FLOAT64(pc
+ 24));
2638 __glXDispSwap_Rotatef(GLbyte
* pc
)
2640 glRotatef((GLfloat
) bswap_FLOAT32(pc
+ 0),
2641 (GLfloat
) bswap_FLOAT32(pc
+ 4),
2642 (GLfloat
) bswap_FLOAT32(pc
+ 8),
2643 (GLfloat
) bswap_FLOAT32(pc
+ 12));
2647 __glXDispSwap_Scaled(GLbyte
* pc
)
2649 #ifdef __GLX_ALIGN64
2650 if ((unsigned long) (pc
) & 7) {
2651 (void) memmove(pc
- 4, pc
, 24);
2656 glScaled((GLdouble
) bswap_FLOAT64(pc
+ 0),
2657 (GLdouble
) bswap_FLOAT64(pc
+ 8),
2658 (GLdouble
) bswap_FLOAT64(pc
+ 16));
2662 __glXDispSwap_Scalef(GLbyte
* pc
)
2664 glScalef((GLfloat
) bswap_FLOAT32(pc
+ 0),
2665 (GLfloat
) bswap_FLOAT32(pc
+ 4), (GLfloat
) bswap_FLOAT32(pc
+ 8));
2669 __glXDispSwap_Translated(GLbyte
* pc
)
2671 #ifdef __GLX_ALIGN64
2672 if ((unsigned long) (pc
) & 7) {
2673 (void) memmove(pc
- 4, pc
, 24);
2678 glTranslated((GLdouble
) bswap_FLOAT64(pc
+ 0),
2679 (GLdouble
) bswap_FLOAT64(pc
+ 8),
2680 (GLdouble
) bswap_FLOAT64(pc
+ 16));
2684 __glXDispSwap_Translatef(GLbyte
* pc
)
2686 glTranslatef((GLfloat
) bswap_FLOAT32(pc
+ 0),
2687 (GLfloat
) bswap_FLOAT32(pc
+ 4),
2688 (GLfloat
) bswap_FLOAT32(pc
+ 8));
2692 __glXDispSwap_Viewport(GLbyte
* pc
)
2694 glViewport((GLint
) bswap_CARD32(pc
+ 0),
2695 (GLint
) bswap_CARD32(pc
+ 4),
2696 (GLsizei
) bswap_CARD32(pc
+ 8), (GLsizei
) bswap_CARD32(pc
+ 12));
2700 __glXDispSwap_BindTexture(GLbyte
* pc
)
2702 glBindTexture((GLenum
) bswap_ENUM(pc
+ 0), (GLuint
) bswap_CARD32(pc
+ 4));
2706 __glXDispSwap_Indexubv(GLbyte
* pc
)
2708 glIndexubv((const GLubyte
*) (pc
+ 0));
2712 __glXDispSwap_PolygonOffset(GLbyte
* pc
)
2714 glPolygonOffset((GLfloat
) bswap_FLOAT32(pc
+ 0),
2715 (GLfloat
) bswap_FLOAT32(pc
+ 4));
2719 __glXDispSwap_AreTexturesResident(__GLXclientState
* cl
, GLbyte
* pc
)
2721 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2723 __GLXcontext
*const cx
=
2724 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2726 pc
+= __GLX_SINGLE_HDR_SIZE
;
2728 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2731 GLboolean answerBuffer
[200];
2732 GLboolean
*residences
=
2733 __glXGetAnswerBuffer(cl
, n
, answerBuffer
, sizeof(answerBuffer
), 1);
2735 glAreTexturesResident(n
,
2737 bswap_32_array((uint32_t *) (pc
+ 4), 0),
2739 __glXSendReplySwap(cl
->client
, residences
, n
, 1, GL_TRUE
, retval
);
2747 __glXDispSwap_AreTexturesResidentEXT(__GLXclientState
* cl
, GLbyte
* pc
)
2749 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
2751 __GLXcontext
*const cx
=
2752 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2754 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
2756 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2759 GLboolean answerBuffer
[200];
2760 GLboolean
*residences
=
2761 __glXGetAnswerBuffer(cl
, n
, answerBuffer
, sizeof(answerBuffer
), 1);
2763 glAreTexturesResident(n
,
2765 bswap_32_array((uint32_t *) (pc
+ 4), 0),
2767 __glXSendReplySwap(cl
->client
, residences
, n
, 1, GL_TRUE
, retval
);
2775 __glXDispSwap_CopyTexImage1D(GLbyte
* pc
)
2777 glCopyTexImage1D((GLenum
) bswap_ENUM(pc
+ 0),
2778 (GLint
) bswap_CARD32(pc
+ 4),
2779 (GLenum
) bswap_ENUM(pc
+ 8),
2780 (GLint
) bswap_CARD32(pc
+ 12),
2781 (GLint
) bswap_CARD32(pc
+ 16),
2782 (GLsizei
) bswap_CARD32(pc
+ 20),
2783 (GLint
) bswap_CARD32(pc
+ 24));
2787 __glXDispSwap_CopyTexImage2D(GLbyte
* pc
)
2789 glCopyTexImage2D((GLenum
) bswap_ENUM(pc
+ 0),
2790 (GLint
) bswap_CARD32(pc
+ 4),
2791 (GLenum
) bswap_ENUM(pc
+ 8),
2792 (GLint
) bswap_CARD32(pc
+ 12),
2793 (GLint
) bswap_CARD32(pc
+ 16),
2794 (GLsizei
) bswap_CARD32(pc
+ 20),
2795 (GLsizei
) bswap_CARD32(pc
+ 24),
2796 (GLint
) bswap_CARD32(pc
+ 28));
2800 __glXDispSwap_CopyTexSubImage1D(GLbyte
* pc
)
2802 glCopyTexSubImage1D((GLenum
) bswap_ENUM(pc
+ 0),
2803 (GLint
) bswap_CARD32(pc
+ 4),
2804 (GLint
) bswap_CARD32(pc
+ 8),
2805 (GLint
) bswap_CARD32(pc
+ 12),
2806 (GLint
) bswap_CARD32(pc
+ 16),
2807 (GLsizei
) bswap_CARD32(pc
+ 20));
2811 __glXDispSwap_CopyTexSubImage2D(GLbyte
* pc
)
2813 glCopyTexSubImage2D((GLenum
) bswap_ENUM(pc
+ 0),
2814 (GLint
) bswap_CARD32(pc
+ 4),
2815 (GLint
) bswap_CARD32(pc
+ 8),
2816 (GLint
) bswap_CARD32(pc
+ 12),
2817 (GLint
) bswap_CARD32(pc
+ 16),
2818 (GLint
) bswap_CARD32(pc
+ 20),
2819 (GLsizei
) bswap_CARD32(pc
+ 24),
2820 (GLsizei
) bswap_CARD32(pc
+ 28));
2824 __glXDispSwap_DeleteTextures(__GLXclientState
* cl
, GLbyte
* pc
)
2826 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2828 __GLXcontext
*const cx
=
2829 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2831 pc
+= __GLX_SINGLE_HDR_SIZE
;
2833 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2836 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
2845 __glXDispSwap_DeleteTexturesEXT(__GLXclientState
* cl
, GLbyte
* pc
)
2847 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
2849 __GLXcontext
*const cx
=
2850 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2852 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
2854 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2857 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
2866 __glXDispSwap_GenTextures(__GLXclientState
* cl
, GLbyte
* pc
)
2868 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2870 __GLXcontext
*const cx
=
2871 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2873 pc
+= __GLX_SINGLE_HDR_SIZE
;
2875 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2877 GLuint answerBuffer
[200];
2879 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
2881 glGenTextures(n
, textures
);
2882 (void) bswap_32_array((uint32_t *) textures
, n
);
2883 __glXSendReplySwap(cl
->client
, textures
, n
, 4, GL_TRUE
, 0);
2891 __glXDispSwap_GenTexturesEXT(__GLXclientState
* cl
, GLbyte
* pc
)
2893 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
2895 __GLXcontext
*const cx
=
2896 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2898 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
2900 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2902 GLuint answerBuffer
[200];
2904 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
2906 glGenTextures(n
, textures
);
2907 (void) bswap_32_array((uint32_t *) textures
, n
);
2908 __glXSendReplySwap(cl
->client
, textures
, n
, 4, GL_TRUE
, 0);
2916 __glXDispSwap_IsTexture(__GLXclientState
* cl
, GLbyte
* pc
)
2918 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
2920 __GLXcontext
*const cx
=
2921 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2923 pc
+= __GLX_SINGLE_HDR_SIZE
;
2927 retval
= glIsTexture((GLuint
) bswap_CARD32(pc
+ 0));
2928 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
2936 __glXDispSwap_IsTextureEXT(__GLXclientState
* cl
, GLbyte
* pc
)
2938 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
2940 __GLXcontext
*const cx
=
2941 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
2943 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
2947 retval
= glIsTexture((GLuint
) bswap_CARD32(pc
+ 0));
2948 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
2956 __glXDispSwap_PrioritizeTextures(GLbyte
* pc
)
2958 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
2960 glPrioritizeTextures(n
,
2961 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
2964 bswap_32_array((uint32_t *) (pc
+ 4), 0));
2968 __glXDispSwap_TexSubImage1D(GLbyte
* pc
)
2970 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 56));
2971 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
2973 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
2974 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
2975 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
2976 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
2977 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
2978 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
2979 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
2981 glTexSubImage1D((GLenum
) bswap_ENUM(pc
+ 20),
2982 (GLint
) bswap_CARD32(pc
+ 24),
2983 (GLint
) bswap_CARD32(pc
+ 28),
2984 (GLsizei
) bswap_CARD32(pc
+ 36),
2985 (GLenum
) bswap_ENUM(pc
+ 44),
2986 (GLenum
) bswap_ENUM(pc
+ 48), pixels
);
2990 __glXDispSwap_TexSubImage2D(GLbyte
* pc
)
2992 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 56));
2993 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
2995 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
2996 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
2997 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
2998 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
2999 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3000 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3001 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3003 glTexSubImage2D((GLenum
) bswap_ENUM(pc
+ 20),
3004 (GLint
) bswap_CARD32(pc
+ 24),
3005 (GLint
) bswap_CARD32(pc
+ 28),
3006 (GLint
) bswap_CARD32(pc
+ 32),
3007 (GLsizei
) bswap_CARD32(pc
+ 36),
3008 (GLsizei
) bswap_CARD32(pc
+ 40),
3009 (GLenum
) bswap_ENUM(pc
+ 44),
3010 (GLenum
) bswap_ENUM(pc
+ 48), pixels
);
3014 __glXDispSwap_BlendColor(GLbyte
* pc
)
3016 glBlendColor((GLclampf
) bswap_FLOAT32(pc
+ 0),
3017 (GLclampf
) bswap_FLOAT32(pc
+ 4),
3018 (GLclampf
) bswap_FLOAT32(pc
+ 8),
3019 (GLclampf
) bswap_FLOAT32(pc
+ 12));
3023 __glXDispSwap_BlendEquation(GLbyte
* pc
)
3025 glBlendEquation((GLenum
) bswap_ENUM(pc
+ 0));
3029 __glXDispSwap_ColorTable(GLbyte
* pc
)
3031 const GLvoid
*const table
= (const GLvoid
*) ((pc
+ 40));
3032 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
3034 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3035 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3036 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3037 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3038 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3039 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3040 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3042 glColorTable((GLenum
) bswap_ENUM(pc
+ 20),
3043 (GLenum
) bswap_ENUM(pc
+ 24),
3044 (GLsizei
) bswap_CARD32(pc
+ 28),
3045 (GLenum
) bswap_ENUM(pc
+ 32),
3046 (GLenum
) bswap_ENUM(pc
+ 36), table
);
3050 __glXDispSwap_ColorTableParameterfv(GLbyte
* pc
)
3052 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3053 const GLfloat
*params
;
3056 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
3057 __glColorTableParameterfv_size(pname
));
3059 glColorTableParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3063 __glXDispSwap_ColorTableParameteriv(GLbyte
* pc
)
3065 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3066 const GLint
*params
;
3069 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
3070 __glColorTableParameteriv_size(pname
));
3072 glColorTableParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3076 __glXDispSwap_CopyColorTable(GLbyte
* pc
)
3078 glCopyColorTable((GLenum
) bswap_ENUM(pc
+ 0),
3079 (GLenum
) bswap_ENUM(pc
+ 4),
3080 (GLint
) bswap_CARD32(pc
+ 8),
3081 (GLint
) bswap_CARD32(pc
+ 12),
3082 (GLsizei
) bswap_CARD32(pc
+ 16));
3086 __glXDispSwap_GetColorTableParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
3088 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3090 __GLXcontext
*const cx
=
3091 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3093 pc
+= __GLX_SINGLE_HDR_SIZE
;
3095 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3097 const GLuint compsize
= __glGetColorTableParameterfv_size(pname
);
3098 GLfloat answerBuffer
[200];
3100 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3101 sizeof(answerBuffer
), 4);
3105 __glXClearErrorOccured();
3107 glGetColorTableParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3108 (void) bswap_32_array((uint32_t *) params
, compsize
);
3109 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3117 __glXDispSwap_GetColorTableParameterfvSGI(__GLXclientState
* cl
, GLbyte
* pc
)
3119 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3121 __GLXcontext
*const cx
=
3122 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3124 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3126 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3128 const GLuint compsize
= __glGetColorTableParameterfv_size(pname
);
3129 GLfloat answerBuffer
[200];
3131 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3132 sizeof(answerBuffer
), 4);
3136 __glXClearErrorOccured();
3138 glGetColorTableParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3139 (void) bswap_32_array((uint32_t *) params
, compsize
);
3140 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3148 __glXDispSwap_GetColorTableParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
3150 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3152 __GLXcontext
*const cx
=
3153 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3155 pc
+= __GLX_SINGLE_HDR_SIZE
;
3157 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3159 const GLuint compsize
= __glGetColorTableParameteriv_size(pname
);
3160 GLint answerBuffer
[200];
3162 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3163 sizeof(answerBuffer
), 4);
3167 __glXClearErrorOccured();
3169 glGetColorTableParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3170 (void) bswap_32_array((uint32_t *) params
, compsize
);
3171 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3179 __glXDispSwap_GetColorTableParameterivSGI(__GLXclientState
* cl
, GLbyte
* pc
)
3181 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3183 __GLXcontext
*const cx
=
3184 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3186 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3188 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3190 const GLuint compsize
= __glGetColorTableParameteriv_size(pname
);
3191 GLint answerBuffer
[200];
3193 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3194 sizeof(answerBuffer
), 4);
3198 __glXClearErrorOccured();
3200 glGetColorTableParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3201 (void) bswap_32_array((uint32_t *) params
, compsize
);
3202 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3210 __glXDispSwap_ColorSubTable(GLbyte
* pc
)
3212 const GLvoid
*const data
= (const GLvoid
*) ((pc
+ 40));
3213 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
3215 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3216 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3217 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3218 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3219 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3220 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3221 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3223 glColorSubTable((GLenum
) bswap_ENUM(pc
+ 20),
3224 (GLsizei
) bswap_CARD32(pc
+ 24),
3225 (GLsizei
) bswap_CARD32(pc
+ 28),
3226 (GLenum
) bswap_ENUM(pc
+ 32),
3227 (GLenum
) bswap_ENUM(pc
+ 36), data
);
3231 __glXDispSwap_CopyColorSubTable(GLbyte
* pc
)
3233 glCopyColorSubTable((GLenum
) bswap_ENUM(pc
+ 0),
3234 (GLsizei
) bswap_CARD32(pc
+ 4),
3235 (GLint
) bswap_CARD32(pc
+ 8),
3236 (GLint
) bswap_CARD32(pc
+ 12),
3237 (GLsizei
) bswap_CARD32(pc
+ 16));
3241 __glXDispSwap_ConvolutionFilter1D(GLbyte
* pc
)
3243 const GLvoid
*const image
= (const GLvoid
*) ((pc
+ 44));
3244 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
3246 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3247 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3248 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3249 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3250 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3251 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3252 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3254 glConvolutionFilter1D((GLenum
) bswap_ENUM(pc
+ 20),
3255 (GLenum
) bswap_ENUM(pc
+ 24),
3256 (GLsizei
) bswap_CARD32(pc
+ 28),
3257 (GLenum
) bswap_ENUM(pc
+ 36),
3258 (GLenum
) bswap_ENUM(pc
+ 40), image
);
3262 __glXDispSwap_ConvolutionFilter2D(GLbyte
* pc
)
3264 const GLvoid
*const image
= (const GLvoid
*) ((pc
+ 44));
3265 __GLXpixelHeader
*const hdr
= (__GLXpixelHeader
*) (pc
);
3267 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3268 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3269 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3270 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3271 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3272 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3273 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3275 glConvolutionFilter2D((GLenum
) bswap_ENUM(pc
+ 20),
3276 (GLenum
) bswap_ENUM(pc
+ 24),
3277 (GLsizei
) bswap_CARD32(pc
+ 28),
3278 (GLsizei
) bswap_CARD32(pc
+ 32),
3279 (GLenum
) bswap_ENUM(pc
+ 36),
3280 (GLenum
) bswap_ENUM(pc
+ 40), image
);
3284 __glXDispSwap_ConvolutionParameterf(GLbyte
* pc
)
3286 glConvolutionParameterf((GLenum
) bswap_ENUM(pc
+ 0),
3287 (GLenum
) bswap_ENUM(pc
+ 4),
3288 (GLfloat
) bswap_FLOAT32(pc
+ 8));
3292 __glXDispSwap_ConvolutionParameterfv(GLbyte
* pc
)
3294 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3295 const GLfloat
*params
;
3298 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
3299 __glConvolutionParameterfv_size
3302 glConvolutionParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3306 __glXDispSwap_ConvolutionParameteri(GLbyte
* pc
)
3308 glConvolutionParameteri((GLenum
) bswap_ENUM(pc
+ 0),
3309 (GLenum
) bswap_ENUM(pc
+ 4),
3310 (GLint
) bswap_CARD32(pc
+ 8));
3314 __glXDispSwap_ConvolutionParameteriv(GLbyte
* pc
)
3316 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3317 const GLint
*params
;
3320 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 8),
3321 __glConvolutionParameteriv_size(pname
));
3323 glConvolutionParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3327 __glXDispSwap_CopyConvolutionFilter1D(GLbyte
* pc
)
3329 glCopyConvolutionFilter1D((GLenum
) bswap_ENUM(pc
+ 0),
3330 (GLenum
) bswap_ENUM(pc
+ 4),
3331 (GLint
) bswap_CARD32(pc
+ 8),
3332 (GLint
) bswap_CARD32(pc
+ 12),
3333 (GLsizei
) bswap_CARD32(pc
+ 16));
3337 __glXDispSwap_CopyConvolutionFilter2D(GLbyte
* pc
)
3339 glCopyConvolutionFilter2D((GLenum
) bswap_ENUM(pc
+ 0),
3340 (GLenum
) bswap_ENUM(pc
+ 4),
3341 (GLint
) bswap_CARD32(pc
+ 8),
3342 (GLint
) bswap_CARD32(pc
+ 12),
3343 (GLsizei
) bswap_CARD32(pc
+ 16),
3344 (GLsizei
) bswap_CARD32(pc
+ 20));
3348 __glXDispSwap_GetConvolutionParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
3350 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3352 __GLXcontext
*const cx
=
3353 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3355 pc
+= __GLX_SINGLE_HDR_SIZE
;
3357 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3359 const GLuint compsize
= __glGetConvolutionParameterfv_size(pname
);
3360 GLfloat answerBuffer
[200];
3362 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3363 sizeof(answerBuffer
), 4);
3367 __glXClearErrorOccured();
3369 glGetConvolutionParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3370 (void) bswap_32_array((uint32_t *) params
, compsize
);
3371 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3379 __glXDispSwap_GetConvolutionParameterfvEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3381 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3383 __GLXcontext
*const cx
=
3384 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3386 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3388 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3390 const GLuint compsize
= __glGetConvolutionParameterfv_size(pname
);
3391 GLfloat answerBuffer
[200];
3393 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3394 sizeof(answerBuffer
), 4);
3398 __glXClearErrorOccured();
3400 glGetConvolutionParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3401 (void) bswap_32_array((uint32_t *) params
, compsize
);
3402 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3410 __glXDispSwap_GetConvolutionParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
3412 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3414 __GLXcontext
*const cx
=
3415 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3417 pc
+= __GLX_SINGLE_HDR_SIZE
;
3419 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3421 const GLuint compsize
= __glGetConvolutionParameteriv_size(pname
);
3422 GLint answerBuffer
[200];
3424 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3425 sizeof(answerBuffer
), 4);
3429 __glXClearErrorOccured();
3431 glGetConvolutionParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3432 (void) bswap_32_array((uint32_t *) params
, compsize
);
3433 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3441 __glXDispSwap_GetConvolutionParameterivEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3443 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3445 __GLXcontext
*const cx
=
3446 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3448 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3450 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3452 const GLuint compsize
= __glGetConvolutionParameteriv_size(pname
);
3453 GLint answerBuffer
[200];
3455 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3456 sizeof(answerBuffer
), 4);
3460 __glXClearErrorOccured();
3462 glGetConvolutionParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3463 (void) bswap_32_array((uint32_t *) params
, compsize
);
3464 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3472 __glXDispSwap_GetHistogramParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
3474 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3476 __GLXcontext
*const cx
=
3477 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3479 pc
+= __GLX_SINGLE_HDR_SIZE
;
3481 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3483 const GLuint compsize
= __glGetHistogramParameterfv_size(pname
);
3484 GLfloat answerBuffer
[200];
3486 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3487 sizeof(answerBuffer
), 4);
3491 __glXClearErrorOccured();
3493 glGetHistogramParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3494 (void) bswap_32_array((uint32_t *) params
, compsize
);
3495 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3503 __glXDispSwap_GetHistogramParameterfvEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3505 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3507 __GLXcontext
*const cx
=
3508 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3510 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3512 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3514 const GLuint compsize
= __glGetHistogramParameterfv_size(pname
);
3515 GLfloat answerBuffer
[200];
3517 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3518 sizeof(answerBuffer
), 4);
3522 __glXClearErrorOccured();
3524 glGetHistogramParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3525 (void) bswap_32_array((uint32_t *) params
, compsize
);
3526 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3534 __glXDispSwap_GetHistogramParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
3536 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3538 __GLXcontext
*const cx
=
3539 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3541 pc
+= __GLX_SINGLE_HDR_SIZE
;
3543 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3545 const GLuint compsize
= __glGetHistogramParameteriv_size(pname
);
3546 GLint answerBuffer
[200];
3548 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3549 sizeof(answerBuffer
), 4);
3553 __glXClearErrorOccured();
3555 glGetHistogramParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3556 (void) bswap_32_array((uint32_t *) params
, compsize
);
3557 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3565 __glXDispSwap_GetHistogramParameterivEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3567 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3569 __GLXcontext
*const cx
=
3570 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3572 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3574 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3576 const GLuint compsize
= __glGetHistogramParameteriv_size(pname
);
3577 GLint answerBuffer
[200];
3579 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3580 sizeof(answerBuffer
), 4);
3584 __glXClearErrorOccured();
3586 glGetHistogramParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3587 (void) bswap_32_array((uint32_t *) params
, compsize
);
3588 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3596 __glXDispSwap_GetMinmaxParameterfv(__GLXclientState
* cl
, GLbyte
* pc
)
3598 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3600 __GLXcontext
*const cx
=
3601 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3603 pc
+= __GLX_SINGLE_HDR_SIZE
;
3605 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3607 const GLuint compsize
= __glGetMinmaxParameterfv_size(pname
);
3608 GLfloat answerBuffer
[200];
3610 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3611 sizeof(answerBuffer
), 4);
3615 __glXClearErrorOccured();
3617 glGetMinmaxParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3618 (void) bswap_32_array((uint32_t *) params
, compsize
);
3619 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3627 __glXDispSwap_GetMinmaxParameterfvEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3629 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3631 __GLXcontext
*const cx
=
3632 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3634 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3636 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3638 const GLuint compsize
= __glGetMinmaxParameterfv_size(pname
);
3639 GLfloat answerBuffer
[200];
3641 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3642 sizeof(answerBuffer
), 4);
3646 __glXClearErrorOccured();
3648 glGetMinmaxParameterfv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3649 (void) bswap_32_array((uint32_t *) params
, compsize
);
3650 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3658 __glXDispSwap_GetMinmaxParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
3660 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
3662 __GLXcontext
*const cx
=
3663 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3665 pc
+= __GLX_SINGLE_HDR_SIZE
;
3667 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3669 const GLuint compsize
= __glGetMinmaxParameteriv_size(pname
);
3670 GLint answerBuffer
[200];
3672 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3673 sizeof(answerBuffer
), 4);
3677 __glXClearErrorOccured();
3679 glGetMinmaxParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3680 (void) bswap_32_array((uint32_t *) params
, compsize
);
3681 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3689 __glXDispSwap_GetMinmaxParameterivEXT(__GLXclientState
* cl
, GLbyte
* pc
)
3691 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
3693 __GLXcontext
*const cx
=
3694 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
3696 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
3698 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
3700 const GLuint compsize
= __glGetMinmaxParameteriv_size(pname
);
3701 GLint answerBuffer
[200];
3703 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
3704 sizeof(answerBuffer
), 4);
3708 __glXClearErrorOccured();
3710 glGetMinmaxParameteriv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
3711 (void) bswap_32_array((uint32_t *) params
, compsize
);
3712 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
3720 __glXDispSwap_Histogram(GLbyte
* pc
)
3722 glHistogram((GLenum
) bswap_ENUM(pc
+ 0),
3723 (GLsizei
) bswap_CARD32(pc
+ 4),
3724 (GLenum
) bswap_ENUM(pc
+ 8), *(GLboolean
*) (pc
+ 12));
3728 __glXDispSwap_Minmax(GLbyte
* pc
)
3730 glMinmax((GLenum
) bswap_ENUM(pc
+ 0),
3731 (GLenum
) bswap_ENUM(pc
+ 4), *(GLboolean
*) (pc
+ 8));
3735 __glXDispSwap_ResetHistogram(GLbyte
* pc
)
3737 glResetHistogram((GLenum
) bswap_ENUM(pc
+ 0));
3741 __glXDispSwap_ResetMinmax(GLbyte
* pc
)
3743 glResetMinmax((GLenum
) bswap_ENUM(pc
+ 0));
3747 __glXDispSwap_TexImage3D(GLbyte
* pc
)
3749 const CARD32 ptr_is_null
= *(CARD32
*) (pc
+ 76);
3750 const GLvoid
*const pixels
=
3751 (const GLvoid
*) ((ptr_is_null
!= 0) ? NULL
: (pc
+ 80));
3752 __GLXpixel3DHeader
*const hdr
= (__GLXpixel3DHeader
*) (pc
);
3754 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3755 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3756 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3757 glPixelStorei(GL_UNPACK_IMAGE_HEIGHT
,
3758 (GLint
) bswap_CARD32(&hdr
->imageHeight
));
3759 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3760 glPixelStorei(GL_UNPACK_SKIP_IMAGES
,
3761 (GLint
) bswap_CARD32(&hdr
->skipImages
));
3762 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3763 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3764 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3766 glTexImage3D((GLenum
) bswap_ENUM(pc
+ 36),
3767 (GLint
) bswap_CARD32(pc
+ 40),
3768 (GLint
) bswap_CARD32(pc
+ 44),
3769 (GLsizei
) bswap_CARD32(pc
+ 48),
3770 (GLsizei
) bswap_CARD32(pc
+ 52),
3771 (GLsizei
) bswap_CARD32(pc
+ 56),
3772 (GLint
) bswap_CARD32(pc
+ 64),
3773 (GLenum
) bswap_ENUM(pc
+ 68),
3774 (GLenum
) bswap_ENUM(pc
+ 72), pixels
);
3778 __glXDispSwap_TexSubImage3D(GLbyte
* pc
)
3780 const GLvoid
*const pixels
= (const GLvoid
*) ((pc
+ 88));
3781 __GLXpixel3DHeader
*const hdr
= (__GLXpixel3DHeader
*) (pc
);
3783 glPixelStorei(GL_UNPACK_SWAP_BYTES
, hdr
->swapBytes
);
3784 glPixelStorei(GL_UNPACK_LSB_FIRST
, hdr
->lsbFirst
);
3785 glPixelStorei(GL_UNPACK_ROW_LENGTH
, (GLint
) bswap_CARD32(&hdr
->rowLength
));
3786 glPixelStorei(GL_UNPACK_IMAGE_HEIGHT
,
3787 (GLint
) bswap_CARD32(&hdr
->imageHeight
));
3788 glPixelStorei(GL_UNPACK_SKIP_ROWS
, (GLint
) bswap_CARD32(&hdr
->skipRows
));
3789 glPixelStorei(GL_UNPACK_SKIP_IMAGES
,
3790 (GLint
) bswap_CARD32(&hdr
->skipImages
));
3791 glPixelStorei(GL_UNPACK_SKIP_PIXELS
,
3792 (GLint
) bswap_CARD32(&hdr
->skipPixels
));
3793 glPixelStorei(GL_UNPACK_ALIGNMENT
, (GLint
) bswap_CARD32(&hdr
->alignment
));
3795 glTexSubImage3D((GLenum
) bswap_ENUM(pc
+ 36),
3796 (GLint
) bswap_CARD32(pc
+ 40),
3797 (GLint
) bswap_CARD32(pc
+ 44),
3798 (GLint
) bswap_CARD32(pc
+ 48),
3799 (GLint
) bswap_CARD32(pc
+ 52),
3800 (GLsizei
) bswap_CARD32(pc
+ 60),
3801 (GLsizei
) bswap_CARD32(pc
+ 64),
3802 (GLsizei
) bswap_CARD32(pc
+ 68),
3803 (GLenum
) bswap_ENUM(pc
+ 76),
3804 (GLenum
) bswap_ENUM(pc
+ 80), pixels
);
3808 __glXDispSwap_CopyTexSubImage3D(GLbyte
* pc
)
3810 glCopyTexSubImage3D((GLenum
) bswap_ENUM(pc
+ 0),
3811 (GLint
) bswap_CARD32(pc
+ 4),
3812 (GLint
) bswap_CARD32(pc
+ 8),
3813 (GLint
) bswap_CARD32(pc
+ 12),
3814 (GLint
) bswap_CARD32(pc
+ 16),
3815 (GLint
) bswap_CARD32(pc
+ 20),
3816 (GLint
) bswap_CARD32(pc
+ 24),
3817 (GLsizei
) bswap_CARD32(pc
+ 28),
3818 (GLsizei
) bswap_CARD32(pc
+ 32));
3822 __glXDispSwap_ActiveTexture(GLbyte
* pc
)
3824 glActiveTextureARB((GLenum
) bswap_ENUM(pc
+ 0));
3828 __glXDispSwap_MultiTexCoord1dv(GLbyte
* pc
)
3830 #ifdef __GLX_ALIGN64
3831 if ((unsigned long) (pc
) & 7) {
3832 (void) memmove(pc
- 4, pc
, 12);
3837 glMultiTexCoord1dvARB((GLenum
) bswap_ENUM(pc
+ 8),
3838 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0),
3843 __glXDispSwap_MultiTexCoord1fvARB(GLbyte
* pc
)
3845 glMultiTexCoord1fvARB((GLenum
) bswap_ENUM(pc
+ 0),
3847 bswap_32_array((uint32_t *) (pc
+ 4), 1));
3851 __glXDispSwap_MultiTexCoord1iv(GLbyte
* pc
)
3853 glMultiTexCoord1ivARB((GLenum
) bswap_ENUM(pc
+ 0),
3854 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
3859 __glXDispSwap_MultiTexCoord1sv(GLbyte
* pc
)
3861 glMultiTexCoord1svARB((GLenum
) bswap_ENUM(pc
+ 0),
3862 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
3867 __glXDispSwap_MultiTexCoord2dv(GLbyte
* pc
)
3869 #ifdef __GLX_ALIGN64
3870 if ((unsigned long) (pc
) & 7) {
3871 (void) memmove(pc
- 4, pc
, 20);
3876 glMultiTexCoord2dvARB((GLenum
) bswap_ENUM(pc
+ 16),
3877 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0),
3882 __glXDispSwap_MultiTexCoord2fvARB(GLbyte
* pc
)
3884 glMultiTexCoord2fvARB((GLenum
) bswap_ENUM(pc
+ 0),
3886 bswap_32_array((uint32_t *) (pc
+ 4), 2));
3890 __glXDispSwap_MultiTexCoord2iv(GLbyte
* pc
)
3892 glMultiTexCoord2ivARB((GLenum
) bswap_ENUM(pc
+ 0),
3893 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
3898 __glXDispSwap_MultiTexCoord2sv(GLbyte
* pc
)
3900 glMultiTexCoord2svARB((GLenum
) bswap_ENUM(pc
+ 0),
3901 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
3906 __glXDispSwap_MultiTexCoord3dv(GLbyte
* pc
)
3908 #ifdef __GLX_ALIGN64
3909 if ((unsigned long) (pc
) & 7) {
3910 (void) memmove(pc
- 4, pc
, 28);
3915 glMultiTexCoord3dvARB((GLenum
) bswap_ENUM(pc
+ 24),
3916 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0),
3921 __glXDispSwap_MultiTexCoord3fvARB(GLbyte
* pc
)
3923 glMultiTexCoord3fvARB((GLenum
) bswap_ENUM(pc
+ 0),
3925 bswap_32_array((uint32_t *) (pc
+ 4), 3));
3929 __glXDispSwap_MultiTexCoord3iv(GLbyte
* pc
)
3931 glMultiTexCoord3ivARB((GLenum
) bswap_ENUM(pc
+ 0),
3932 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
3937 __glXDispSwap_MultiTexCoord3sv(GLbyte
* pc
)
3939 glMultiTexCoord3svARB((GLenum
) bswap_ENUM(pc
+ 0),
3940 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
3945 __glXDispSwap_MultiTexCoord4dv(GLbyte
* pc
)
3947 #ifdef __GLX_ALIGN64
3948 if ((unsigned long) (pc
) & 7) {
3949 (void) memmove(pc
- 4, pc
, 36);
3954 glMultiTexCoord4dvARB((GLenum
) bswap_ENUM(pc
+ 32),
3955 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0),
3960 __glXDispSwap_MultiTexCoord4fvARB(GLbyte
* pc
)
3962 glMultiTexCoord4fvARB((GLenum
) bswap_ENUM(pc
+ 0),
3964 bswap_32_array((uint32_t *) (pc
+ 4), 4));
3968 __glXDispSwap_MultiTexCoord4iv(GLbyte
* pc
)
3970 glMultiTexCoord4ivARB((GLenum
) bswap_ENUM(pc
+ 0),
3971 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
3976 __glXDispSwap_MultiTexCoord4sv(GLbyte
* pc
)
3978 glMultiTexCoord4svARB((GLenum
) bswap_ENUM(pc
+ 0),
3979 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
3984 __glXDispSwap_CompressedTexImage1D(GLbyte
* pc
)
3986 PFNGLCOMPRESSEDTEXIMAGE1DPROC CompressedTexImage1D
=
3987 __glGetProcAddress("glCompressedTexImage1D");
3988 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 20);
3990 CompressedTexImage1D((GLenum
) bswap_ENUM(pc
+ 0),
3991 (GLint
) bswap_CARD32(pc
+ 4),
3992 (GLenum
) bswap_ENUM(pc
+ 8),
3993 (GLsizei
) bswap_CARD32(pc
+ 12),
3994 (GLint
) bswap_CARD32(pc
+ 16),
3995 imageSize
, (const GLvoid
*) (pc
+ 24));
3999 __glXDispSwap_CompressedTexImage2D(GLbyte
* pc
)
4001 PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D
=
4002 __glGetProcAddress("glCompressedTexImage2D");
4003 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 24);
4005 CompressedTexImage2D((GLenum
) bswap_ENUM(pc
+ 0),
4006 (GLint
) bswap_CARD32(pc
+ 4),
4007 (GLenum
) bswap_ENUM(pc
+ 8),
4008 (GLsizei
) bswap_CARD32(pc
+ 12),
4009 (GLsizei
) bswap_CARD32(pc
+ 16),
4010 (GLint
) bswap_CARD32(pc
+ 20),
4011 imageSize
, (const GLvoid
*) (pc
+ 28));
4015 __glXDispSwap_CompressedTexImage3D(GLbyte
* pc
)
4017 PFNGLCOMPRESSEDTEXIMAGE3DPROC CompressedTexImage3D
=
4018 __glGetProcAddress("glCompressedTexImage3D");
4019 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 28);
4021 CompressedTexImage3D((GLenum
) bswap_ENUM(pc
+ 0),
4022 (GLint
) bswap_CARD32(pc
+ 4),
4023 (GLenum
) bswap_ENUM(pc
+ 8),
4024 (GLsizei
) bswap_CARD32(pc
+ 12),
4025 (GLsizei
) bswap_CARD32(pc
+ 16),
4026 (GLsizei
) bswap_CARD32(pc
+ 20),
4027 (GLint
) bswap_CARD32(pc
+ 24),
4028 imageSize
, (const GLvoid
*) (pc
+ 32));
4032 __glXDispSwap_CompressedTexSubImage1D(GLbyte
* pc
)
4034 PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC CompressedTexSubImage1D
=
4035 __glGetProcAddress("glCompressedTexSubImage1D");
4036 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 20);
4038 CompressedTexSubImage1D((GLenum
) bswap_ENUM(pc
+ 0),
4039 (GLint
) bswap_CARD32(pc
+ 4),
4040 (GLint
) bswap_CARD32(pc
+ 8),
4041 (GLsizei
) bswap_CARD32(pc
+ 12),
4042 (GLenum
) bswap_ENUM(pc
+ 16),
4043 imageSize
, (const GLvoid
*) (pc
+ 24));
4047 __glXDispSwap_CompressedTexSubImage2D(GLbyte
* pc
)
4049 PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC CompressedTexSubImage2D
=
4050 __glGetProcAddress("glCompressedTexSubImage2D");
4051 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 28);
4053 CompressedTexSubImage2D((GLenum
) bswap_ENUM(pc
+ 0),
4054 (GLint
) bswap_CARD32(pc
+ 4),
4055 (GLint
) bswap_CARD32(pc
+ 8),
4056 (GLint
) bswap_CARD32(pc
+ 12),
4057 (GLsizei
) bswap_CARD32(pc
+ 16),
4058 (GLsizei
) bswap_CARD32(pc
+ 20),
4059 (GLenum
) bswap_ENUM(pc
+ 24),
4060 imageSize
, (const GLvoid
*) (pc
+ 32));
4064 __glXDispSwap_CompressedTexSubImage3D(GLbyte
* pc
)
4066 PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC CompressedTexSubImage3D
=
4067 __glGetProcAddress("glCompressedTexSubImage3D");
4068 const GLsizei imageSize
= (GLsizei
) bswap_CARD32(pc
+ 36);
4070 CompressedTexSubImage3D((GLenum
) bswap_ENUM(pc
+ 0),
4071 (GLint
) bswap_CARD32(pc
+ 4),
4072 (GLint
) bswap_CARD32(pc
+ 8),
4073 (GLint
) bswap_CARD32(pc
+ 12),
4074 (GLint
) bswap_CARD32(pc
+ 16),
4075 (GLsizei
) bswap_CARD32(pc
+ 20),
4076 (GLsizei
) bswap_CARD32(pc
+ 24),
4077 (GLsizei
) bswap_CARD32(pc
+ 28),
4078 (GLenum
) bswap_ENUM(pc
+ 32),
4079 imageSize
, (const GLvoid
*) (pc
+ 40));
4083 __glXDispSwap_SampleCoverage(GLbyte
* pc
)
4085 PFNGLSAMPLECOVERAGEPROC SampleCoverage
=
4086 __glGetProcAddress("glSampleCoverage");
4087 SampleCoverage((GLclampf
) bswap_FLOAT32(pc
+ 0), *(GLboolean
*) (pc
+ 4));
4091 __glXDispSwap_BlendFuncSeparate(GLbyte
* pc
)
4093 PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate
=
4094 __glGetProcAddress("glBlendFuncSeparate");
4095 BlendFuncSeparate((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4),
4096 (GLenum
) bswap_ENUM(pc
+ 8),
4097 (GLenum
) bswap_ENUM(pc
+ 12));
4101 __glXDispSwap_FogCoorddv(GLbyte
* pc
)
4103 PFNGLFOGCOORDDVPROC FogCoorddv
= __glGetProcAddress("glFogCoorddv");
4105 #ifdef __GLX_ALIGN64
4106 if ((unsigned long) (pc
) & 7) {
4107 (void) memmove(pc
- 4, pc
, 8);
4112 FogCoorddv((const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 0), 1));
4116 __glXDispSwap_PointParameterf(GLbyte
* pc
)
4118 PFNGLPOINTPARAMETERFPROC PointParameterf
=
4119 __glGetProcAddress("glPointParameterf");
4120 PointParameterf((GLenum
) bswap_ENUM(pc
+ 0),
4121 (GLfloat
) bswap_FLOAT32(pc
+ 4));
4125 __glXDispSwap_PointParameterfv(GLbyte
* pc
)
4127 PFNGLPOINTPARAMETERFVPROC PointParameterfv
=
4128 __glGetProcAddress("glPointParameterfv");
4129 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
4130 const GLfloat
*params
;
4133 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
4134 __glPointParameterfv_size(pname
));
4136 PointParameterfv(pname
, params
);
4140 __glXDispSwap_PointParameteri(GLbyte
* pc
)
4142 PFNGLPOINTPARAMETERIPROC PointParameteri
=
4143 __glGetProcAddress("glPointParameteri");
4144 PointParameteri((GLenum
) bswap_ENUM(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4));
4148 __glXDispSwap_PointParameteriv(GLbyte
* pc
)
4150 PFNGLPOINTPARAMETERIVPROC PointParameteriv
=
4151 __glGetProcAddress("glPointParameteriv");
4152 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 0);
4153 const GLint
*params
;
4156 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4),
4157 __glPointParameteriv_size(pname
));
4159 PointParameteriv(pname
, params
);
4163 __glXDispSwap_SecondaryColor3bv(GLbyte
* pc
)
4165 PFNGLSECONDARYCOLOR3BVPROC SecondaryColor3bv
=
4166 __glGetProcAddress("glSecondaryColor3bv");
4167 SecondaryColor3bv((const GLbyte
*) (pc
+ 0));
4171 __glXDispSwap_SecondaryColor3dv(GLbyte
* pc
)
4173 PFNGLSECONDARYCOLOR3DVPROC SecondaryColor3dv
=
4174 __glGetProcAddress("glSecondaryColor3dv");
4175 #ifdef __GLX_ALIGN64
4176 if ((unsigned long) (pc
) & 7) {
4177 (void) memmove(pc
- 4, pc
, 24);
4182 SecondaryColor3dv((const GLdouble
*)
4183 bswap_64_array((uint64_t *) (pc
+ 0), 3));
4187 __glXDispSwap_SecondaryColor3iv(GLbyte
* pc
)
4189 PFNGLSECONDARYCOLOR3IVPROC SecondaryColor3iv
=
4190 __glGetProcAddress("glSecondaryColor3iv");
4191 SecondaryColor3iv((const GLint
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
4195 __glXDispSwap_SecondaryColor3sv(GLbyte
* pc
)
4197 PFNGLSECONDARYCOLOR3SVPROC SecondaryColor3sv
=
4198 __glGetProcAddress("glSecondaryColor3sv");
4199 SecondaryColor3sv((const GLshort
*)
4200 bswap_16_array((uint16_t *) (pc
+ 0), 3));
4204 __glXDispSwap_SecondaryColor3ubv(GLbyte
* pc
)
4206 PFNGLSECONDARYCOLOR3UBVPROC SecondaryColor3ubv
=
4207 __glGetProcAddress("glSecondaryColor3ubv");
4208 SecondaryColor3ubv((const GLubyte
*) (pc
+ 0));
4212 __glXDispSwap_SecondaryColor3uiv(GLbyte
* pc
)
4214 PFNGLSECONDARYCOLOR3UIVPROC SecondaryColor3uiv
=
4215 __glGetProcAddress("glSecondaryColor3uiv");
4216 SecondaryColor3uiv((const GLuint
*)
4217 bswap_32_array((uint32_t *) (pc
+ 0), 3));
4221 __glXDispSwap_SecondaryColor3usv(GLbyte
* pc
)
4223 PFNGLSECONDARYCOLOR3USVPROC SecondaryColor3usv
=
4224 __glGetProcAddress("glSecondaryColor3usv");
4225 SecondaryColor3usv((const GLushort
*)
4226 bswap_16_array((uint16_t *) (pc
+ 0), 3));
4230 __glXDispSwap_WindowPos3fv(GLbyte
* pc
)
4232 PFNGLWINDOWPOS3FVPROC WindowPos3fv
= __glGetProcAddress("glWindowPos3fv");
4234 WindowPos3fv((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 3));
4238 __glXDispSwap_BeginQuery(GLbyte
* pc
)
4240 PFNGLBEGINQUERYPROC BeginQuery
= __glGetProcAddress("glBeginQuery");
4242 BeginQuery((GLenum
) bswap_ENUM(pc
+ 0), (GLuint
) bswap_CARD32(pc
+ 4));
4246 __glXDispSwap_DeleteQueries(__GLXclientState
* cl
, GLbyte
* pc
)
4248 PFNGLDELETEQUERIESPROC DeleteQueries
=
4249 __glGetProcAddress("glDeleteQueries");
4250 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4252 __GLXcontext
*const cx
=
4253 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4255 pc
+= __GLX_SINGLE_HDR_SIZE
;
4257 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
4260 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
4269 __glXDispSwap_EndQuery(GLbyte
* pc
)
4271 PFNGLENDQUERYPROC EndQuery
= __glGetProcAddress("glEndQuery");
4273 EndQuery((GLenum
) bswap_ENUM(pc
+ 0));
4277 __glXDispSwap_GenQueries(__GLXclientState
* cl
, GLbyte
* pc
)
4279 PFNGLGENQUERIESPROC GenQueries
= __glGetProcAddress("glGenQueries");
4280 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4282 __GLXcontext
*const cx
=
4283 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4285 pc
+= __GLX_SINGLE_HDR_SIZE
;
4287 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
4289 GLuint answerBuffer
[200];
4291 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
4294 (void) bswap_32_array((uint32_t *) ids
, n
);
4295 __glXSendReplySwap(cl
->client
, ids
, n
, 4, GL_TRUE
, 0);
4303 __glXDispSwap_GetQueryObjectiv(__GLXclientState
* cl
, GLbyte
* pc
)
4305 PFNGLGETQUERYOBJECTIVPROC GetQueryObjectiv
=
4306 __glGetProcAddress("glGetQueryObjectiv");
4307 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4309 __GLXcontext
*const cx
=
4310 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4312 pc
+= __GLX_SINGLE_HDR_SIZE
;
4314 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
4316 const GLuint compsize
= __glGetQueryObjectiv_size(pname
);
4317 GLint answerBuffer
[200];
4319 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
4320 sizeof(answerBuffer
), 4);
4324 __glXClearErrorOccured();
4326 GetQueryObjectiv((GLuint
) bswap_CARD32(pc
+ 0), pname
, params
);
4327 (void) bswap_32_array((uint32_t *) params
, compsize
);
4328 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
4336 __glXDispSwap_GetQueryObjectuiv(__GLXclientState
* cl
, GLbyte
* pc
)
4338 PFNGLGETQUERYOBJECTUIVPROC GetQueryObjectuiv
=
4339 __glGetProcAddress("glGetQueryObjectuiv");
4340 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4342 __GLXcontext
*const cx
=
4343 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4345 pc
+= __GLX_SINGLE_HDR_SIZE
;
4347 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
4349 const GLuint compsize
= __glGetQueryObjectuiv_size(pname
);
4350 GLuint answerBuffer
[200];
4352 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
4353 sizeof(answerBuffer
), 4);
4357 __glXClearErrorOccured();
4359 GetQueryObjectuiv((GLuint
) bswap_CARD32(pc
+ 0), pname
, params
);
4360 (void) bswap_32_array((uint32_t *) params
, compsize
);
4361 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
4369 __glXDispSwap_GetQueryiv(__GLXclientState
* cl
, GLbyte
* pc
)
4371 PFNGLGETQUERYIVPROC GetQueryiv
= __glGetProcAddress("glGetQueryiv");
4372 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4374 __GLXcontext
*const cx
=
4375 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4377 pc
+= __GLX_SINGLE_HDR_SIZE
;
4379 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
4381 const GLuint compsize
= __glGetQueryiv_size(pname
);
4382 GLint answerBuffer
[200];
4384 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
4385 sizeof(answerBuffer
), 4);
4389 __glXClearErrorOccured();
4391 GetQueryiv((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
4392 (void) bswap_32_array((uint32_t *) params
, compsize
);
4393 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
4401 __glXDispSwap_IsQuery(__GLXclientState
* cl
, GLbyte
* pc
)
4403 PFNGLISQUERYPROC IsQuery
= __glGetProcAddress("glIsQuery");
4404 xGLXSingleReq
*const req
= (xGLXSingleReq
*) pc
;
4406 __GLXcontext
*const cx
=
4407 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4409 pc
+= __GLX_SINGLE_HDR_SIZE
;
4413 retval
= IsQuery((GLuint
) bswap_CARD32(pc
+ 0));
4414 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
4422 __glXDispSwap_BlendEquationSeparate(GLbyte
* pc
)
4424 PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate
=
4425 __glGetProcAddress("glBlendEquationSeparate");
4426 BlendEquationSeparate((GLenum
) bswap_ENUM(pc
+ 0),
4427 (GLenum
) bswap_ENUM(pc
+ 4));
4431 __glXDispSwap_DrawBuffers(GLbyte
* pc
)
4433 PFNGLDRAWBUFFERSPROC DrawBuffers
= __glGetProcAddress("glDrawBuffers");
4434 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
4436 DrawBuffers(n
, (const GLenum
*) bswap_32_array((uint32_t *) (pc
+ 4), 0));
4440 __glXDispSwap_VertexAttrib1dv(GLbyte
* pc
)
4442 PFNGLVERTEXATTRIB1DVPROC VertexAttrib1dv
=
4443 __glGetProcAddress("glVertexAttrib1dv");
4444 #ifdef __GLX_ALIGN64
4445 if ((unsigned long) (pc
) & 7) {
4446 (void) memmove(pc
- 4, pc
, 12);
4451 VertexAttrib1dv((GLuint
) bswap_CARD32(pc
+ 0),
4452 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
4457 __glXDispSwap_VertexAttrib1sv(GLbyte
* pc
)
4459 PFNGLVERTEXATTRIB1SVPROC VertexAttrib1sv
=
4460 __glGetProcAddress("glVertexAttrib1sv");
4461 VertexAttrib1sv((GLuint
) bswap_CARD32(pc
+ 0),
4462 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4), 1));
4466 __glXDispSwap_VertexAttrib2dv(GLbyte
* pc
)
4468 PFNGLVERTEXATTRIB2DVPROC VertexAttrib2dv
=
4469 __glGetProcAddress("glVertexAttrib2dv");
4470 #ifdef __GLX_ALIGN64
4471 if ((unsigned long) (pc
) & 7) {
4472 (void) memmove(pc
- 4, pc
, 20);
4477 VertexAttrib2dv((GLuint
) bswap_CARD32(pc
+ 0),
4478 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
4483 __glXDispSwap_VertexAttrib2sv(GLbyte
* pc
)
4485 PFNGLVERTEXATTRIB2SVPROC VertexAttrib2sv
=
4486 __glGetProcAddress("glVertexAttrib2sv");
4487 VertexAttrib2sv((GLuint
) bswap_CARD32(pc
+ 0),
4488 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4), 2));
4492 __glXDispSwap_VertexAttrib3dv(GLbyte
* pc
)
4494 PFNGLVERTEXATTRIB3DVPROC VertexAttrib3dv
=
4495 __glGetProcAddress("glVertexAttrib3dv");
4496 #ifdef __GLX_ALIGN64
4497 if ((unsigned long) (pc
) & 7) {
4498 (void) memmove(pc
- 4, pc
, 28);
4503 VertexAttrib3dv((GLuint
) bswap_CARD32(pc
+ 0),
4504 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
4509 __glXDispSwap_VertexAttrib3sv(GLbyte
* pc
)
4511 PFNGLVERTEXATTRIB3SVPROC VertexAttrib3sv
=
4512 __glGetProcAddress("glVertexAttrib3sv");
4513 VertexAttrib3sv((GLuint
) bswap_CARD32(pc
+ 0),
4514 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4), 3));
4518 __glXDispSwap_VertexAttrib4Nbv(GLbyte
* pc
)
4520 PFNGLVERTEXATTRIB4NBVPROC VertexAttrib4Nbv
=
4521 __glGetProcAddress("glVertexAttrib4Nbv");
4522 VertexAttrib4Nbv((GLuint
) bswap_CARD32(pc
+ 0), (const GLbyte
*) (pc
+ 4));
4526 __glXDispSwap_VertexAttrib4Niv(GLbyte
* pc
)
4528 PFNGLVERTEXATTRIB4NIVPROC VertexAttrib4Niv
=
4529 __glGetProcAddress("glVertexAttrib4Niv");
4530 VertexAttrib4Niv((GLuint
) bswap_CARD32(pc
+ 0),
4531 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4), 4));
4535 __glXDispSwap_VertexAttrib4Nsv(GLbyte
* pc
)
4537 PFNGLVERTEXATTRIB4NSVPROC VertexAttrib4Nsv
=
4538 __glGetProcAddress("glVertexAttrib4Nsv");
4539 VertexAttrib4Nsv((GLuint
) bswap_CARD32(pc
+ 0),
4540 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
4545 __glXDispSwap_VertexAttrib4Nubv(GLbyte
* pc
)
4547 PFNGLVERTEXATTRIB4NUBVPROC VertexAttrib4Nubv
=
4548 __glGetProcAddress("glVertexAttrib4Nubv");
4549 VertexAttrib4Nubv((GLuint
) bswap_CARD32(pc
+ 0),
4550 (const GLubyte
*) (pc
+ 4));
4554 __glXDispSwap_VertexAttrib4Nuiv(GLbyte
* pc
)
4556 PFNGLVERTEXATTRIB4NUIVPROC VertexAttrib4Nuiv
=
4557 __glGetProcAddress("glVertexAttrib4Nuiv");
4558 VertexAttrib4Nuiv((GLuint
) bswap_CARD32(pc
+ 0),
4559 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
4564 __glXDispSwap_VertexAttrib4Nusv(GLbyte
* pc
)
4566 PFNGLVERTEXATTRIB4NUSVPROC VertexAttrib4Nusv
=
4567 __glGetProcAddress("glVertexAttrib4Nusv");
4568 VertexAttrib4Nusv((GLuint
) bswap_CARD32(pc
+ 0),
4569 (const GLushort
*) bswap_16_array((uint16_t *) (pc
+ 4),
4574 __glXDispSwap_VertexAttrib4bv(GLbyte
* pc
)
4576 PFNGLVERTEXATTRIB4BVPROC VertexAttrib4bv
=
4577 __glGetProcAddress("glVertexAttrib4bv");
4578 VertexAttrib4bv((GLuint
) bswap_CARD32(pc
+ 0), (const GLbyte
*) (pc
+ 4));
4582 __glXDispSwap_VertexAttrib4dv(GLbyte
* pc
)
4584 PFNGLVERTEXATTRIB4DVPROC VertexAttrib4dv
=
4585 __glGetProcAddress("glVertexAttrib4dv");
4586 #ifdef __GLX_ALIGN64
4587 if ((unsigned long) (pc
) & 7) {
4588 (void) memmove(pc
- 4, pc
, 36);
4593 VertexAttrib4dv((GLuint
) bswap_CARD32(pc
+ 0),
4594 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
4599 __glXDispSwap_VertexAttrib4iv(GLbyte
* pc
)
4601 PFNGLVERTEXATTRIB4IVPROC VertexAttrib4iv
=
4602 __glGetProcAddress("glVertexAttrib4iv");
4603 VertexAttrib4iv((GLuint
) bswap_CARD32(pc
+ 0),
4604 (const GLint
*) bswap_32_array((uint32_t *) (pc
+ 4), 4));
4608 __glXDispSwap_VertexAttrib4sv(GLbyte
* pc
)
4610 PFNGLVERTEXATTRIB4SVPROC VertexAttrib4sv
=
4611 __glGetProcAddress("glVertexAttrib4sv");
4612 VertexAttrib4sv((GLuint
) bswap_CARD32(pc
+ 0),
4613 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4), 4));
4617 __glXDispSwap_VertexAttrib4ubv(GLbyte
* pc
)
4619 PFNGLVERTEXATTRIB4UBVPROC VertexAttrib4ubv
=
4620 __glGetProcAddress("glVertexAttrib4ubv");
4621 VertexAttrib4ubv((GLuint
) bswap_CARD32(pc
+ 0), (const GLubyte
*) (pc
+ 4));
4625 __glXDispSwap_VertexAttrib4uiv(GLbyte
* pc
)
4627 PFNGLVERTEXATTRIB4UIVPROC VertexAttrib4uiv
=
4628 __glGetProcAddress("glVertexAttrib4uiv");
4629 VertexAttrib4uiv((GLuint
) bswap_CARD32(pc
+ 0),
4630 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4), 4));
4634 __glXDispSwap_VertexAttrib4usv(GLbyte
* pc
)
4636 PFNGLVERTEXATTRIB4USVPROC VertexAttrib4usv
=
4637 __glGetProcAddress("glVertexAttrib4usv");
4638 VertexAttrib4usv((GLuint
) bswap_CARD32(pc
+ 0),
4639 (const GLushort
*) bswap_16_array((uint16_t *) (pc
+ 4),
4644 __glXDispSwap_ClampColor(GLbyte
* pc
)
4646 PFNGLCLAMPCOLORPROC ClampColor
= __glGetProcAddress("glClampColor");
4648 ClampColor((GLenum
) bswap_ENUM(pc
+ 0), (GLenum
) bswap_ENUM(pc
+ 4));
4652 __glXDispSwap_BindProgramARB(GLbyte
* pc
)
4654 PFNGLBINDPROGRAMARBPROC BindProgramARB
=
4655 __glGetProcAddress("glBindProgramARB");
4656 BindProgramARB((GLenum
) bswap_ENUM(pc
+ 0), (GLuint
) bswap_CARD32(pc
+ 4));
4660 __glXDispSwap_DeleteProgramsARB(__GLXclientState
* cl
, GLbyte
* pc
)
4662 PFNGLDELETEPROGRAMSARBPROC DeleteProgramsARB
=
4663 __glGetProcAddress("glDeleteProgramsARB");
4664 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4666 __GLXcontext
*const cx
=
4667 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4669 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4671 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
4673 DeleteProgramsARB(n
,
4674 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
4683 __glXDispSwap_GenProgramsARB(__GLXclientState
* cl
, GLbyte
* pc
)
4685 PFNGLGENPROGRAMSARBPROC GenProgramsARB
=
4686 __glGetProcAddress("glGenProgramsARB");
4687 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4689 __GLXcontext
*const cx
=
4690 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4692 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4694 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
4696 GLuint answerBuffer
[200];
4698 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
4700 GenProgramsARB(n
, programs
);
4701 (void) bswap_32_array((uint32_t *) programs
, n
);
4702 __glXSendReplySwap(cl
->client
, programs
, n
, 4, GL_TRUE
, 0);
4710 __glXDispSwap_GetProgramEnvParameterdvARB(__GLXclientState
* cl
, GLbyte
* pc
)
4712 PFNGLGETPROGRAMENVPARAMETERDVARBPROC GetProgramEnvParameterdvARB
=
4713 __glGetProcAddress("glGetProgramEnvParameterdvARB");
4714 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4716 __GLXcontext
*const cx
=
4717 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4719 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4723 GetProgramEnvParameterdvARB((GLenum
) bswap_ENUM(pc
+ 0),
4724 (GLuint
) bswap_CARD32(pc
+ 4), params
);
4725 (void) bswap_64_array((uint64_t *) params
, 4);
4726 __glXSendReplySwap(cl
->client
, params
, 4, 8, GL_FALSE
, 0);
4734 __glXDispSwap_GetProgramEnvParameterfvARB(__GLXclientState
* cl
, GLbyte
* pc
)
4736 PFNGLGETPROGRAMENVPARAMETERFVARBPROC GetProgramEnvParameterfvARB
=
4737 __glGetProcAddress("glGetProgramEnvParameterfvARB");
4738 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4740 __GLXcontext
*const cx
=
4741 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4743 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4747 GetProgramEnvParameterfvARB((GLenum
) bswap_ENUM(pc
+ 0),
4748 (GLuint
) bswap_CARD32(pc
+ 4), params
);
4749 (void) bswap_32_array((uint32_t *) params
, 4);
4750 __glXSendReplySwap(cl
->client
, params
, 4, 4, GL_FALSE
, 0);
4758 __glXDispSwap_GetProgramLocalParameterdvARB(__GLXclientState
* cl
, GLbyte
* pc
)
4760 PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC GetProgramLocalParameterdvARB
=
4761 __glGetProcAddress("glGetProgramLocalParameterdvARB");
4762 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4764 __GLXcontext
*const cx
=
4765 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4767 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4771 GetProgramLocalParameterdvARB((GLenum
) bswap_ENUM(pc
+ 0),
4772 (GLuint
) bswap_CARD32(pc
+ 4), params
);
4773 (void) bswap_64_array((uint64_t *) params
, 4);
4774 __glXSendReplySwap(cl
->client
, params
, 4, 8, GL_FALSE
, 0);
4782 __glXDispSwap_GetProgramLocalParameterfvARB(__GLXclientState
* cl
, GLbyte
* pc
)
4784 PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC GetProgramLocalParameterfvARB
=
4785 __glGetProcAddress("glGetProgramLocalParameterfvARB");
4786 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4788 __GLXcontext
*const cx
=
4789 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4791 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4795 GetProgramLocalParameterfvARB((GLenum
) bswap_ENUM(pc
+ 0),
4796 (GLuint
) bswap_CARD32(pc
+ 4), params
);
4797 (void) bswap_32_array((uint32_t *) params
, 4);
4798 __glXSendReplySwap(cl
->client
, params
, 4, 4, GL_FALSE
, 0);
4806 __glXDispSwap_GetProgramivARB(__GLXclientState
* cl
, GLbyte
* pc
)
4808 PFNGLGETPROGRAMIVARBPROC GetProgramivARB
=
4809 __glGetProcAddress("glGetProgramivARB");
4810 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4812 __GLXcontext
*const cx
=
4813 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4815 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4817 const GLenum pname
= (GLenum
) bswap_ENUM(pc
+ 4);
4819 const GLuint compsize
= __glGetProgramivARB_size(pname
);
4820 GLint answerBuffer
[200];
4822 __glXGetAnswerBuffer(cl
, compsize
* 4, answerBuffer
,
4823 sizeof(answerBuffer
), 4);
4827 __glXClearErrorOccured();
4829 GetProgramivARB((GLenum
) bswap_ENUM(pc
+ 0), pname
, params
);
4830 (void) bswap_32_array((uint32_t *) params
, compsize
);
4831 __glXSendReplySwap(cl
->client
, params
, compsize
, 4, GL_FALSE
, 0);
4839 __glXDispSwap_IsProgramARB(__GLXclientState
* cl
, GLbyte
* pc
)
4841 PFNGLISPROGRAMARBPROC IsProgramARB
= __glGetProcAddress("glIsProgramARB");
4842 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
4844 __GLXcontext
*const cx
=
4845 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
4847 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
4851 retval
= IsProgramARB((GLuint
) bswap_CARD32(pc
+ 0));
4852 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
4860 __glXDispSwap_ProgramEnvParameter4dvARB(GLbyte
* pc
)
4862 PFNGLPROGRAMENVPARAMETER4DVARBPROC ProgramEnvParameter4dvARB
=
4863 __glGetProcAddress("glProgramEnvParameter4dvARB");
4864 #ifdef __GLX_ALIGN64
4865 if ((unsigned long) (pc
) & 7) {
4866 (void) memmove(pc
- 4, pc
, 40);
4871 ProgramEnvParameter4dvARB((GLenum
) bswap_ENUM(pc
+ 0),
4872 (GLuint
) bswap_CARD32(pc
+ 4),
4874 bswap_64_array((uint64_t *) (pc
+ 8), 4));
4878 __glXDispSwap_ProgramEnvParameter4fvARB(GLbyte
* pc
)
4880 PFNGLPROGRAMENVPARAMETER4FVARBPROC ProgramEnvParameter4fvARB
=
4881 __glGetProcAddress("glProgramEnvParameter4fvARB");
4882 ProgramEnvParameter4fvARB((GLenum
) bswap_ENUM(pc
+ 0),
4883 (GLuint
) bswap_CARD32(pc
+ 4),
4885 bswap_32_array((uint32_t *) (pc
+ 8), 4));
4889 __glXDispSwap_ProgramLocalParameter4dvARB(GLbyte
* pc
)
4891 PFNGLPROGRAMLOCALPARAMETER4DVARBPROC ProgramLocalParameter4dvARB
=
4892 __glGetProcAddress("glProgramLocalParameter4dvARB");
4893 #ifdef __GLX_ALIGN64
4894 if ((unsigned long) (pc
) & 7) {
4895 (void) memmove(pc
- 4, pc
, 40);
4900 ProgramLocalParameter4dvARB((GLenum
) bswap_ENUM(pc
+ 0),
4901 (GLuint
) bswap_CARD32(pc
+ 4),
4903 bswap_64_array((uint64_t *) (pc
+ 8), 4));
4907 __glXDispSwap_ProgramLocalParameter4fvARB(GLbyte
* pc
)
4909 PFNGLPROGRAMLOCALPARAMETER4FVARBPROC ProgramLocalParameter4fvARB
=
4910 __glGetProcAddress("glProgramLocalParameter4fvARB");
4911 ProgramLocalParameter4fvARB((GLenum
) bswap_ENUM(pc
+ 0),
4912 (GLuint
) bswap_CARD32(pc
+ 4),
4914 bswap_32_array((uint32_t *) (pc
+ 8), 4));
4918 __glXDispSwap_ProgramStringARB(GLbyte
* pc
)
4920 PFNGLPROGRAMSTRINGARBPROC ProgramStringARB
=
4921 __glGetProcAddress("glProgramStringARB");
4922 const GLsizei len
= (GLsizei
) bswap_CARD32(pc
+ 8);
4924 ProgramStringARB((GLenum
) bswap_ENUM(pc
+ 0),
4925 (GLenum
) bswap_ENUM(pc
+ 4),
4926 len
, (const GLvoid
*) (pc
+ 12));
4930 __glXDispSwap_VertexAttrib1fvARB(GLbyte
* pc
)
4932 PFNGLVERTEXATTRIB1FVARBPROC VertexAttrib1fvARB
=
4933 __glGetProcAddress("glVertexAttrib1fvARB");
4934 VertexAttrib1fvARB((GLuint
) bswap_CARD32(pc
+ 0),
4935 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
4940 __glXDispSwap_VertexAttrib2fvARB(GLbyte
* pc
)
4942 PFNGLVERTEXATTRIB2FVARBPROC VertexAttrib2fvARB
=
4943 __glGetProcAddress("glVertexAttrib2fvARB");
4944 VertexAttrib2fvARB((GLuint
) bswap_CARD32(pc
+ 0),
4945 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
4950 __glXDispSwap_VertexAttrib3fvARB(GLbyte
* pc
)
4952 PFNGLVERTEXATTRIB3FVARBPROC VertexAttrib3fvARB
=
4953 __glGetProcAddress("glVertexAttrib3fvARB");
4954 VertexAttrib3fvARB((GLuint
) bswap_CARD32(pc
+ 0),
4955 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
4960 __glXDispSwap_VertexAttrib4fvARB(GLbyte
* pc
)
4962 PFNGLVERTEXATTRIB4FVARBPROC VertexAttrib4fvARB
=
4963 __glGetProcAddress("glVertexAttrib4fvARB");
4964 VertexAttrib4fvARB((GLuint
) bswap_CARD32(pc
+ 0),
4965 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
4970 __glXDispSwap_BindFramebuffer(GLbyte
* pc
)
4972 PFNGLBINDFRAMEBUFFERPROC BindFramebuffer
=
4973 __glGetProcAddress("glBindFramebuffer");
4974 BindFramebuffer((GLenum
) bswap_ENUM(pc
+ 0), (GLuint
) bswap_CARD32(pc
+ 4));
4978 __glXDispSwap_BindRenderbuffer(GLbyte
* pc
)
4980 PFNGLBINDRENDERBUFFERPROC BindRenderbuffer
=
4981 __glGetProcAddress("glBindRenderbuffer");
4982 BindRenderbuffer((GLenum
) bswap_ENUM(pc
+ 0),
4983 (GLuint
) bswap_CARD32(pc
+ 4));
4987 __glXDispSwap_BlitFramebuffer(GLbyte
* pc
)
4989 PFNGLBLITFRAMEBUFFERPROC BlitFramebuffer
=
4990 __glGetProcAddress("glBlitFramebuffer");
4991 BlitFramebuffer((GLint
) bswap_CARD32(pc
+ 0), (GLint
) bswap_CARD32(pc
+ 4),
4992 (GLint
) bswap_CARD32(pc
+ 8), (GLint
) bswap_CARD32(pc
+ 12),
4993 (GLint
) bswap_CARD32(pc
+ 16),
4994 (GLint
) bswap_CARD32(pc
+ 20),
4995 (GLint
) bswap_CARD32(pc
+ 24),
4996 (GLint
) bswap_CARD32(pc
+ 28),
4997 (GLbitfield
) bswap_CARD32(pc
+ 32),
4998 (GLenum
) bswap_ENUM(pc
+ 36));
5002 __glXDispSwap_CheckFramebufferStatus(__GLXclientState
* cl
, GLbyte
* pc
)
5004 PFNGLCHECKFRAMEBUFFERSTATUSPROC CheckFramebufferStatus
=
5005 __glGetProcAddress("glCheckFramebufferStatus");
5006 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5008 __GLXcontext
*const cx
=
5009 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5011 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5015 retval
= CheckFramebufferStatus((GLenum
) bswap_ENUM(pc
+ 0));
5016 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
5024 __glXDispSwap_DeleteFramebuffers(GLbyte
* pc
)
5026 PFNGLDELETEFRAMEBUFFERSPROC DeleteFramebuffers
=
5027 __glGetProcAddress("glDeleteFramebuffers");
5028 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
5030 DeleteFramebuffers(n
,
5031 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
5036 __glXDispSwap_DeleteRenderbuffers(GLbyte
* pc
)
5038 PFNGLDELETERENDERBUFFERSPROC DeleteRenderbuffers
=
5039 __glGetProcAddress("glDeleteRenderbuffers");
5040 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
5042 DeleteRenderbuffers(n
,
5043 (const GLuint
*) bswap_32_array((uint32_t *) (pc
+ 4),
5048 __glXDispSwap_FramebufferRenderbuffer(GLbyte
* pc
)
5050 PFNGLFRAMEBUFFERRENDERBUFFERPROC FramebufferRenderbuffer
=
5051 __glGetProcAddress("glFramebufferRenderbuffer");
5052 FramebufferRenderbuffer((GLenum
) bswap_ENUM(pc
+ 0),
5053 (GLenum
) bswap_ENUM(pc
+ 4),
5054 (GLenum
) bswap_ENUM(pc
+ 8),
5055 (GLuint
) bswap_CARD32(pc
+ 12));
5059 __glXDispSwap_FramebufferTexture1D(GLbyte
* pc
)
5061 PFNGLFRAMEBUFFERTEXTURE1DPROC FramebufferTexture1D
=
5062 __glGetProcAddress("glFramebufferTexture1D");
5063 FramebufferTexture1D((GLenum
) bswap_ENUM(pc
+ 0),
5064 (GLenum
) bswap_ENUM(pc
+ 4),
5065 (GLenum
) bswap_ENUM(pc
+ 8),
5066 (GLuint
) bswap_CARD32(pc
+ 12),
5067 (GLint
) bswap_CARD32(pc
+ 16));
5071 __glXDispSwap_FramebufferTexture2D(GLbyte
* pc
)
5073 PFNGLFRAMEBUFFERTEXTURE2DPROC FramebufferTexture2D
=
5074 __glGetProcAddress("glFramebufferTexture2D");
5075 FramebufferTexture2D((GLenum
) bswap_ENUM(pc
+ 0),
5076 (GLenum
) bswap_ENUM(pc
+ 4),
5077 (GLenum
) bswap_ENUM(pc
+ 8),
5078 (GLuint
) bswap_CARD32(pc
+ 12),
5079 (GLint
) bswap_CARD32(pc
+ 16));
5083 __glXDispSwap_FramebufferTexture3D(GLbyte
* pc
)
5085 PFNGLFRAMEBUFFERTEXTURE3DPROC FramebufferTexture3D
=
5086 __glGetProcAddress("glFramebufferTexture3D");
5087 FramebufferTexture3D((GLenum
) bswap_ENUM(pc
+ 0),
5088 (GLenum
) bswap_ENUM(pc
+ 4),
5089 (GLenum
) bswap_ENUM(pc
+ 8),
5090 (GLuint
) bswap_CARD32(pc
+ 12),
5091 (GLint
) bswap_CARD32(pc
+ 16),
5092 (GLint
) bswap_CARD32(pc
+ 20));
5096 __glXDispSwap_FramebufferTextureLayer(GLbyte
* pc
)
5098 PFNGLFRAMEBUFFERTEXTURELAYERPROC FramebufferTextureLayer
=
5099 __glGetProcAddress("glFramebufferTextureLayer");
5100 FramebufferTextureLayer((GLenum
) bswap_ENUM(pc
+ 0),
5101 (GLenum
) bswap_ENUM(pc
+ 4),
5102 (GLuint
) bswap_CARD32(pc
+ 8),
5103 (GLint
) bswap_CARD32(pc
+ 12),
5104 (GLint
) bswap_CARD32(pc
+ 16));
5108 __glXDispSwap_GenFramebuffers(__GLXclientState
* cl
, GLbyte
* pc
)
5110 PFNGLGENFRAMEBUFFERSPROC GenFramebuffers
=
5111 __glGetProcAddress("glGenFramebuffers");
5112 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5114 __GLXcontext
*const cx
=
5115 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5117 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5119 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
5121 GLuint answerBuffer
[200];
5122 GLuint
*framebuffers
=
5123 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
5125 GenFramebuffers(n
, framebuffers
);
5126 (void) bswap_32_array((uint32_t *) framebuffers
, n
);
5127 __glXSendReplySwap(cl
->client
, framebuffers
, n
, 4, GL_TRUE
, 0);
5135 __glXDispSwap_GenRenderbuffers(__GLXclientState
* cl
, GLbyte
* pc
)
5137 PFNGLGENRENDERBUFFERSPROC GenRenderbuffers
=
5138 __glGetProcAddress("glGenRenderbuffers");
5139 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5141 __GLXcontext
*const cx
=
5142 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5144 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5146 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 0);
5148 GLuint answerBuffer
[200];
5149 GLuint
*renderbuffers
=
5150 __glXGetAnswerBuffer(cl
, n
* 4, answerBuffer
, sizeof(answerBuffer
),
5152 GenRenderbuffers(n
, renderbuffers
);
5153 (void) bswap_32_array((uint32_t *) renderbuffers
, n
);
5154 __glXSendReplySwap(cl
->client
, renderbuffers
, n
, 4, GL_TRUE
, 0);
5162 __glXDispSwap_GenerateMipmap(GLbyte
* pc
)
5164 PFNGLGENERATEMIPMAPPROC GenerateMipmap
=
5165 __glGetProcAddress("glGenerateMipmap");
5166 GenerateMipmap((GLenum
) bswap_ENUM(pc
+ 0));
5170 __glXDispSwap_GetFramebufferAttachmentParameteriv(__GLXclientState
* cl
,
5173 PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC
5174 GetFramebufferAttachmentParameteriv
=
5175 __glGetProcAddress("glGetFramebufferAttachmentParameteriv");
5176 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5178 __GLXcontext
*const cx
=
5179 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5181 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5185 GetFramebufferAttachmentParameteriv((GLenum
) bswap_ENUM(pc
+ 0),
5186 (GLenum
) bswap_ENUM(pc
+ 4),
5187 (GLenum
) bswap_ENUM(pc
+ 8),
5189 (void) bswap_32_array((uint32_t *) params
, 1);
5190 __glXSendReplySwap(cl
->client
, params
, 1, 4, GL_FALSE
, 0);
5198 __glXDispSwap_GetRenderbufferParameteriv(__GLXclientState
* cl
, GLbyte
* pc
)
5200 PFNGLGETRENDERBUFFERPARAMETERIVPROC GetRenderbufferParameteriv
=
5201 __glGetProcAddress("glGetRenderbufferParameteriv");
5202 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5204 __GLXcontext
*const cx
=
5205 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5207 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5211 GetRenderbufferParameteriv((GLenum
) bswap_ENUM(pc
+ 0),
5212 (GLenum
) bswap_ENUM(pc
+ 4), params
);
5213 (void) bswap_32_array((uint32_t *) params
, 1);
5214 __glXSendReplySwap(cl
->client
, params
, 1, 4, GL_FALSE
, 0);
5222 __glXDispSwap_IsFramebuffer(__GLXclientState
* cl
, GLbyte
* pc
)
5224 PFNGLISFRAMEBUFFERPROC IsFramebuffer
=
5225 __glGetProcAddress("glIsFramebuffer");
5226 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5228 __GLXcontext
*const cx
=
5229 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5231 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5235 retval
= IsFramebuffer((GLuint
) bswap_CARD32(pc
+ 0));
5236 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
5244 __glXDispSwap_IsRenderbuffer(__GLXclientState
* cl
, GLbyte
* pc
)
5246 PFNGLISRENDERBUFFERPROC IsRenderbuffer
=
5247 __glGetProcAddress("glIsRenderbuffer");
5248 xGLXVendorPrivateReq
*const req
= (xGLXVendorPrivateReq
*) pc
;
5250 __GLXcontext
*const cx
=
5251 __glXForceCurrent(cl
, bswap_CARD32(&req
->contextTag
), &error
);
5253 pc
+= __GLX_VENDPRIV_HDR_SIZE
;
5257 retval
= IsRenderbuffer((GLuint
) bswap_CARD32(pc
+ 0));
5258 __glXSendReplySwap(cl
->client
, dummy_answer
, 0, 0, GL_FALSE
, retval
);
5266 __glXDispSwap_RenderbufferStorage(GLbyte
* pc
)
5268 PFNGLRENDERBUFFERSTORAGEPROC RenderbufferStorage
=
5269 __glGetProcAddress("glRenderbufferStorage");
5270 RenderbufferStorage((GLenum
) bswap_ENUM(pc
+ 0),
5271 (GLenum
) bswap_ENUM(pc
+ 4),
5272 (GLsizei
) bswap_CARD32(pc
+ 8),
5273 (GLsizei
) bswap_CARD32(pc
+ 12));
5277 __glXDispSwap_RenderbufferStorageMultisample(GLbyte
* pc
)
5279 PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC RenderbufferStorageMultisample
=
5280 __glGetProcAddress("glRenderbufferStorageMultisample");
5281 RenderbufferStorageMultisample((GLenum
) bswap_ENUM(pc
+ 0),
5282 (GLsizei
) bswap_CARD32(pc
+ 4),
5283 (GLenum
) bswap_ENUM(pc
+ 8),
5284 (GLsizei
) bswap_CARD32(pc
+ 12),
5285 (GLsizei
) bswap_CARD32(pc
+ 16));
5289 __glXDispSwap_SecondaryColor3fvEXT(GLbyte
* pc
)
5291 PFNGLSECONDARYCOLOR3FVEXTPROC SecondaryColor3fvEXT
=
5292 __glGetProcAddress("glSecondaryColor3fvEXT");
5293 SecondaryColor3fvEXT((const GLfloat
*)
5294 bswap_32_array((uint32_t *) (pc
+ 0), 3));
5298 __glXDispSwap_FogCoordfvEXT(GLbyte
* pc
)
5300 PFNGLFOGCOORDFVEXTPROC FogCoordfvEXT
=
5301 __glGetProcAddress("glFogCoordfvEXT");
5302 FogCoordfvEXT((const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 0), 1));
5306 __glXDispSwap_VertexAttrib1dvNV(GLbyte
* pc
)
5308 PFNGLVERTEXATTRIB1DVNVPROC VertexAttrib1dvNV
=
5309 __glGetProcAddress("glVertexAttrib1dvNV");
5310 #ifdef __GLX_ALIGN64
5311 if ((unsigned long) (pc
) & 7) {
5312 (void) memmove(pc
- 4, pc
, 12);
5317 VertexAttrib1dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5318 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
5323 __glXDispSwap_VertexAttrib1fvNV(GLbyte
* pc
)
5325 PFNGLVERTEXATTRIB1FVNVPROC VertexAttrib1fvNV
=
5326 __glGetProcAddress("glVertexAttrib1fvNV");
5327 VertexAttrib1fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5328 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
5333 __glXDispSwap_VertexAttrib1svNV(GLbyte
* pc
)
5335 PFNGLVERTEXATTRIB1SVNVPROC VertexAttrib1svNV
=
5336 __glGetProcAddress("glVertexAttrib1svNV");
5337 VertexAttrib1svNV((GLuint
) bswap_CARD32(pc
+ 0),
5338 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
5343 __glXDispSwap_VertexAttrib2dvNV(GLbyte
* pc
)
5345 PFNGLVERTEXATTRIB2DVNVPROC VertexAttrib2dvNV
=
5346 __glGetProcAddress("glVertexAttrib2dvNV");
5347 #ifdef __GLX_ALIGN64
5348 if ((unsigned long) (pc
) & 7) {
5349 (void) memmove(pc
- 4, pc
, 20);
5354 VertexAttrib2dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5355 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
5360 __glXDispSwap_VertexAttrib2fvNV(GLbyte
* pc
)
5362 PFNGLVERTEXATTRIB2FVNVPROC VertexAttrib2fvNV
=
5363 __glGetProcAddress("glVertexAttrib2fvNV");
5364 VertexAttrib2fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5365 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
5370 __glXDispSwap_VertexAttrib2svNV(GLbyte
* pc
)
5372 PFNGLVERTEXATTRIB2SVNVPROC VertexAttrib2svNV
=
5373 __glGetProcAddress("glVertexAttrib2svNV");
5374 VertexAttrib2svNV((GLuint
) bswap_CARD32(pc
+ 0),
5375 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
5380 __glXDispSwap_VertexAttrib3dvNV(GLbyte
* pc
)
5382 PFNGLVERTEXATTRIB3DVNVPROC VertexAttrib3dvNV
=
5383 __glGetProcAddress("glVertexAttrib3dvNV");
5384 #ifdef __GLX_ALIGN64
5385 if ((unsigned long) (pc
) & 7) {
5386 (void) memmove(pc
- 4, pc
, 28);
5391 VertexAttrib3dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5392 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
5397 __glXDispSwap_VertexAttrib3fvNV(GLbyte
* pc
)
5399 PFNGLVERTEXATTRIB3FVNVPROC VertexAttrib3fvNV
=
5400 __glGetProcAddress("glVertexAttrib3fvNV");
5401 VertexAttrib3fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5402 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
5407 __glXDispSwap_VertexAttrib3svNV(GLbyte
* pc
)
5409 PFNGLVERTEXATTRIB3SVNVPROC VertexAttrib3svNV
=
5410 __glGetProcAddress("glVertexAttrib3svNV");
5411 VertexAttrib3svNV((GLuint
) bswap_CARD32(pc
+ 0),
5412 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
5417 __glXDispSwap_VertexAttrib4dvNV(GLbyte
* pc
)
5419 PFNGLVERTEXATTRIB4DVNVPROC VertexAttrib4dvNV
=
5420 __glGetProcAddress("glVertexAttrib4dvNV");
5421 #ifdef __GLX_ALIGN64
5422 if ((unsigned long) (pc
) & 7) {
5423 (void) memmove(pc
- 4, pc
, 36);
5428 VertexAttrib4dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5429 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 4),
5434 __glXDispSwap_VertexAttrib4fvNV(GLbyte
* pc
)
5436 PFNGLVERTEXATTRIB4FVNVPROC VertexAttrib4fvNV
=
5437 __glGetProcAddress("glVertexAttrib4fvNV");
5438 VertexAttrib4fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5439 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 4),
5444 __glXDispSwap_VertexAttrib4svNV(GLbyte
* pc
)
5446 PFNGLVERTEXATTRIB4SVNVPROC VertexAttrib4svNV
=
5447 __glGetProcAddress("glVertexAttrib4svNV");
5448 VertexAttrib4svNV((GLuint
) bswap_CARD32(pc
+ 0),
5449 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 4),
5454 __glXDispSwap_VertexAttrib4ubvNV(GLbyte
* pc
)
5456 PFNGLVERTEXATTRIB4UBVNVPROC VertexAttrib4ubvNV
=
5457 __glGetProcAddress("glVertexAttrib4ubvNV");
5458 VertexAttrib4ubvNV((GLuint
) bswap_CARD32(pc
+ 0),
5459 (const GLubyte
*) (pc
+ 4));
5463 __glXDispSwap_VertexAttribs1dvNV(GLbyte
* pc
)
5465 PFNGLVERTEXATTRIBS1DVNVPROC VertexAttribs1dvNV
=
5466 __glGetProcAddress("glVertexAttribs1dvNV");
5467 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5469 #ifdef __GLX_ALIGN64
5470 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 8)) - 4;
5472 if ((unsigned long) (pc
) & 7) {
5473 (void) memmove(pc
- 4, pc
, cmdlen
);
5478 VertexAttribs1dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5480 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 8),
5485 __glXDispSwap_VertexAttribs1fvNV(GLbyte
* pc
)
5487 PFNGLVERTEXATTRIBS1FVNVPROC VertexAttribs1fvNV
=
5488 __glGetProcAddress("glVertexAttribs1fvNV");
5489 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5491 VertexAttribs1fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5493 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
5498 __glXDispSwap_VertexAttribs1svNV(GLbyte
* pc
)
5500 PFNGLVERTEXATTRIBS1SVNVPROC VertexAttribs1svNV
=
5501 __glGetProcAddress("glVertexAttribs1svNV");
5502 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5504 VertexAttribs1svNV((GLuint
) bswap_CARD32(pc
+ 0),
5506 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 8),
5511 __glXDispSwap_VertexAttribs2dvNV(GLbyte
* pc
)
5513 PFNGLVERTEXATTRIBS2DVNVPROC VertexAttribs2dvNV
=
5514 __glGetProcAddress("glVertexAttribs2dvNV");
5515 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5517 #ifdef __GLX_ALIGN64
5518 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 16)) - 4;
5520 if ((unsigned long) (pc
) & 7) {
5521 (void) memmove(pc
- 4, pc
, cmdlen
);
5526 VertexAttribs2dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5528 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 8),
5533 __glXDispSwap_VertexAttribs2fvNV(GLbyte
* pc
)
5535 PFNGLVERTEXATTRIBS2FVNVPROC VertexAttribs2fvNV
=
5536 __glGetProcAddress("glVertexAttribs2fvNV");
5537 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5539 VertexAttribs2fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5541 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
5546 __glXDispSwap_VertexAttribs2svNV(GLbyte
* pc
)
5548 PFNGLVERTEXATTRIBS2SVNVPROC VertexAttribs2svNV
=
5549 __glGetProcAddress("glVertexAttribs2svNV");
5550 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5552 VertexAttribs2svNV((GLuint
) bswap_CARD32(pc
+ 0),
5554 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 8),
5559 __glXDispSwap_VertexAttribs3dvNV(GLbyte
* pc
)
5561 PFNGLVERTEXATTRIBS3DVNVPROC VertexAttribs3dvNV
=
5562 __glGetProcAddress("glVertexAttribs3dvNV");
5563 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5565 #ifdef __GLX_ALIGN64
5566 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 24)) - 4;
5568 if ((unsigned long) (pc
) & 7) {
5569 (void) memmove(pc
- 4, pc
, cmdlen
);
5574 VertexAttribs3dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5576 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 8),
5581 __glXDispSwap_VertexAttribs3fvNV(GLbyte
* pc
)
5583 PFNGLVERTEXATTRIBS3FVNVPROC VertexAttribs3fvNV
=
5584 __glGetProcAddress("glVertexAttribs3fvNV");
5585 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5587 VertexAttribs3fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5589 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
5594 __glXDispSwap_VertexAttribs3svNV(GLbyte
* pc
)
5596 PFNGLVERTEXATTRIBS3SVNVPROC VertexAttribs3svNV
=
5597 __glGetProcAddress("glVertexAttribs3svNV");
5598 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5600 VertexAttribs3svNV((GLuint
) bswap_CARD32(pc
+ 0),
5602 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 8),
5607 __glXDispSwap_VertexAttribs4dvNV(GLbyte
* pc
)
5609 PFNGLVERTEXATTRIBS4DVNVPROC VertexAttribs4dvNV
=
5610 __glGetProcAddress("glVertexAttribs4dvNV");
5611 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5613 #ifdef __GLX_ALIGN64
5614 const GLuint cmdlen
= 12 + __GLX_PAD((n
* 32)) - 4;
5616 if ((unsigned long) (pc
) & 7) {
5617 (void) memmove(pc
- 4, pc
, cmdlen
);
5622 VertexAttribs4dvNV((GLuint
) bswap_CARD32(pc
+ 0),
5624 (const GLdouble
*) bswap_64_array((uint64_t *) (pc
+ 8),
5629 __glXDispSwap_VertexAttribs4fvNV(GLbyte
* pc
)
5631 PFNGLVERTEXATTRIBS4FVNVPROC VertexAttribs4fvNV
=
5632 __glGetProcAddress("glVertexAttribs4fvNV");
5633 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5635 VertexAttribs4fvNV((GLuint
) bswap_CARD32(pc
+ 0),
5637 (const GLfloat
*) bswap_32_array((uint32_t *) (pc
+ 8),
5642 __glXDispSwap_VertexAttribs4svNV(GLbyte
* pc
)
5644 PFNGLVERTEXATTRIBS4SVNVPROC VertexAttribs4svNV
=
5645 __glGetProcAddress("glVertexAttribs4svNV");
5646 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5648 VertexAttribs4svNV((GLuint
) bswap_CARD32(pc
+ 0),
5650 (const GLshort
*) bswap_16_array((uint16_t *) (pc
+ 8),
5655 __glXDispSwap_VertexAttribs4ubvNV(GLbyte
* pc
)
5657 PFNGLVERTEXATTRIBS4UBVNVPROC VertexAttribs4ubvNV
=
5658 __glGetProcAddress("glVertexAttribs4ubvNV");
5659 const GLsizei n
= (GLsizei
) bswap_CARD32(pc
+ 4);
5661 VertexAttribs4ubvNV((GLuint
) bswap_CARD32(pc
+ 0),
5662 n
, (const GLubyte
*) (pc
+ 8));
5666 __glXDispSwap_ActiveStencilFaceEXT(GLbyte
* pc
)
5668 PFNGLACTIVESTENCILFACEEXTPROC ActiveStencilFaceEXT
=
5669 __glGetProcAddress("glActiveStencilFaceEXT");
5670 ActiveStencilFaceEXT((GLenum
) bswap_ENUM(pc
+ 0));