14642e01fSmrg/* DO NOT EDIT - This file generated automatically by glX_proto_recv.py (from Mesa) script */
24642e01fSmrg
34642e01fSmrg/*
44642e01fSmrg * (C) Copyright IBM Corporation 2005
54642e01fSmrg * All Rights Reserved.
635c4bbdfSmrg *
74642e01fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
84642e01fSmrg * copy of this software and associated documentation files (the "Software"),
94642e01fSmrg * to deal in the Software without restriction, including without limitation
104642e01fSmrg * the rights to use, copy, modify, merge, publish, distribute, sub license,
114642e01fSmrg * and/or sell copies of the Software, and to permit persons to whom the
124642e01fSmrg * Software is furnished to do so, subject to the following conditions:
1335c4bbdfSmrg *
144642e01fSmrg * The above copyright notice and this permission notice (including the next
154642e01fSmrg * paragraph) shall be included in all copies or substantial portions of the
164642e01fSmrg * Software.
1735c4bbdfSmrg *
184642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
194642e01fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204642e01fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
214642e01fSmrg * IBM,
224642e01fSmrg * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
234642e01fSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
244642e01fSmrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
254642e01fSmrg * SOFTWARE.
264642e01fSmrg */
274642e01fSmrg
284642e01fSmrg#include <inttypes.h>
2935c4bbdfSmrg#include "glxserver.h"
304642e01fSmrg#include "indirect_size.h"
314642e01fSmrg#include "indirect_size_get.h"
324642e01fSmrg#include "indirect_dispatch.h"
334642e01fSmrg#include "glxbyteorder.h"
344642e01fSmrg#include "indirect_util.h"
354642e01fSmrg#include "singlesize.h"
364642e01fSmrg
374642e01fSmrg#define __GLX_PAD(x)  (((x) + 3) & ~3)
384642e01fSmrg
394642e01fSmrgtypedef struct {
404642e01fSmrg    __GLX_PIXEL_3D_HDR;
414642e01fSmrg} __GLXpixel3DHeader;
424642e01fSmrg
4335c4bbdfSmrgextern GLboolean __glXErrorOccured(void);
4435c4bbdfSmrgextern void __glXClearErrorOccured(void);
454642e01fSmrg
4635c4bbdfSmrgstatic const unsigned dummy_answer[2] = { 0, 0 };
474642e01fSmrg
4835c4bbdfSmrgint
4935c4bbdfSmrg__glXDisp_NewList(__GLXclientState * cl, GLbyte * pc)
504642e01fSmrg{
5135c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
524642e01fSmrg    int error;
5335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
544642e01fSmrg
554642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
5635c4bbdfSmrg    if (cx != NULL) {
5735c4bbdfSmrg        glNewList(*(GLuint *) (pc + 0), *(GLenum *) (pc + 4));
584642e01fSmrg        error = Success;
594642e01fSmrg    }
604642e01fSmrg
614642e01fSmrg    return error;
624642e01fSmrg}
634642e01fSmrg
6435c4bbdfSmrgint
6535c4bbdfSmrg__glXDisp_EndList(__GLXclientState * cl, GLbyte * pc)
664642e01fSmrg{
6735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
684642e01fSmrg    int error;
6935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
704642e01fSmrg
714642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
7235c4bbdfSmrg    if (cx != NULL) {
7335c4bbdfSmrg        glEndList();
744642e01fSmrg        error = Success;
754642e01fSmrg    }
764642e01fSmrg
774642e01fSmrg    return error;
784642e01fSmrg}
794642e01fSmrg
8035c4bbdfSmrgvoid
8135c4bbdfSmrg__glXDisp_CallList(GLbyte * pc)
824642e01fSmrg{
8335c4bbdfSmrg    glCallList(*(GLuint *) (pc + 0));
844642e01fSmrg}
854642e01fSmrg
8635c4bbdfSmrgvoid
8735c4bbdfSmrg__glXDisp_CallLists(GLbyte * pc)
884642e01fSmrg{
8935c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 0);
9035c4bbdfSmrg    const GLenum type = *(GLenum *) (pc + 4);
9135c4bbdfSmrg    const GLvoid *lists = (const GLvoid *) (pc + 8);
924642e01fSmrg
9335c4bbdfSmrg    lists = (const GLvoid *) (pc + 8);
9435c4bbdfSmrg
9535c4bbdfSmrg    glCallLists(n, type, lists);
964642e01fSmrg}
974642e01fSmrg
9835c4bbdfSmrgint
9935c4bbdfSmrg__glXDisp_DeleteLists(__GLXclientState * cl, GLbyte * pc)
1004642e01fSmrg{
10135c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
1024642e01fSmrg    int error;
10335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
1044642e01fSmrg
1054642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
10635c4bbdfSmrg    if (cx != NULL) {
10735c4bbdfSmrg        glDeleteLists(*(GLuint *) (pc + 0), *(GLsizei *) (pc + 4));
1084642e01fSmrg        error = Success;
1094642e01fSmrg    }
1104642e01fSmrg
1114642e01fSmrg    return error;
1124642e01fSmrg}
1134642e01fSmrg
11435c4bbdfSmrgint
11535c4bbdfSmrg__glXDisp_GenLists(__GLXclientState * cl, GLbyte * pc)
1164642e01fSmrg{
11735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
1184642e01fSmrg    int error;
11935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
1204642e01fSmrg
1214642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
12235c4bbdfSmrg    if (cx != NULL) {
1234642e01fSmrg        GLuint retval;
12435c4bbdfSmrg
12535c4bbdfSmrg        retval = glGenLists(*(GLsizei *) (pc + 0));
1264642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
1274642e01fSmrg        error = Success;
1284642e01fSmrg    }
1294642e01fSmrg
1304642e01fSmrg    return error;
1314642e01fSmrg}
1324642e01fSmrg
13335c4bbdfSmrgvoid
13435c4bbdfSmrg__glXDisp_ListBase(GLbyte * pc)
1354642e01fSmrg{
13635c4bbdfSmrg    glListBase(*(GLuint *) (pc + 0));
1374642e01fSmrg}
1384642e01fSmrg
13935c4bbdfSmrgvoid
14035c4bbdfSmrg__glXDisp_Begin(GLbyte * pc)
1414642e01fSmrg{
14235c4bbdfSmrg    glBegin(*(GLenum *) (pc + 0));
1434642e01fSmrg}
1444642e01fSmrg
14535c4bbdfSmrgvoid
14635c4bbdfSmrg__glXDisp_Bitmap(GLbyte * pc)
1474642e01fSmrg{
14835c4bbdfSmrg    const GLubyte *const bitmap = (const GLubyte *) ((pc + 44));
14935c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
1504642e01fSmrg
15135c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
15235c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
15335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
15435c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
15535c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
1564642e01fSmrg
15735c4bbdfSmrg    glBitmap(*(GLsizei *) (pc + 20),
15835c4bbdfSmrg             *(GLsizei *) (pc + 24),
15935c4bbdfSmrg             *(GLfloat *) (pc + 28),
16035c4bbdfSmrg             *(GLfloat *) (pc + 32),
16135c4bbdfSmrg             *(GLfloat *) (pc + 36), *(GLfloat *) (pc + 40), bitmap);
1624642e01fSmrg}
1634642e01fSmrg
16435c4bbdfSmrgvoid
16535c4bbdfSmrg__glXDisp_Color3bv(GLbyte * pc)
1664642e01fSmrg{
16735c4bbdfSmrg    glColor3bv((const GLbyte *) (pc + 0));
1684642e01fSmrg}
1694642e01fSmrg
17035c4bbdfSmrgvoid
17135c4bbdfSmrg__glXDisp_Color3dv(GLbyte * pc)
1724642e01fSmrg{
1734642e01fSmrg#ifdef __GLX_ALIGN64
17435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
17535c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
1764642e01fSmrg        pc -= 4;
1774642e01fSmrg    }
1784642e01fSmrg#endif
1794642e01fSmrg
18035c4bbdfSmrg    glColor3dv((const GLdouble *) (pc + 0));
1814642e01fSmrg}
1824642e01fSmrg
18335c4bbdfSmrgvoid
18435c4bbdfSmrg__glXDisp_Color3fv(GLbyte * pc)
1854642e01fSmrg{
18635c4bbdfSmrg    glColor3fv((const GLfloat *) (pc + 0));
1874642e01fSmrg}
1884642e01fSmrg
18935c4bbdfSmrgvoid
19035c4bbdfSmrg__glXDisp_Color3iv(GLbyte * pc)
1914642e01fSmrg{
19235c4bbdfSmrg    glColor3iv((const GLint *) (pc + 0));
1934642e01fSmrg}
1944642e01fSmrg
19535c4bbdfSmrgvoid
19635c4bbdfSmrg__glXDisp_Color3sv(GLbyte * pc)
1974642e01fSmrg{
19835c4bbdfSmrg    glColor3sv((const GLshort *) (pc + 0));
1994642e01fSmrg}
2004642e01fSmrg
20135c4bbdfSmrgvoid
20235c4bbdfSmrg__glXDisp_Color3ubv(GLbyte * pc)
2034642e01fSmrg{
20435c4bbdfSmrg    glColor3ubv((const GLubyte *) (pc + 0));
2054642e01fSmrg}
2064642e01fSmrg
20735c4bbdfSmrgvoid
20835c4bbdfSmrg__glXDisp_Color3uiv(GLbyte * pc)
2094642e01fSmrg{
21035c4bbdfSmrg    glColor3uiv((const GLuint *) (pc + 0));
2114642e01fSmrg}
2124642e01fSmrg
21335c4bbdfSmrgvoid
21435c4bbdfSmrg__glXDisp_Color3usv(GLbyte * pc)
2154642e01fSmrg{
21635c4bbdfSmrg    glColor3usv((const GLushort *) (pc + 0));
2174642e01fSmrg}
2184642e01fSmrg
21935c4bbdfSmrgvoid
22035c4bbdfSmrg__glXDisp_Color4bv(GLbyte * pc)
2214642e01fSmrg{
22235c4bbdfSmrg    glColor4bv((const GLbyte *) (pc + 0));
2234642e01fSmrg}
2244642e01fSmrg
22535c4bbdfSmrgvoid
22635c4bbdfSmrg__glXDisp_Color4dv(GLbyte * pc)
2274642e01fSmrg{
2284642e01fSmrg#ifdef __GLX_ALIGN64
22935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
23035c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
2314642e01fSmrg        pc -= 4;
2324642e01fSmrg    }
2334642e01fSmrg#endif
2344642e01fSmrg
23535c4bbdfSmrg    glColor4dv((const GLdouble *) (pc + 0));
2364642e01fSmrg}
2374642e01fSmrg
23835c4bbdfSmrgvoid
23935c4bbdfSmrg__glXDisp_Color4fv(GLbyte * pc)
2404642e01fSmrg{
24135c4bbdfSmrg    glColor4fv((const GLfloat *) (pc + 0));
2424642e01fSmrg}
2434642e01fSmrg
24435c4bbdfSmrgvoid
24535c4bbdfSmrg__glXDisp_Color4iv(GLbyte * pc)
2464642e01fSmrg{
24735c4bbdfSmrg    glColor4iv((const GLint *) (pc + 0));
2484642e01fSmrg}
2494642e01fSmrg
25035c4bbdfSmrgvoid
25135c4bbdfSmrg__glXDisp_Color4sv(GLbyte * pc)
2524642e01fSmrg{
25335c4bbdfSmrg    glColor4sv((const GLshort *) (pc + 0));
2544642e01fSmrg}
2554642e01fSmrg
25635c4bbdfSmrgvoid
25735c4bbdfSmrg__glXDisp_Color4ubv(GLbyte * pc)
2584642e01fSmrg{
25935c4bbdfSmrg    glColor4ubv((const GLubyte *) (pc + 0));
2604642e01fSmrg}
2614642e01fSmrg
26235c4bbdfSmrgvoid
26335c4bbdfSmrg__glXDisp_Color4uiv(GLbyte * pc)
2644642e01fSmrg{
26535c4bbdfSmrg    glColor4uiv((const GLuint *) (pc + 0));
2664642e01fSmrg}
2674642e01fSmrg
26835c4bbdfSmrgvoid
26935c4bbdfSmrg__glXDisp_Color4usv(GLbyte * pc)
2704642e01fSmrg{
27135c4bbdfSmrg    glColor4usv((const GLushort *) (pc + 0));
2724642e01fSmrg}
2734642e01fSmrg
27435c4bbdfSmrgvoid
27535c4bbdfSmrg__glXDisp_EdgeFlagv(GLbyte * pc)
2764642e01fSmrg{
27735c4bbdfSmrg    glEdgeFlagv((const GLboolean *) (pc + 0));
2784642e01fSmrg}
2794642e01fSmrg
28035c4bbdfSmrgvoid
28135c4bbdfSmrg__glXDisp_End(GLbyte * pc)
2824642e01fSmrg{
28335c4bbdfSmrg    glEnd();
2844642e01fSmrg}
2854642e01fSmrg
28635c4bbdfSmrgvoid
28735c4bbdfSmrg__glXDisp_Indexdv(GLbyte * pc)
2884642e01fSmrg{
2894642e01fSmrg#ifdef __GLX_ALIGN64
29035c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
29135c4bbdfSmrg        (void) memmove(pc - 4, pc, 8);
2924642e01fSmrg        pc -= 4;
2934642e01fSmrg    }
2944642e01fSmrg#endif
2954642e01fSmrg
29635c4bbdfSmrg    glIndexdv((const GLdouble *) (pc + 0));
2974642e01fSmrg}
2984642e01fSmrg
29935c4bbdfSmrgvoid
30035c4bbdfSmrg__glXDisp_Indexfv(GLbyte * pc)
3014642e01fSmrg{
30235c4bbdfSmrg    glIndexfv((const GLfloat *) (pc + 0));
3034642e01fSmrg}
3044642e01fSmrg
30535c4bbdfSmrgvoid
30635c4bbdfSmrg__glXDisp_Indexiv(GLbyte * pc)
3074642e01fSmrg{
30835c4bbdfSmrg    glIndexiv((const GLint *) (pc + 0));
3094642e01fSmrg}
3104642e01fSmrg
31135c4bbdfSmrgvoid
31235c4bbdfSmrg__glXDisp_Indexsv(GLbyte * pc)
3134642e01fSmrg{
31435c4bbdfSmrg    glIndexsv((const GLshort *) (pc + 0));
3154642e01fSmrg}
3164642e01fSmrg
31735c4bbdfSmrgvoid
31835c4bbdfSmrg__glXDisp_Normal3bv(GLbyte * pc)
3194642e01fSmrg{
32035c4bbdfSmrg    glNormal3bv((const GLbyte *) (pc + 0));
3214642e01fSmrg}
3224642e01fSmrg
32335c4bbdfSmrgvoid
32435c4bbdfSmrg__glXDisp_Normal3dv(GLbyte * pc)
3254642e01fSmrg{
3264642e01fSmrg#ifdef __GLX_ALIGN64
32735c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
32835c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
3294642e01fSmrg        pc -= 4;
3304642e01fSmrg    }
3314642e01fSmrg#endif
3324642e01fSmrg
33335c4bbdfSmrg    glNormal3dv((const GLdouble *) (pc + 0));
3344642e01fSmrg}
3354642e01fSmrg
33635c4bbdfSmrgvoid
33735c4bbdfSmrg__glXDisp_Normal3fv(GLbyte * pc)
3384642e01fSmrg{
33935c4bbdfSmrg    glNormal3fv((const GLfloat *) (pc + 0));
3404642e01fSmrg}
3414642e01fSmrg
34235c4bbdfSmrgvoid
34335c4bbdfSmrg__glXDisp_Normal3iv(GLbyte * pc)
3444642e01fSmrg{
34535c4bbdfSmrg    glNormal3iv((const GLint *) (pc + 0));
3464642e01fSmrg}
3474642e01fSmrg
34835c4bbdfSmrgvoid
34935c4bbdfSmrg__glXDisp_Normal3sv(GLbyte * pc)
3504642e01fSmrg{
35135c4bbdfSmrg    glNormal3sv((const GLshort *) (pc + 0));
3524642e01fSmrg}
3534642e01fSmrg
35435c4bbdfSmrgvoid
35535c4bbdfSmrg__glXDisp_RasterPos2dv(GLbyte * pc)
3564642e01fSmrg{
3574642e01fSmrg#ifdef __GLX_ALIGN64
35835c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
35935c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
3604642e01fSmrg        pc -= 4;
3614642e01fSmrg    }
3624642e01fSmrg#endif
3634642e01fSmrg
36435c4bbdfSmrg    glRasterPos2dv((const GLdouble *) (pc + 0));
3654642e01fSmrg}
3664642e01fSmrg
36735c4bbdfSmrgvoid
36835c4bbdfSmrg__glXDisp_RasterPos2fv(GLbyte * pc)
3694642e01fSmrg{
37035c4bbdfSmrg    glRasterPos2fv((const GLfloat *) (pc + 0));
3714642e01fSmrg}
3724642e01fSmrg
37335c4bbdfSmrgvoid
37435c4bbdfSmrg__glXDisp_RasterPos2iv(GLbyte * pc)
3754642e01fSmrg{
37635c4bbdfSmrg    glRasterPos2iv((const GLint *) (pc + 0));
3774642e01fSmrg}
3784642e01fSmrg
37935c4bbdfSmrgvoid
38035c4bbdfSmrg__glXDisp_RasterPos2sv(GLbyte * pc)
3814642e01fSmrg{
38235c4bbdfSmrg    glRasterPos2sv((const GLshort *) (pc + 0));
3834642e01fSmrg}
3844642e01fSmrg
38535c4bbdfSmrgvoid
38635c4bbdfSmrg__glXDisp_RasterPos3dv(GLbyte * pc)
3874642e01fSmrg{
3884642e01fSmrg#ifdef __GLX_ALIGN64
38935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
39035c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
3914642e01fSmrg        pc -= 4;
3924642e01fSmrg    }
3934642e01fSmrg#endif
3944642e01fSmrg
39535c4bbdfSmrg    glRasterPos3dv((const GLdouble *) (pc + 0));
3964642e01fSmrg}
3974642e01fSmrg
39835c4bbdfSmrgvoid
39935c4bbdfSmrg__glXDisp_RasterPos3fv(GLbyte * pc)
4004642e01fSmrg{
40135c4bbdfSmrg    glRasterPos3fv((const GLfloat *) (pc + 0));
4024642e01fSmrg}
4034642e01fSmrg
40435c4bbdfSmrgvoid
40535c4bbdfSmrg__glXDisp_RasterPos3iv(GLbyte * pc)
4064642e01fSmrg{
40735c4bbdfSmrg    glRasterPos3iv((const GLint *) (pc + 0));
4084642e01fSmrg}
4094642e01fSmrg
41035c4bbdfSmrgvoid
41135c4bbdfSmrg__glXDisp_RasterPos3sv(GLbyte * pc)
4124642e01fSmrg{
41335c4bbdfSmrg    glRasterPos3sv((const GLshort *) (pc + 0));
4144642e01fSmrg}
4154642e01fSmrg
41635c4bbdfSmrgvoid
41735c4bbdfSmrg__glXDisp_RasterPos4dv(GLbyte * pc)
4184642e01fSmrg{
4194642e01fSmrg#ifdef __GLX_ALIGN64
42035c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
42135c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
4224642e01fSmrg        pc -= 4;
4234642e01fSmrg    }
4244642e01fSmrg#endif
4254642e01fSmrg
42635c4bbdfSmrg    glRasterPos4dv((const GLdouble *) (pc + 0));
4274642e01fSmrg}
4284642e01fSmrg
42935c4bbdfSmrgvoid
43035c4bbdfSmrg__glXDisp_RasterPos4fv(GLbyte * pc)
4314642e01fSmrg{
43235c4bbdfSmrg    glRasterPos4fv((const GLfloat *) (pc + 0));
4334642e01fSmrg}
4344642e01fSmrg
43535c4bbdfSmrgvoid
43635c4bbdfSmrg__glXDisp_RasterPos4iv(GLbyte * pc)
4374642e01fSmrg{
43835c4bbdfSmrg    glRasterPos4iv((const GLint *) (pc + 0));
4394642e01fSmrg}
4404642e01fSmrg
44135c4bbdfSmrgvoid
44235c4bbdfSmrg__glXDisp_RasterPos4sv(GLbyte * pc)
4434642e01fSmrg{
44435c4bbdfSmrg    glRasterPos4sv((const GLshort *) (pc + 0));
4454642e01fSmrg}
4464642e01fSmrg
44735c4bbdfSmrgvoid
44835c4bbdfSmrg__glXDisp_Rectdv(GLbyte * pc)
4494642e01fSmrg{
4504642e01fSmrg#ifdef __GLX_ALIGN64
45135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
45235c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
4534642e01fSmrg        pc -= 4;
4544642e01fSmrg    }
4554642e01fSmrg#endif
4564642e01fSmrg
45735c4bbdfSmrg    glRectdv((const GLdouble *) (pc + 0), (const GLdouble *) (pc + 16));
4584642e01fSmrg}
4594642e01fSmrg
46035c4bbdfSmrgvoid
46135c4bbdfSmrg__glXDisp_Rectfv(GLbyte * pc)
4624642e01fSmrg{
46335c4bbdfSmrg    glRectfv((const GLfloat *) (pc + 0), (const GLfloat *) (pc + 8));
4644642e01fSmrg}
4654642e01fSmrg
46635c4bbdfSmrgvoid
46735c4bbdfSmrg__glXDisp_Rectiv(GLbyte * pc)
4684642e01fSmrg{
46935c4bbdfSmrg    glRectiv((const GLint *) (pc + 0), (const GLint *) (pc + 8));
4704642e01fSmrg}
4714642e01fSmrg
47235c4bbdfSmrgvoid
47335c4bbdfSmrg__glXDisp_Rectsv(GLbyte * pc)
4744642e01fSmrg{
47535c4bbdfSmrg    glRectsv((const GLshort *) (pc + 0), (const GLshort *) (pc + 4));
4764642e01fSmrg}
4774642e01fSmrg
47835c4bbdfSmrgvoid
47935c4bbdfSmrg__glXDisp_TexCoord1dv(GLbyte * pc)
4804642e01fSmrg{
4814642e01fSmrg#ifdef __GLX_ALIGN64
48235c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
48335c4bbdfSmrg        (void) memmove(pc - 4, pc, 8);
4844642e01fSmrg        pc -= 4;
4854642e01fSmrg    }
4864642e01fSmrg#endif
4874642e01fSmrg
48835c4bbdfSmrg    glTexCoord1dv((const GLdouble *) (pc + 0));
4894642e01fSmrg}
4904642e01fSmrg
49135c4bbdfSmrgvoid
49235c4bbdfSmrg__glXDisp_TexCoord1fv(GLbyte * pc)
4934642e01fSmrg{
49435c4bbdfSmrg    glTexCoord1fv((const GLfloat *) (pc + 0));
4954642e01fSmrg}
4964642e01fSmrg
49735c4bbdfSmrgvoid
49835c4bbdfSmrg__glXDisp_TexCoord1iv(GLbyte * pc)
4994642e01fSmrg{
50035c4bbdfSmrg    glTexCoord1iv((const GLint *) (pc + 0));
5014642e01fSmrg}
5024642e01fSmrg
50335c4bbdfSmrgvoid
50435c4bbdfSmrg__glXDisp_TexCoord1sv(GLbyte * pc)
5054642e01fSmrg{
50635c4bbdfSmrg    glTexCoord1sv((const GLshort *) (pc + 0));
5074642e01fSmrg}
5084642e01fSmrg
50935c4bbdfSmrgvoid
51035c4bbdfSmrg__glXDisp_TexCoord2dv(GLbyte * pc)
5114642e01fSmrg{
5124642e01fSmrg#ifdef __GLX_ALIGN64
51335c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
51435c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
5154642e01fSmrg        pc -= 4;
5164642e01fSmrg    }
5174642e01fSmrg#endif
5184642e01fSmrg
51935c4bbdfSmrg    glTexCoord2dv((const GLdouble *) (pc + 0));
5204642e01fSmrg}
5214642e01fSmrg
52235c4bbdfSmrgvoid
52335c4bbdfSmrg__glXDisp_TexCoord2fv(GLbyte * pc)
5244642e01fSmrg{
52535c4bbdfSmrg    glTexCoord2fv((const GLfloat *) (pc + 0));
5264642e01fSmrg}
5274642e01fSmrg
52835c4bbdfSmrgvoid
52935c4bbdfSmrg__glXDisp_TexCoord2iv(GLbyte * pc)
5304642e01fSmrg{
53135c4bbdfSmrg    glTexCoord2iv((const GLint *) (pc + 0));
5324642e01fSmrg}
5334642e01fSmrg
53435c4bbdfSmrgvoid
53535c4bbdfSmrg__glXDisp_TexCoord2sv(GLbyte * pc)
5364642e01fSmrg{
53735c4bbdfSmrg    glTexCoord2sv((const GLshort *) (pc + 0));
5384642e01fSmrg}
5394642e01fSmrg
54035c4bbdfSmrgvoid
54135c4bbdfSmrg__glXDisp_TexCoord3dv(GLbyte * pc)
5424642e01fSmrg{
5434642e01fSmrg#ifdef __GLX_ALIGN64
54435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
54535c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
5464642e01fSmrg        pc -= 4;
5474642e01fSmrg    }
5484642e01fSmrg#endif
5494642e01fSmrg
55035c4bbdfSmrg    glTexCoord3dv((const GLdouble *) (pc + 0));
5514642e01fSmrg}
5524642e01fSmrg
55335c4bbdfSmrgvoid
55435c4bbdfSmrg__glXDisp_TexCoord3fv(GLbyte * pc)
5554642e01fSmrg{
55635c4bbdfSmrg    glTexCoord3fv((const GLfloat *) (pc + 0));
5574642e01fSmrg}
5584642e01fSmrg
55935c4bbdfSmrgvoid
56035c4bbdfSmrg__glXDisp_TexCoord3iv(GLbyte * pc)
5614642e01fSmrg{
56235c4bbdfSmrg    glTexCoord3iv((const GLint *) (pc + 0));
5634642e01fSmrg}
5644642e01fSmrg
56535c4bbdfSmrgvoid
56635c4bbdfSmrg__glXDisp_TexCoord3sv(GLbyte * pc)
5674642e01fSmrg{
56835c4bbdfSmrg    glTexCoord3sv((const GLshort *) (pc + 0));
5694642e01fSmrg}
5704642e01fSmrg
57135c4bbdfSmrgvoid
57235c4bbdfSmrg__glXDisp_TexCoord4dv(GLbyte * pc)
5734642e01fSmrg{
5744642e01fSmrg#ifdef __GLX_ALIGN64
57535c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
57635c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
5774642e01fSmrg        pc -= 4;
5784642e01fSmrg    }
5794642e01fSmrg#endif
5804642e01fSmrg
58135c4bbdfSmrg    glTexCoord4dv((const GLdouble *) (pc + 0));
5824642e01fSmrg}
5834642e01fSmrg
58435c4bbdfSmrgvoid
58535c4bbdfSmrg__glXDisp_TexCoord4fv(GLbyte * pc)
5864642e01fSmrg{
58735c4bbdfSmrg    glTexCoord4fv((const GLfloat *) (pc + 0));
5884642e01fSmrg}
5894642e01fSmrg
59035c4bbdfSmrgvoid
59135c4bbdfSmrg__glXDisp_TexCoord4iv(GLbyte * pc)
5924642e01fSmrg{
59335c4bbdfSmrg    glTexCoord4iv((const GLint *) (pc + 0));
5944642e01fSmrg}
5954642e01fSmrg
59635c4bbdfSmrgvoid
59735c4bbdfSmrg__glXDisp_TexCoord4sv(GLbyte * pc)
5984642e01fSmrg{
59935c4bbdfSmrg    glTexCoord4sv((const GLshort *) (pc + 0));
6004642e01fSmrg}
6014642e01fSmrg
60235c4bbdfSmrgvoid
60335c4bbdfSmrg__glXDisp_Vertex2dv(GLbyte * pc)
6044642e01fSmrg{
6054642e01fSmrg#ifdef __GLX_ALIGN64
60635c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
60735c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
6084642e01fSmrg        pc -= 4;
6094642e01fSmrg    }
6104642e01fSmrg#endif
6114642e01fSmrg
61235c4bbdfSmrg    glVertex2dv((const GLdouble *) (pc + 0));
6134642e01fSmrg}
6144642e01fSmrg
61535c4bbdfSmrgvoid
61635c4bbdfSmrg__glXDisp_Vertex2fv(GLbyte * pc)
6174642e01fSmrg{
61835c4bbdfSmrg    glVertex2fv((const GLfloat *) (pc + 0));
6194642e01fSmrg}
6204642e01fSmrg
62135c4bbdfSmrgvoid
62235c4bbdfSmrg__glXDisp_Vertex2iv(GLbyte * pc)
6234642e01fSmrg{
62435c4bbdfSmrg    glVertex2iv((const GLint *) (pc + 0));
6254642e01fSmrg}
6264642e01fSmrg
62735c4bbdfSmrgvoid
62835c4bbdfSmrg__glXDisp_Vertex2sv(GLbyte * pc)
6294642e01fSmrg{
63035c4bbdfSmrg    glVertex2sv((const GLshort *) (pc + 0));
6314642e01fSmrg}
6324642e01fSmrg
63335c4bbdfSmrgvoid
63435c4bbdfSmrg__glXDisp_Vertex3dv(GLbyte * pc)
6354642e01fSmrg{
6364642e01fSmrg#ifdef __GLX_ALIGN64
63735c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
63835c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
6394642e01fSmrg        pc -= 4;
6404642e01fSmrg    }
6414642e01fSmrg#endif
6424642e01fSmrg
64335c4bbdfSmrg    glVertex3dv((const GLdouble *) (pc + 0));
6444642e01fSmrg}
6454642e01fSmrg
64635c4bbdfSmrgvoid
64735c4bbdfSmrg__glXDisp_Vertex3fv(GLbyte * pc)
6484642e01fSmrg{
64935c4bbdfSmrg    glVertex3fv((const GLfloat *) (pc + 0));
6504642e01fSmrg}
6514642e01fSmrg
65235c4bbdfSmrgvoid
65335c4bbdfSmrg__glXDisp_Vertex3iv(GLbyte * pc)
6544642e01fSmrg{
65535c4bbdfSmrg    glVertex3iv((const GLint *) (pc + 0));
6564642e01fSmrg}
6574642e01fSmrg
65835c4bbdfSmrgvoid
65935c4bbdfSmrg__glXDisp_Vertex3sv(GLbyte * pc)
6604642e01fSmrg{
66135c4bbdfSmrg    glVertex3sv((const GLshort *) (pc + 0));
6624642e01fSmrg}
6634642e01fSmrg
66435c4bbdfSmrgvoid
66535c4bbdfSmrg__glXDisp_Vertex4dv(GLbyte * pc)
6664642e01fSmrg{
6674642e01fSmrg#ifdef __GLX_ALIGN64
66835c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
66935c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
6704642e01fSmrg        pc -= 4;
6714642e01fSmrg    }
6724642e01fSmrg#endif
6734642e01fSmrg
67435c4bbdfSmrg    glVertex4dv((const GLdouble *) (pc + 0));
6754642e01fSmrg}
6764642e01fSmrg
67735c4bbdfSmrgvoid
67835c4bbdfSmrg__glXDisp_Vertex4fv(GLbyte * pc)
6794642e01fSmrg{
68035c4bbdfSmrg    glVertex4fv((const GLfloat *) (pc + 0));
6814642e01fSmrg}
6824642e01fSmrg
68335c4bbdfSmrgvoid
68435c4bbdfSmrg__glXDisp_Vertex4iv(GLbyte * pc)
6854642e01fSmrg{
68635c4bbdfSmrg    glVertex4iv((const GLint *) (pc + 0));
6874642e01fSmrg}
6884642e01fSmrg
68935c4bbdfSmrgvoid
69035c4bbdfSmrg__glXDisp_Vertex4sv(GLbyte * pc)
6914642e01fSmrg{
69235c4bbdfSmrg    glVertex4sv((const GLshort *) (pc + 0));
6934642e01fSmrg}
6944642e01fSmrg
69535c4bbdfSmrgvoid
69635c4bbdfSmrg__glXDisp_ClipPlane(GLbyte * pc)
6974642e01fSmrg{
6984642e01fSmrg#ifdef __GLX_ALIGN64
69935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
70035c4bbdfSmrg        (void) memmove(pc - 4, pc, 36);
7014642e01fSmrg        pc -= 4;
7024642e01fSmrg    }
7034642e01fSmrg#endif
7044642e01fSmrg
70535c4bbdfSmrg    glClipPlane(*(GLenum *) (pc + 32), (const GLdouble *) (pc + 0));
7064642e01fSmrg}
7074642e01fSmrg
70835c4bbdfSmrgvoid
70935c4bbdfSmrg__glXDisp_ColorMaterial(GLbyte * pc)
7104642e01fSmrg{
71135c4bbdfSmrg    glColorMaterial(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
7124642e01fSmrg}
7134642e01fSmrg
71435c4bbdfSmrgvoid
71535c4bbdfSmrg__glXDisp_CullFace(GLbyte * pc)
7164642e01fSmrg{
71735c4bbdfSmrg    glCullFace(*(GLenum *) (pc + 0));
7184642e01fSmrg}
7194642e01fSmrg
72035c4bbdfSmrgvoid
72135c4bbdfSmrg__glXDisp_Fogf(GLbyte * pc)
7224642e01fSmrg{
72335c4bbdfSmrg    glFogf(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
7244642e01fSmrg}
7254642e01fSmrg
72635c4bbdfSmrgvoid
72735c4bbdfSmrg__glXDisp_Fogfv(GLbyte * pc)
7284642e01fSmrg{
72935c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
73035c4bbdfSmrg    const GLfloat *params;
7314642e01fSmrg
7324642e01fSmrg    params = (const GLfloat *) (pc + 4);
7334642e01fSmrg
73435c4bbdfSmrg    glFogfv(pname, params);
7354642e01fSmrg}
7364642e01fSmrg
73735c4bbdfSmrgvoid
73835c4bbdfSmrg__glXDisp_Fogi(GLbyte * pc)
7394642e01fSmrg{
74035c4bbdfSmrg    glFogi(*(GLenum *) (pc + 0), *(GLint *) (pc + 4));
7414642e01fSmrg}
7424642e01fSmrg
74335c4bbdfSmrgvoid
74435c4bbdfSmrg__glXDisp_Fogiv(GLbyte * pc)
7454642e01fSmrg{
74635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
74735c4bbdfSmrg    const GLint *params;
7484642e01fSmrg
7494642e01fSmrg    params = (const GLint *) (pc + 4);
7504642e01fSmrg
75135c4bbdfSmrg    glFogiv(pname, params);
7524642e01fSmrg}
7534642e01fSmrg
75435c4bbdfSmrgvoid
75535c4bbdfSmrg__glXDisp_FrontFace(GLbyte * pc)
7564642e01fSmrg{
75735c4bbdfSmrg    glFrontFace(*(GLenum *) (pc + 0));
7584642e01fSmrg}
7594642e01fSmrg
76035c4bbdfSmrgvoid
76135c4bbdfSmrg__glXDisp_Hint(GLbyte * pc)
7624642e01fSmrg{
76335c4bbdfSmrg    glHint(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
7644642e01fSmrg}
7654642e01fSmrg
76635c4bbdfSmrgvoid
76735c4bbdfSmrg__glXDisp_Lightf(GLbyte * pc)
7684642e01fSmrg{
76935c4bbdfSmrg    glLightf(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
7704642e01fSmrg}
7714642e01fSmrg
77235c4bbdfSmrgvoid
77335c4bbdfSmrg__glXDisp_Lightfv(GLbyte * pc)
7744642e01fSmrg{
77535c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
77635c4bbdfSmrg    const GLfloat *params;
7774642e01fSmrg
7784642e01fSmrg    params = (const GLfloat *) (pc + 8);
7794642e01fSmrg
78035c4bbdfSmrg    glLightfv(*(GLenum *) (pc + 0), pname, params);
7814642e01fSmrg}
7824642e01fSmrg
78335c4bbdfSmrgvoid
78435c4bbdfSmrg__glXDisp_Lighti(GLbyte * pc)
7854642e01fSmrg{
78635c4bbdfSmrg    glLighti(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
7874642e01fSmrg}
7884642e01fSmrg
78935c4bbdfSmrgvoid
79035c4bbdfSmrg__glXDisp_Lightiv(GLbyte * pc)
7914642e01fSmrg{
79235c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
79335c4bbdfSmrg    const GLint *params;
7944642e01fSmrg
7954642e01fSmrg    params = (const GLint *) (pc + 8);
7964642e01fSmrg
79735c4bbdfSmrg    glLightiv(*(GLenum *) (pc + 0), pname, params);
7984642e01fSmrg}
7994642e01fSmrg
80035c4bbdfSmrgvoid
80135c4bbdfSmrg__glXDisp_LightModelf(GLbyte * pc)
8024642e01fSmrg{
80335c4bbdfSmrg    glLightModelf(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
8044642e01fSmrg}
8054642e01fSmrg
80635c4bbdfSmrgvoid
80735c4bbdfSmrg__glXDisp_LightModelfv(GLbyte * pc)
8084642e01fSmrg{
80935c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
81035c4bbdfSmrg    const GLfloat *params;
8114642e01fSmrg
8124642e01fSmrg    params = (const GLfloat *) (pc + 4);
8134642e01fSmrg
81435c4bbdfSmrg    glLightModelfv(pname, params);
8154642e01fSmrg}
8164642e01fSmrg
81735c4bbdfSmrgvoid
81835c4bbdfSmrg__glXDisp_LightModeli(GLbyte * pc)
8194642e01fSmrg{
82035c4bbdfSmrg    glLightModeli(*(GLenum *) (pc + 0), *(GLint *) (pc + 4));
8214642e01fSmrg}
8224642e01fSmrg
82335c4bbdfSmrgvoid
82435c4bbdfSmrg__glXDisp_LightModeliv(GLbyte * pc)
8254642e01fSmrg{
82635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
82735c4bbdfSmrg    const GLint *params;
8284642e01fSmrg
8294642e01fSmrg    params = (const GLint *) (pc + 4);
8304642e01fSmrg
83135c4bbdfSmrg    glLightModeliv(pname, params);
8324642e01fSmrg}
8334642e01fSmrg
83435c4bbdfSmrgvoid
83535c4bbdfSmrg__glXDisp_LineStipple(GLbyte * pc)
8364642e01fSmrg{
83735c4bbdfSmrg    glLineStipple(*(GLint *) (pc + 0), *(GLushort *) (pc + 4));
8384642e01fSmrg}
8394642e01fSmrg
84035c4bbdfSmrgvoid
84135c4bbdfSmrg__glXDisp_LineWidth(GLbyte * pc)
8424642e01fSmrg{
84335c4bbdfSmrg    glLineWidth(*(GLfloat *) (pc + 0));
8444642e01fSmrg}
8454642e01fSmrg
84635c4bbdfSmrgvoid
84735c4bbdfSmrg__glXDisp_Materialf(GLbyte * pc)
8484642e01fSmrg{
84935c4bbdfSmrg    glMaterialf(*(GLenum *) (pc + 0),
85035c4bbdfSmrg                *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
8514642e01fSmrg}
8524642e01fSmrg
85335c4bbdfSmrgvoid
85435c4bbdfSmrg__glXDisp_Materialfv(GLbyte * pc)
8554642e01fSmrg{
85635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
85735c4bbdfSmrg    const GLfloat *params;
8584642e01fSmrg
8594642e01fSmrg    params = (const GLfloat *) (pc + 8);
8604642e01fSmrg
86135c4bbdfSmrg    glMaterialfv(*(GLenum *) (pc + 0), pname, params);
8624642e01fSmrg}
8634642e01fSmrg
86435c4bbdfSmrgvoid
86535c4bbdfSmrg__glXDisp_Materiali(GLbyte * pc)
8664642e01fSmrg{
86735c4bbdfSmrg    glMateriali(*(GLenum *) (pc + 0),
86835c4bbdfSmrg                *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
8694642e01fSmrg}
8704642e01fSmrg
87135c4bbdfSmrgvoid
87235c4bbdfSmrg__glXDisp_Materialiv(GLbyte * pc)
8734642e01fSmrg{
87435c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
87535c4bbdfSmrg    const GLint *params;
8764642e01fSmrg
8774642e01fSmrg    params = (const GLint *) (pc + 8);
8784642e01fSmrg
87935c4bbdfSmrg    glMaterialiv(*(GLenum *) (pc + 0), pname, params);
8804642e01fSmrg}
8814642e01fSmrg
88235c4bbdfSmrgvoid
88335c4bbdfSmrg__glXDisp_PointSize(GLbyte * pc)
8844642e01fSmrg{
88535c4bbdfSmrg    glPointSize(*(GLfloat *) (pc + 0));
8864642e01fSmrg}
8874642e01fSmrg
88835c4bbdfSmrgvoid
88935c4bbdfSmrg__glXDisp_PolygonMode(GLbyte * pc)
8904642e01fSmrg{
89135c4bbdfSmrg    glPolygonMode(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
8924642e01fSmrg}
8934642e01fSmrg
89435c4bbdfSmrgvoid
89535c4bbdfSmrg__glXDisp_PolygonStipple(GLbyte * pc)
8964642e01fSmrg{
89735c4bbdfSmrg    const GLubyte *const mask = (const GLubyte *) ((pc + 20));
89835c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
8994642e01fSmrg
90035c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
90135c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
90235c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
90335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
90435c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
9054642e01fSmrg
90635c4bbdfSmrg    glPolygonStipple(mask);
9074642e01fSmrg}
9084642e01fSmrg
90935c4bbdfSmrgvoid
91035c4bbdfSmrg__glXDisp_Scissor(GLbyte * pc)
9114642e01fSmrg{
91235c4bbdfSmrg    glScissor(*(GLint *) (pc + 0),
91335c4bbdfSmrg              *(GLint *) (pc + 4),
91435c4bbdfSmrg              *(GLsizei *) (pc + 8), *(GLsizei *) (pc + 12));
9154642e01fSmrg}
9164642e01fSmrg
91735c4bbdfSmrgvoid
91835c4bbdfSmrg__glXDisp_ShadeModel(GLbyte * pc)
9194642e01fSmrg{
92035c4bbdfSmrg    glShadeModel(*(GLenum *) (pc + 0));
9214642e01fSmrg}
9224642e01fSmrg
92335c4bbdfSmrgvoid
92435c4bbdfSmrg__glXDisp_TexParameterf(GLbyte * pc)
9254642e01fSmrg{
92635c4bbdfSmrg    glTexParameterf(*(GLenum *) (pc + 0),
92735c4bbdfSmrg                    *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
9284642e01fSmrg}
9294642e01fSmrg
93035c4bbdfSmrgvoid
93135c4bbdfSmrg__glXDisp_TexParameterfv(GLbyte * pc)
9324642e01fSmrg{
93335c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
93435c4bbdfSmrg    const GLfloat *params;
9354642e01fSmrg
9364642e01fSmrg    params = (const GLfloat *) (pc + 8);
9374642e01fSmrg
93835c4bbdfSmrg    glTexParameterfv(*(GLenum *) (pc + 0), pname, params);
9394642e01fSmrg}
9404642e01fSmrg
94135c4bbdfSmrgvoid
94235c4bbdfSmrg__glXDisp_TexParameteri(GLbyte * pc)
9434642e01fSmrg{
94435c4bbdfSmrg    glTexParameteri(*(GLenum *) (pc + 0),
94535c4bbdfSmrg                    *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
9464642e01fSmrg}
9474642e01fSmrg
94835c4bbdfSmrgvoid
94935c4bbdfSmrg__glXDisp_TexParameteriv(GLbyte * pc)
9504642e01fSmrg{
95135c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
95235c4bbdfSmrg    const GLint *params;
9534642e01fSmrg
9544642e01fSmrg    params = (const GLint *) (pc + 8);
9554642e01fSmrg
95635c4bbdfSmrg    glTexParameteriv(*(GLenum *) (pc + 0), pname, params);
9574642e01fSmrg}
9584642e01fSmrg
95935c4bbdfSmrgvoid
96035c4bbdfSmrg__glXDisp_TexImage1D(GLbyte * pc)
9614642e01fSmrg{
96235c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 52));
96335c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
9644642e01fSmrg
96535c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
96635c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
96735c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
96835c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
96935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
97035c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
9714642e01fSmrg
97235c4bbdfSmrg    glTexImage1D(*(GLenum *) (pc + 20),
97335c4bbdfSmrg                 *(GLint *) (pc + 24),
97435c4bbdfSmrg                 *(GLint *) (pc + 28),
97535c4bbdfSmrg                 *(GLsizei *) (pc + 32),
97635c4bbdfSmrg                 *(GLint *) (pc + 40),
97735c4bbdfSmrg                 *(GLenum *) (pc + 44), *(GLenum *) (pc + 48), pixels);
9784642e01fSmrg}
9794642e01fSmrg
98035c4bbdfSmrgvoid
98135c4bbdfSmrg__glXDisp_TexImage2D(GLbyte * pc)
9824642e01fSmrg{
98335c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 52));
98435c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
9854642e01fSmrg
98635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
98735c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
98835c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
98935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
99035c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
99135c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
9924642e01fSmrg
99335c4bbdfSmrg    glTexImage2D(*(GLenum *) (pc + 20),
99435c4bbdfSmrg                 *(GLint *) (pc + 24),
99535c4bbdfSmrg                 *(GLint *) (pc + 28),
99635c4bbdfSmrg                 *(GLsizei *) (pc + 32),
99735c4bbdfSmrg                 *(GLsizei *) (pc + 36),
99835c4bbdfSmrg                 *(GLint *) (pc + 40),
99935c4bbdfSmrg                 *(GLenum *) (pc + 44), *(GLenum *) (pc + 48), pixels);
10004642e01fSmrg}
10014642e01fSmrg
100235c4bbdfSmrgvoid
100335c4bbdfSmrg__glXDisp_TexEnvf(GLbyte * pc)
10044642e01fSmrg{
100535c4bbdfSmrg    glTexEnvf(*(GLenum *) (pc + 0),
100635c4bbdfSmrg              *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
10074642e01fSmrg}
10084642e01fSmrg
100935c4bbdfSmrgvoid
101035c4bbdfSmrg__glXDisp_TexEnvfv(GLbyte * pc)
10114642e01fSmrg{
101235c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
101335c4bbdfSmrg    const GLfloat *params;
10144642e01fSmrg
10154642e01fSmrg    params = (const GLfloat *) (pc + 8);
10164642e01fSmrg
101735c4bbdfSmrg    glTexEnvfv(*(GLenum *) (pc + 0), pname, params);
10184642e01fSmrg}
10194642e01fSmrg
102035c4bbdfSmrgvoid
102135c4bbdfSmrg__glXDisp_TexEnvi(GLbyte * pc)
10224642e01fSmrg{
102335c4bbdfSmrg    glTexEnvi(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
10244642e01fSmrg}
10254642e01fSmrg
102635c4bbdfSmrgvoid
102735c4bbdfSmrg__glXDisp_TexEnviv(GLbyte * pc)
10284642e01fSmrg{
102935c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
103035c4bbdfSmrg    const GLint *params;
10314642e01fSmrg
10324642e01fSmrg    params = (const GLint *) (pc + 8);
10334642e01fSmrg
103435c4bbdfSmrg    glTexEnviv(*(GLenum *) (pc + 0), pname, params);
10354642e01fSmrg}
10364642e01fSmrg
103735c4bbdfSmrgvoid
103835c4bbdfSmrg__glXDisp_TexGend(GLbyte * pc)
10394642e01fSmrg{
10404642e01fSmrg#ifdef __GLX_ALIGN64
104135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
104235c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
10434642e01fSmrg        pc -= 4;
10444642e01fSmrg    }
10454642e01fSmrg#endif
10464642e01fSmrg
104735c4bbdfSmrg    glTexGend(*(GLenum *) (pc + 8),
104835c4bbdfSmrg              *(GLenum *) (pc + 12), *(GLdouble *) (pc + 0));
10494642e01fSmrg}
10504642e01fSmrg
105135c4bbdfSmrgvoid
105235c4bbdfSmrg__glXDisp_TexGendv(GLbyte * pc)
10534642e01fSmrg{
105435c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
105535c4bbdfSmrg    const GLdouble *params;
10564642e01fSmrg
10574642e01fSmrg#ifdef __GLX_ALIGN64
10584642e01fSmrg    const GLuint compsize = __glTexGendv_size(pname);
10594642e01fSmrg    const GLuint cmdlen = 12 + __GLX_PAD((compsize * 8)) - 4;
106035c4bbdfSmrg
106135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
106235c4bbdfSmrg        (void) memmove(pc - 4, pc, cmdlen);
10634642e01fSmrg        pc -= 4;
10644642e01fSmrg    }
10654642e01fSmrg#endif
10664642e01fSmrg
10674642e01fSmrg    params = (const GLdouble *) (pc + 8);
10684642e01fSmrg
106935c4bbdfSmrg    glTexGendv(*(GLenum *) (pc + 0), pname, params);
10704642e01fSmrg}
10714642e01fSmrg
107235c4bbdfSmrgvoid
107335c4bbdfSmrg__glXDisp_TexGenf(GLbyte * pc)
10744642e01fSmrg{
107535c4bbdfSmrg    glTexGenf(*(GLenum *) (pc + 0),
107635c4bbdfSmrg              *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
10774642e01fSmrg}
10784642e01fSmrg
107935c4bbdfSmrgvoid
108035c4bbdfSmrg__glXDisp_TexGenfv(GLbyte * pc)
10814642e01fSmrg{
108235c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
108335c4bbdfSmrg    const GLfloat *params;
10844642e01fSmrg
10854642e01fSmrg    params = (const GLfloat *) (pc + 8);
10864642e01fSmrg
108735c4bbdfSmrg    glTexGenfv(*(GLenum *) (pc + 0), pname, params);
10884642e01fSmrg}
10894642e01fSmrg
109035c4bbdfSmrgvoid
109135c4bbdfSmrg__glXDisp_TexGeni(GLbyte * pc)
10924642e01fSmrg{
109335c4bbdfSmrg    glTexGeni(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
10944642e01fSmrg}
10954642e01fSmrg
109635c4bbdfSmrgvoid
109735c4bbdfSmrg__glXDisp_TexGeniv(GLbyte * pc)
10984642e01fSmrg{
109935c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
110035c4bbdfSmrg    const GLint *params;
11014642e01fSmrg
11024642e01fSmrg    params = (const GLint *) (pc + 8);
11034642e01fSmrg
110435c4bbdfSmrg    glTexGeniv(*(GLenum *) (pc + 0), pname, params);
11054642e01fSmrg}
11064642e01fSmrg
110735c4bbdfSmrgvoid
110835c4bbdfSmrg__glXDisp_InitNames(GLbyte * pc)
11094642e01fSmrg{
111035c4bbdfSmrg    glInitNames();
11114642e01fSmrg}
11124642e01fSmrg
111335c4bbdfSmrgvoid
111435c4bbdfSmrg__glXDisp_LoadName(GLbyte * pc)
11154642e01fSmrg{
111635c4bbdfSmrg    glLoadName(*(GLuint *) (pc + 0));
11174642e01fSmrg}
11184642e01fSmrg
111935c4bbdfSmrgvoid
112035c4bbdfSmrg__glXDisp_PassThrough(GLbyte * pc)
11214642e01fSmrg{
112235c4bbdfSmrg    glPassThrough(*(GLfloat *) (pc + 0));
11234642e01fSmrg}
11244642e01fSmrg
112535c4bbdfSmrgvoid
112635c4bbdfSmrg__glXDisp_PopName(GLbyte * pc)
11274642e01fSmrg{
112835c4bbdfSmrg    glPopName();
11294642e01fSmrg}
11304642e01fSmrg
113135c4bbdfSmrgvoid
113235c4bbdfSmrg__glXDisp_PushName(GLbyte * pc)
11334642e01fSmrg{
113435c4bbdfSmrg    glPushName(*(GLuint *) (pc + 0));
11354642e01fSmrg}
11364642e01fSmrg
113735c4bbdfSmrgvoid
113835c4bbdfSmrg__glXDisp_DrawBuffer(GLbyte * pc)
11394642e01fSmrg{
114035c4bbdfSmrg    glDrawBuffer(*(GLenum *) (pc + 0));
11414642e01fSmrg}
11424642e01fSmrg
114335c4bbdfSmrgvoid
114435c4bbdfSmrg__glXDisp_Clear(GLbyte * pc)
11454642e01fSmrg{
114635c4bbdfSmrg    glClear(*(GLbitfield *) (pc + 0));
11474642e01fSmrg}
11484642e01fSmrg
114935c4bbdfSmrgvoid
115035c4bbdfSmrg__glXDisp_ClearAccum(GLbyte * pc)
11514642e01fSmrg{
115235c4bbdfSmrg    glClearAccum(*(GLfloat *) (pc + 0),
115335c4bbdfSmrg                 *(GLfloat *) (pc + 4),
115435c4bbdfSmrg                 *(GLfloat *) (pc + 8), *(GLfloat *) (pc + 12));
11554642e01fSmrg}
11564642e01fSmrg
115735c4bbdfSmrgvoid
115835c4bbdfSmrg__glXDisp_ClearIndex(GLbyte * pc)
11594642e01fSmrg{
116035c4bbdfSmrg    glClearIndex(*(GLfloat *) (pc + 0));
11614642e01fSmrg}
11624642e01fSmrg
116335c4bbdfSmrgvoid
116435c4bbdfSmrg__glXDisp_ClearColor(GLbyte * pc)
11654642e01fSmrg{
116635c4bbdfSmrg    glClearColor(*(GLclampf *) (pc + 0),
116735c4bbdfSmrg                 *(GLclampf *) (pc + 4),
116835c4bbdfSmrg                 *(GLclampf *) (pc + 8), *(GLclampf *) (pc + 12));
11694642e01fSmrg}
11704642e01fSmrg
117135c4bbdfSmrgvoid
117235c4bbdfSmrg__glXDisp_ClearStencil(GLbyte * pc)
11734642e01fSmrg{
117435c4bbdfSmrg    glClearStencil(*(GLint *) (pc + 0));
11754642e01fSmrg}
11764642e01fSmrg
117735c4bbdfSmrgvoid
117835c4bbdfSmrg__glXDisp_ClearDepth(GLbyte * pc)
11794642e01fSmrg{
11804642e01fSmrg#ifdef __GLX_ALIGN64
118135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
118235c4bbdfSmrg        (void) memmove(pc - 4, pc, 8);
11834642e01fSmrg        pc -= 4;
11844642e01fSmrg    }
11854642e01fSmrg#endif
11864642e01fSmrg
118735c4bbdfSmrg    glClearDepth(*(GLclampd *) (pc + 0));
11884642e01fSmrg}
11894642e01fSmrg
119035c4bbdfSmrgvoid
119135c4bbdfSmrg__glXDisp_StencilMask(GLbyte * pc)
11924642e01fSmrg{
119335c4bbdfSmrg    glStencilMask(*(GLuint *) (pc + 0));
11944642e01fSmrg}
11954642e01fSmrg
119635c4bbdfSmrgvoid
119735c4bbdfSmrg__glXDisp_ColorMask(GLbyte * pc)
11984642e01fSmrg{
119935c4bbdfSmrg    glColorMask(*(GLboolean *) (pc + 0),
120035c4bbdfSmrg                *(GLboolean *) (pc + 1),
120135c4bbdfSmrg                *(GLboolean *) (pc + 2), *(GLboolean *) (pc + 3));
12024642e01fSmrg}
12034642e01fSmrg
120435c4bbdfSmrgvoid
120535c4bbdfSmrg__glXDisp_DepthMask(GLbyte * pc)
12064642e01fSmrg{
120735c4bbdfSmrg    glDepthMask(*(GLboolean *) (pc + 0));
12084642e01fSmrg}
12094642e01fSmrg
121035c4bbdfSmrgvoid
121135c4bbdfSmrg__glXDisp_IndexMask(GLbyte * pc)
12124642e01fSmrg{
121335c4bbdfSmrg    glIndexMask(*(GLuint *) (pc + 0));
12144642e01fSmrg}
12154642e01fSmrg
121635c4bbdfSmrgvoid
121735c4bbdfSmrg__glXDisp_Accum(GLbyte * pc)
12184642e01fSmrg{
121935c4bbdfSmrg    glAccum(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
12204642e01fSmrg}
12214642e01fSmrg
122235c4bbdfSmrgvoid
122335c4bbdfSmrg__glXDisp_Disable(GLbyte * pc)
12244642e01fSmrg{
122535c4bbdfSmrg    glDisable(*(GLenum *) (pc + 0));
12264642e01fSmrg}
12274642e01fSmrg
122835c4bbdfSmrgvoid
122935c4bbdfSmrg__glXDisp_Enable(GLbyte * pc)
12304642e01fSmrg{
123135c4bbdfSmrg    glEnable(*(GLenum *) (pc + 0));
12324642e01fSmrg}
12334642e01fSmrg
123435c4bbdfSmrgvoid
123535c4bbdfSmrg__glXDisp_PopAttrib(GLbyte * pc)
12364642e01fSmrg{
123735c4bbdfSmrg    glPopAttrib();
12384642e01fSmrg}
12394642e01fSmrg
124035c4bbdfSmrgvoid
124135c4bbdfSmrg__glXDisp_PushAttrib(GLbyte * pc)
12424642e01fSmrg{
124335c4bbdfSmrg    glPushAttrib(*(GLbitfield *) (pc + 0));
12444642e01fSmrg}
12454642e01fSmrg
124635c4bbdfSmrgvoid
124735c4bbdfSmrg__glXDisp_MapGrid1d(GLbyte * pc)
12484642e01fSmrg{
12494642e01fSmrg#ifdef __GLX_ALIGN64
125035c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
125135c4bbdfSmrg        (void) memmove(pc - 4, pc, 20);
12524642e01fSmrg        pc -= 4;
12534642e01fSmrg    }
12544642e01fSmrg#endif
12554642e01fSmrg
125635c4bbdfSmrg    glMapGrid1d(*(GLint *) (pc + 16),
125735c4bbdfSmrg                *(GLdouble *) (pc + 0), *(GLdouble *) (pc + 8));
12584642e01fSmrg}
12594642e01fSmrg
126035c4bbdfSmrgvoid
126135c4bbdfSmrg__glXDisp_MapGrid1f(GLbyte * pc)
12624642e01fSmrg{
126335c4bbdfSmrg    glMapGrid1f(*(GLint *) (pc + 0),
126435c4bbdfSmrg                *(GLfloat *) (pc + 4), *(GLfloat *) (pc + 8));
12654642e01fSmrg}
12664642e01fSmrg
126735c4bbdfSmrgvoid
126835c4bbdfSmrg__glXDisp_MapGrid2d(GLbyte * pc)
12694642e01fSmrg{
12704642e01fSmrg#ifdef __GLX_ALIGN64
127135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
127235c4bbdfSmrg        (void) memmove(pc - 4, pc, 40);
12734642e01fSmrg        pc -= 4;
12744642e01fSmrg    }
12754642e01fSmrg#endif
12764642e01fSmrg
127735c4bbdfSmrg    glMapGrid2d(*(GLint *) (pc + 32),
127835c4bbdfSmrg                *(GLdouble *) (pc + 0),
127935c4bbdfSmrg                *(GLdouble *) (pc + 8),
128035c4bbdfSmrg                *(GLint *) (pc + 36),
128135c4bbdfSmrg                *(GLdouble *) (pc + 16), *(GLdouble *) (pc + 24));
12824642e01fSmrg}
12834642e01fSmrg
128435c4bbdfSmrgvoid
128535c4bbdfSmrg__glXDisp_MapGrid2f(GLbyte * pc)
12864642e01fSmrg{
128735c4bbdfSmrg    glMapGrid2f(*(GLint *) (pc + 0),
128835c4bbdfSmrg                *(GLfloat *) (pc + 4),
128935c4bbdfSmrg                *(GLfloat *) (pc + 8),
129035c4bbdfSmrg                *(GLint *) (pc + 12),
129135c4bbdfSmrg                *(GLfloat *) (pc + 16), *(GLfloat *) (pc + 20));
12924642e01fSmrg}
12934642e01fSmrg
129435c4bbdfSmrgvoid
129535c4bbdfSmrg__glXDisp_EvalCoord1dv(GLbyte * pc)
12964642e01fSmrg{
12974642e01fSmrg#ifdef __GLX_ALIGN64
129835c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
129935c4bbdfSmrg        (void) memmove(pc - 4, pc, 8);
13004642e01fSmrg        pc -= 4;
13014642e01fSmrg    }
13024642e01fSmrg#endif
13034642e01fSmrg
130435c4bbdfSmrg    glEvalCoord1dv((const GLdouble *) (pc + 0));
13054642e01fSmrg}
13064642e01fSmrg
130735c4bbdfSmrgvoid
130835c4bbdfSmrg__glXDisp_EvalCoord1fv(GLbyte * pc)
13094642e01fSmrg{
131035c4bbdfSmrg    glEvalCoord1fv((const GLfloat *) (pc + 0));
13114642e01fSmrg}
13124642e01fSmrg
131335c4bbdfSmrgvoid
131435c4bbdfSmrg__glXDisp_EvalCoord2dv(GLbyte * pc)
13154642e01fSmrg{
13164642e01fSmrg#ifdef __GLX_ALIGN64
131735c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
131835c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
13194642e01fSmrg        pc -= 4;
13204642e01fSmrg    }
13214642e01fSmrg#endif
13224642e01fSmrg
132335c4bbdfSmrg    glEvalCoord2dv((const GLdouble *) (pc + 0));
13244642e01fSmrg}
13254642e01fSmrg
132635c4bbdfSmrgvoid
132735c4bbdfSmrg__glXDisp_EvalCoord2fv(GLbyte * pc)
13284642e01fSmrg{
132935c4bbdfSmrg    glEvalCoord2fv((const GLfloat *) (pc + 0));
13304642e01fSmrg}
13314642e01fSmrg
133235c4bbdfSmrgvoid
133335c4bbdfSmrg__glXDisp_EvalMesh1(GLbyte * pc)
13344642e01fSmrg{
133535c4bbdfSmrg    glEvalMesh1(*(GLenum *) (pc + 0), *(GLint *) (pc + 4), *(GLint *) (pc + 8));
13364642e01fSmrg}
13374642e01fSmrg
133835c4bbdfSmrgvoid
133935c4bbdfSmrg__glXDisp_EvalPoint1(GLbyte * pc)
13404642e01fSmrg{
134135c4bbdfSmrg    glEvalPoint1(*(GLint *) (pc + 0));
13424642e01fSmrg}
13434642e01fSmrg
134435c4bbdfSmrgvoid
134535c4bbdfSmrg__glXDisp_EvalMesh2(GLbyte * pc)
13464642e01fSmrg{
134735c4bbdfSmrg    glEvalMesh2(*(GLenum *) (pc + 0),
134835c4bbdfSmrg                *(GLint *) (pc + 4),
134935c4bbdfSmrg                *(GLint *) (pc + 8),
135035c4bbdfSmrg                *(GLint *) (pc + 12), *(GLint *) (pc + 16));
13514642e01fSmrg}
13524642e01fSmrg
135335c4bbdfSmrgvoid
135435c4bbdfSmrg__glXDisp_EvalPoint2(GLbyte * pc)
13554642e01fSmrg{
135635c4bbdfSmrg    glEvalPoint2(*(GLint *) (pc + 0), *(GLint *) (pc + 4));
13574642e01fSmrg}
13584642e01fSmrg
135935c4bbdfSmrgvoid
136035c4bbdfSmrg__glXDisp_AlphaFunc(GLbyte * pc)
13614642e01fSmrg{
136235c4bbdfSmrg    glAlphaFunc(*(GLenum *) (pc + 0), *(GLclampf *) (pc + 4));
13634642e01fSmrg}
13644642e01fSmrg
136535c4bbdfSmrgvoid
136635c4bbdfSmrg__glXDisp_BlendFunc(GLbyte * pc)
13674642e01fSmrg{
136835c4bbdfSmrg    glBlendFunc(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
13694642e01fSmrg}
13704642e01fSmrg
137135c4bbdfSmrgvoid
137235c4bbdfSmrg__glXDisp_LogicOp(GLbyte * pc)
13734642e01fSmrg{
137435c4bbdfSmrg    glLogicOp(*(GLenum *) (pc + 0));
13754642e01fSmrg}
13764642e01fSmrg
137735c4bbdfSmrgvoid
137835c4bbdfSmrg__glXDisp_StencilFunc(GLbyte * pc)
13794642e01fSmrg{
138035c4bbdfSmrg    glStencilFunc(*(GLenum *) (pc + 0),
138135c4bbdfSmrg                  *(GLint *) (pc + 4), *(GLuint *) (pc + 8));
13824642e01fSmrg}
13834642e01fSmrg
138435c4bbdfSmrgvoid
138535c4bbdfSmrg__glXDisp_StencilOp(GLbyte * pc)
13864642e01fSmrg{
138735c4bbdfSmrg    glStencilOp(*(GLenum *) (pc + 0),
138835c4bbdfSmrg                *(GLenum *) (pc + 4), *(GLenum *) (pc + 8));
13894642e01fSmrg}
13904642e01fSmrg
139135c4bbdfSmrgvoid
139235c4bbdfSmrg__glXDisp_DepthFunc(GLbyte * pc)
13934642e01fSmrg{
139435c4bbdfSmrg    glDepthFunc(*(GLenum *) (pc + 0));
13954642e01fSmrg}
13964642e01fSmrg
139735c4bbdfSmrgvoid
139835c4bbdfSmrg__glXDisp_PixelZoom(GLbyte * pc)
13994642e01fSmrg{
140035c4bbdfSmrg    glPixelZoom(*(GLfloat *) (pc + 0), *(GLfloat *) (pc + 4));
14014642e01fSmrg}
14024642e01fSmrg
140335c4bbdfSmrgvoid
140435c4bbdfSmrg__glXDisp_PixelTransferf(GLbyte * pc)
14054642e01fSmrg{
140635c4bbdfSmrg    glPixelTransferf(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
14074642e01fSmrg}
14084642e01fSmrg
140935c4bbdfSmrgvoid
141035c4bbdfSmrg__glXDisp_PixelTransferi(GLbyte * pc)
14114642e01fSmrg{
141235c4bbdfSmrg    glPixelTransferi(*(GLenum *) (pc + 0), *(GLint *) (pc + 4));
14134642e01fSmrg}
14144642e01fSmrg
141535c4bbdfSmrgint
141635c4bbdfSmrg__glXDisp_PixelStoref(__GLXclientState * cl, GLbyte * pc)
14174642e01fSmrg{
141835c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
14194642e01fSmrg    int error;
142035c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
14214642e01fSmrg
14224642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
142335c4bbdfSmrg    if (cx != NULL) {
142435c4bbdfSmrg        glPixelStoref(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
14254642e01fSmrg        error = Success;
14264642e01fSmrg    }
14274642e01fSmrg
14284642e01fSmrg    return error;
14294642e01fSmrg}
14304642e01fSmrg
143135c4bbdfSmrgint
143235c4bbdfSmrg__glXDisp_PixelStorei(__GLXclientState * cl, GLbyte * pc)
14334642e01fSmrg{
143435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
14354642e01fSmrg    int error;
143635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
14374642e01fSmrg
14384642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
143935c4bbdfSmrg    if (cx != NULL) {
144035c4bbdfSmrg        glPixelStorei(*(GLenum *) (pc + 0), *(GLint *) (pc + 4));
14414642e01fSmrg        error = Success;
14424642e01fSmrg    }
14434642e01fSmrg
14444642e01fSmrg    return error;
14454642e01fSmrg}
14464642e01fSmrg
144735c4bbdfSmrgvoid
144835c4bbdfSmrg__glXDisp_PixelMapfv(GLbyte * pc)
14494642e01fSmrg{
145035c4bbdfSmrg    const GLsizei mapsize = *(GLsizei *) (pc + 4);
14514642e01fSmrg
145235c4bbdfSmrg    glPixelMapfv(*(GLenum *) (pc + 0), mapsize, (const GLfloat *) (pc + 8));
14534642e01fSmrg}
14544642e01fSmrg
145535c4bbdfSmrgvoid
145635c4bbdfSmrg__glXDisp_PixelMapuiv(GLbyte * pc)
14574642e01fSmrg{
145835c4bbdfSmrg    const GLsizei mapsize = *(GLsizei *) (pc + 4);
14594642e01fSmrg
146035c4bbdfSmrg    glPixelMapuiv(*(GLenum *) (pc + 0), mapsize, (const GLuint *) (pc + 8));
14614642e01fSmrg}
14624642e01fSmrg
146335c4bbdfSmrgvoid
146435c4bbdfSmrg__glXDisp_PixelMapusv(GLbyte * pc)
14654642e01fSmrg{
146635c4bbdfSmrg    const GLsizei mapsize = *(GLsizei *) (pc + 4);
14674642e01fSmrg
146835c4bbdfSmrg    glPixelMapusv(*(GLenum *) (pc + 0), mapsize, (const GLushort *) (pc + 8));
14694642e01fSmrg}
14704642e01fSmrg
147135c4bbdfSmrgvoid
147235c4bbdfSmrg__glXDisp_ReadBuffer(GLbyte * pc)
14734642e01fSmrg{
147435c4bbdfSmrg    glReadBuffer(*(GLenum *) (pc + 0));
14754642e01fSmrg}
14764642e01fSmrg
147735c4bbdfSmrgvoid
147835c4bbdfSmrg__glXDisp_CopyPixels(GLbyte * pc)
14794642e01fSmrg{
148035c4bbdfSmrg    glCopyPixels(*(GLint *) (pc + 0),
148135c4bbdfSmrg                 *(GLint *) (pc + 4),
148235c4bbdfSmrg                 *(GLsizei *) (pc + 8),
148335c4bbdfSmrg                 *(GLsizei *) (pc + 12), *(GLenum *) (pc + 16));
14844642e01fSmrg}
14854642e01fSmrg
148635c4bbdfSmrgvoid
148735c4bbdfSmrg__glXDisp_DrawPixels(GLbyte * pc)
14884642e01fSmrg{
148935c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 36));
149035c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
14914642e01fSmrg
149235c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
149335c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
149435c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
149535c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
149635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
149735c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
14984642e01fSmrg
149935c4bbdfSmrg    glDrawPixels(*(GLsizei *) (pc + 20),
150035c4bbdfSmrg                 *(GLsizei *) (pc + 24),
150135c4bbdfSmrg                 *(GLenum *) (pc + 28), *(GLenum *) (pc + 32), pixels);
15024642e01fSmrg}
15034642e01fSmrg
150435c4bbdfSmrgint
150535c4bbdfSmrg__glXDisp_GetBooleanv(__GLXclientState * cl, GLbyte * pc)
15064642e01fSmrg{
150735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
15084642e01fSmrg    int error;
150935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
15104642e01fSmrg
15114642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
151235c4bbdfSmrg    if (cx != NULL) {
151335c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 0);
15144642e01fSmrg
15154642e01fSmrg        const GLuint compsize = __glGetBooleanv_size(pname);
15164642e01fSmrg        GLboolean answerBuffer[200];
151735c4bbdfSmrg        GLboolean *params =
151835c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize, answerBuffer,
151935c4bbdfSmrg                                 sizeof(answerBuffer), 1);
15204642e01fSmrg
152135c4bbdfSmrg        if (params == NULL)
152235c4bbdfSmrg            return BadAlloc;
15234642e01fSmrg        __glXClearErrorOccured();
15244642e01fSmrg
152535c4bbdfSmrg        glGetBooleanv(pname, params);
15264642e01fSmrg        __glXSendReply(cl->client, params, compsize, 1, GL_FALSE, 0);
15274642e01fSmrg        error = Success;
15284642e01fSmrg    }
15294642e01fSmrg
15304642e01fSmrg    return error;
15314642e01fSmrg}
15324642e01fSmrg
153335c4bbdfSmrgint
153435c4bbdfSmrg__glXDisp_GetClipPlane(__GLXclientState * cl, GLbyte * pc)
15354642e01fSmrg{
153635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
15374642e01fSmrg    int error;
153835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
15394642e01fSmrg
15404642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
154135c4bbdfSmrg    if (cx != NULL) {
15424642e01fSmrg        GLdouble equation[4];
154335c4bbdfSmrg
154435c4bbdfSmrg        glGetClipPlane(*(GLenum *) (pc + 0), equation);
15454642e01fSmrg        __glXSendReply(cl->client, equation, 4, 8, GL_TRUE, 0);
15464642e01fSmrg        error = Success;
15474642e01fSmrg    }
15484642e01fSmrg
15494642e01fSmrg    return error;
15504642e01fSmrg}
15514642e01fSmrg
155235c4bbdfSmrgint
155335c4bbdfSmrg__glXDisp_GetDoublev(__GLXclientState * cl, GLbyte * pc)
15544642e01fSmrg{
155535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
15564642e01fSmrg    int error;
155735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
15584642e01fSmrg
15594642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
156035c4bbdfSmrg    if (cx != NULL) {
156135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 0);
15624642e01fSmrg
15634642e01fSmrg        const GLuint compsize = __glGetDoublev_size(pname);
15644642e01fSmrg        GLdouble answerBuffer[200];
156535c4bbdfSmrg        GLdouble *params =
156635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 8, answerBuffer,
156735c4bbdfSmrg                                 sizeof(answerBuffer), 8);
15684642e01fSmrg
156935c4bbdfSmrg        if (params == NULL)
157035c4bbdfSmrg            return BadAlloc;
15714642e01fSmrg        __glXClearErrorOccured();
15724642e01fSmrg
157335c4bbdfSmrg        glGetDoublev(pname, params);
15744642e01fSmrg        __glXSendReply(cl->client, params, compsize, 8, GL_FALSE, 0);
15754642e01fSmrg        error = Success;
15764642e01fSmrg    }
15774642e01fSmrg
15784642e01fSmrg    return error;
15794642e01fSmrg}
15804642e01fSmrg
158135c4bbdfSmrgint
158235c4bbdfSmrg__glXDisp_GetError(__GLXclientState * cl, GLbyte * pc)
15834642e01fSmrg{
158435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
15854642e01fSmrg    int error;
158635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
15874642e01fSmrg
15884642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
158935c4bbdfSmrg    if (cx != NULL) {
15904642e01fSmrg        GLenum retval;
159135c4bbdfSmrg
159235c4bbdfSmrg        retval = glGetError();
15934642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
15944642e01fSmrg        error = Success;
15954642e01fSmrg    }
15964642e01fSmrg
15974642e01fSmrg    return error;
15984642e01fSmrg}
15994642e01fSmrg
160035c4bbdfSmrgint
160135c4bbdfSmrg__glXDisp_GetFloatv(__GLXclientState * cl, GLbyte * pc)
16024642e01fSmrg{
160335c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
16044642e01fSmrg    int error;
160535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
16064642e01fSmrg
16074642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
160835c4bbdfSmrg    if (cx != NULL) {
160935c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 0);
16104642e01fSmrg
16114642e01fSmrg        const GLuint compsize = __glGetFloatv_size(pname);
16124642e01fSmrg        GLfloat answerBuffer[200];
161335c4bbdfSmrg        GLfloat *params =
161435c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
161535c4bbdfSmrg                                 sizeof(answerBuffer), 4);
16164642e01fSmrg
161735c4bbdfSmrg        if (params == NULL)
161835c4bbdfSmrg            return BadAlloc;
16194642e01fSmrg        __glXClearErrorOccured();
16204642e01fSmrg
162135c4bbdfSmrg        glGetFloatv(pname, params);
16224642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
16234642e01fSmrg        error = Success;
16244642e01fSmrg    }
16254642e01fSmrg
16264642e01fSmrg    return error;
16274642e01fSmrg}
16284642e01fSmrg
162935c4bbdfSmrgint
163035c4bbdfSmrg__glXDisp_GetIntegerv(__GLXclientState * cl, GLbyte * pc)
16314642e01fSmrg{
163235c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
16334642e01fSmrg    int error;
163435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
16354642e01fSmrg
16364642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
163735c4bbdfSmrg    if (cx != NULL) {
163835c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 0);
16394642e01fSmrg
16404642e01fSmrg        const GLuint compsize = __glGetIntegerv_size(pname);
16414642e01fSmrg        GLint answerBuffer[200];
164235c4bbdfSmrg        GLint *params =
164335c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
164435c4bbdfSmrg                                 sizeof(answerBuffer), 4);
16454642e01fSmrg
164635c4bbdfSmrg        if (params == NULL)
164735c4bbdfSmrg            return BadAlloc;
16484642e01fSmrg        __glXClearErrorOccured();
16494642e01fSmrg
165035c4bbdfSmrg        glGetIntegerv(pname, params);
16514642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
16524642e01fSmrg        error = Success;
16534642e01fSmrg    }
16544642e01fSmrg
16554642e01fSmrg    return error;
16564642e01fSmrg}
16574642e01fSmrg
165835c4bbdfSmrgint
165935c4bbdfSmrg__glXDisp_GetLightfv(__GLXclientState * cl, GLbyte * pc)
16604642e01fSmrg{
166135c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
16624642e01fSmrg    int error;
166335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
16644642e01fSmrg
16654642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
166635c4bbdfSmrg    if (cx != NULL) {
166735c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
16684642e01fSmrg
16694642e01fSmrg        const GLuint compsize = __glGetLightfv_size(pname);
16704642e01fSmrg        GLfloat answerBuffer[200];
167135c4bbdfSmrg        GLfloat *params =
167235c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
167335c4bbdfSmrg                                 sizeof(answerBuffer), 4);
16744642e01fSmrg
167535c4bbdfSmrg        if (params == NULL)
167635c4bbdfSmrg            return BadAlloc;
16774642e01fSmrg        __glXClearErrorOccured();
16784642e01fSmrg
167935c4bbdfSmrg        glGetLightfv(*(GLenum *) (pc + 0), pname, params);
16804642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
16814642e01fSmrg        error = Success;
16824642e01fSmrg    }
16834642e01fSmrg
16844642e01fSmrg    return error;
16854642e01fSmrg}
16864642e01fSmrg
168735c4bbdfSmrgint
168835c4bbdfSmrg__glXDisp_GetLightiv(__GLXclientState * cl, GLbyte * pc)
16894642e01fSmrg{
169035c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
16914642e01fSmrg    int error;
169235c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
16934642e01fSmrg
16944642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
169535c4bbdfSmrg    if (cx != NULL) {
169635c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
16974642e01fSmrg
16984642e01fSmrg        const GLuint compsize = __glGetLightiv_size(pname);
16994642e01fSmrg        GLint answerBuffer[200];
170035c4bbdfSmrg        GLint *params =
170135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
170235c4bbdfSmrg                                 sizeof(answerBuffer), 4);
17034642e01fSmrg
170435c4bbdfSmrg        if (params == NULL)
170535c4bbdfSmrg            return BadAlloc;
17064642e01fSmrg        __glXClearErrorOccured();
17074642e01fSmrg
170835c4bbdfSmrg        glGetLightiv(*(GLenum *) (pc + 0), pname, params);
17094642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
17104642e01fSmrg        error = Success;
17114642e01fSmrg    }
17124642e01fSmrg
17134642e01fSmrg    return error;
17144642e01fSmrg}
17154642e01fSmrg
171635c4bbdfSmrgint
171735c4bbdfSmrg__glXDisp_GetMapdv(__GLXclientState * cl, GLbyte * pc)
17184642e01fSmrg{
171935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
17204642e01fSmrg    int error;
172135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
17224642e01fSmrg
17234642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
172435c4bbdfSmrg    if (cx != NULL) {
172535c4bbdfSmrg        const GLenum target = *(GLenum *) (pc + 0);
172635c4bbdfSmrg        const GLenum query = *(GLenum *) (pc + 4);
17274642e01fSmrg
172835c4bbdfSmrg        const GLuint compsize = __glGetMapdv_size(target, query);
17294642e01fSmrg        GLdouble answerBuffer[200];
173035c4bbdfSmrg        GLdouble *v =
173135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 8, answerBuffer,
173235c4bbdfSmrg                                 sizeof(answerBuffer), 8);
17334642e01fSmrg
173435c4bbdfSmrg        if (v == NULL)
173535c4bbdfSmrg            return BadAlloc;
17364642e01fSmrg        __glXClearErrorOccured();
17374642e01fSmrg
173835c4bbdfSmrg        glGetMapdv(target, query, v);
17394642e01fSmrg        __glXSendReply(cl->client, v, compsize, 8, GL_FALSE, 0);
17404642e01fSmrg        error = Success;
17414642e01fSmrg    }
17424642e01fSmrg
17434642e01fSmrg    return error;
17444642e01fSmrg}
17454642e01fSmrg
174635c4bbdfSmrgint
174735c4bbdfSmrg__glXDisp_GetMapfv(__GLXclientState * cl, GLbyte * pc)
17484642e01fSmrg{
174935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
17504642e01fSmrg    int error;
175135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
17524642e01fSmrg
17534642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
175435c4bbdfSmrg    if (cx != NULL) {
175535c4bbdfSmrg        const GLenum target = *(GLenum *) (pc + 0);
175635c4bbdfSmrg        const GLenum query = *(GLenum *) (pc + 4);
17574642e01fSmrg
175835c4bbdfSmrg        const GLuint compsize = __glGetMapfv_size(target, query);
17594642e01fSmrg        GLfloat answerBuffer[200];
176035c4bbdfSmrg        GLfloat *v =
176135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
176235c4bbdfSmrg                                 sizeof(answerBuffer), 4);
17634642e01fSmrg
176435c4bbdfSmrg        if (v == NULL)
176535c4bbdfSmrg            return BadAlloc;
17664642e01fSmrg        __glXClearErrorOccured();
17674642e01fSmrg
176835c4bbdfSmrg        glGetMapfv(target, query, v);
17694642e01fSmrg        __glXSendReply(cl->client, v, compsize, 4, GL_FALSE, 0);
17704642e01fSmrg        error = Success;
17714642e01fSmrg    }
17724642e01fSmrg
17734642e01fSmrg    return error;
17744642e01fSmrg}
17754642e01fSmrg
177635c4bbdfSmrgint
177735c4bbdfSmrg__glXDisp_GetMapiv(__GLXclientState * cl, GLbyte * pc)
17784642e01fSmrg{
177935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
17804642e01fSmrg    int error;
178135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
17824642e01fSmrg
17834642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
178435c4bbdfSmrg    if (cx != NULL) {
178535c4bbdfSmrg        const GLenum target = *(GLenum *) (pc + 0);
178635c4bbdfSmrg        const GLenum query = *(GLenum *) (pc + 4);
17874642e01fSmrg
178835c4bbdfSmrg        const GLuint compsize = __glGetMapiv_size(target, query);
17894642e01fSmrg        GLint answerBuffer[200];
179035c4bbdfSmrg        GLint *v =
179135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
179235c4bbdfSmrg                                 sizeof(answerBuffer), 4);
17934642e01fSmrg
179435c4bbdfSmrg        if (v == NULL)
179535c4bbdfSmrg            return BadAlloc;
17964642e01fSmrg        __glXClearErrorOccured();
17974642e01fSmrg
179835c4bbdfSmrg        glGetMapiv(target, query, v);
17994642e01fSmrg        __glXSendReply(cl->client, v, compsize, 4, GL_FALSE, 0);
18004642e01fSmrg        error = Success;
18014642e01fSmrg    }
18024642e01fSmrg
18034642e01fSmrg    return error;
18044642e01fSmrg}
18054642e01fSmrg
180635c4bbdfSmrgint
180735c4bbdfSmrg__glXDisp_GetMaterialfv(__GLXclientState * cl, GLbyte * pc)
18084642e01fSmrg{
180935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
18104642e01fSmrg    int error;
181135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
18124642e01fSmrg
18134642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
181435c4bbdfSmrg    if (cx != NULL) {
181535c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
18164642e01fSmrg
18174642e01fSmrg        const GLuint compsize = __glGetMaterialfv_size(pname);
18184642e01fSmrg        GLfloat answerBuffer[200];
181935c4bbdfSmrg        GLfloat *params =
182035c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
182135c4bbdfSmrg                                 sizeof(answerBuffer), 4);
18224642e01fSmrg
182335c4bbdfSmrg        if (params == NULL)
182435c4bbdfSmrg            return BadAlloc;
18254642e01fSmrg        __glXClearErrorOccured();
18264642e01fSmrg
182735c4bbdfSmrg        glGetMaterialfv(*(GLenum *) (pc + 0), pname, params);
18284642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
18294642e01fSmrg        error = Success;
18304642e01fSmrg    }
18314642e01fSmrg
18324642e01fSmrg    return error;
18334642e01fSmrg}
18344642e01fSmrg
183535c4bbdfSmrgint
183635c4bbdfSmrg__glXDisp_GetMaterialiv(__GLXclientState * cl, GLbyte * pc)
18374642e01fSmrg{
183835c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
18394642e01fSmrg    int error;
184035c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
18414642e01fSmrg
18424642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
184335c4bbdfSmrg    if (cx != NULL) {
184435c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
18454642e01fSmrg
18464642e01fSmrg        const GLuint compsize = __glGetMaterialiv_size(pname);
18474642e01fSmrg        GLint answerBuffer[200];
184835c4bbdfSmrg        GLint *params =
184935c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
185035c4bbdfSmrg                                 sizeof(answerBuffer), 4);
18514642e01fSmrg
185235c4bbdfSmrg        if (params == NULL)
185335c4bbdfSmrg            return BadAlloc;
18544642e01fSmrg        __glXClearErrorOccured();
18554642e01fSmrg
185635c4bbdfSmrg        glGetMaterialiv(*(GLenum *) (pc + 0), pname, params);
18574642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
18584642e01fSmrg        error = Success;
18594642e01fSmrg    }
18604642e01fSmrg
18614642e01fSmrg    return error;
18624642e01fSmrg}
18634642e01fSmrg
186435c4bbdfSmrgint
186535c4bbdfSmrg__glXDisp_GetPixelMapfv(__GLXclientState * cl, GLbyte * pc)
18664642e01fSmrg{
186735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
18684642e01fSmrg    int error;
186935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
18704642e01fSmrg
18714642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
187235c4bbdfSmrg    if (cx != NULL) {
187335c4bbdfSmrg        const GLenum map = *(GLenum *) (pc + 0);
18744642e01fSmrg
18754642e01fSmrg        const GLuint compsize = __glGetPixelMapfv_size(map);
18764642e01fSmrg        GLfloat answerBuffer[200];
187735c4bbdfSmrg        GLfloat *values =
187835c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
187935c4bbdfSmrg                                 sizeof(answerBuffer), 4);
18804642e01fSmrg
188135c4bbdfSmrg        if (values == NULL)
188235c4bbdfSmrg            return BadAlloc;
18834642e01fSmrg        __glXClearErrorOccured();
18844642e01fSmrg
188535c4bbdfSmrg        glGetPixelMapfv(map, values);
18864642e01fSmrg        __glXSendReply(cl->client, values, compsize, 4, GL_FALSE, 0);
18874642e01fSmrg        error = Success;
18884642e01fSmrg    }
18894642e01fSmrg
18904642e01fSmrg    return error;
18914642e01fSmrg}
18924642e01fSmrg
189335c4bbdfSmrgint
189435c4bbdfSmrg__glXDisp_GetPixelMapuiv(__GLXclientState * cl, GLbyte * pc)
18954642e01fSmrg{
189635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
18974642e01fSmrg    int error;
189835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
18994642e01fSmrg
19004642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
190135c4bbdfSmrg    if (cx != NULL) {
190235c4bbdfSmrg        const GLenum map = *(GLenum *) (pc + 0);
19034642e01fSmrg
19044642e01fSmrg        const GLuint compsize = __glGetPixelMapuiv_size(map);
19054642e01fSmrg        GLuint answerBuffer[200];
190635c4bbdfSmrg        GLuint *values =
190735c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
190835c4bbdfSmrg                                 sizeof(answerBuffer), 4);
19094642e01fSmrg
191035c4bbdfSmrg        if (values == NULL)
191135c4bbdfSmrg            return BadAlloc;
19124642e01fSmrg        __glXClearErrorOccured();
19134642e01fSmrg
191435c4bbdfSmrg        glGetPixelMapuiv(map, values);
19154642e01fSmrg        __glXSendReply(cl->client, values, compsize, 4, GL_FALSE, 0);
19164642e01fSmrg        error = Success;
19174642e01fSmrg    }
19184642e01fSmrg
19194642e01fSmrg    return error;
19204642e01fSmrg}
19214642e01fSmrg
192235c4bbdfSmrgint
192335c4bbdfSmrg__glXDisp_GetPixelMapusv(__GLXclientState * cl, GLbyte * pc)
19244642e01fSmrg{
192535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
19264642e01fSmrg    int error;
192735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
19284642e01fSmrg
19294642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
193035c4bbdfSmrg    if (cx != NULL) {
193135c4bbdfSmrg        const GLenum map = *(GLenum *) (pc + 0);
19324642e01fSmrg
19334642e01fSmrg        const GLuint compsize = __glGetPixelMapusv_size(map);
19344642e01fSmrg        GLushort answerBuffer[200];
193535c4bbdfSmrg        GLushort *values =
193635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 2, answerBuffer,
193735c4bbdfSmrg                                 sizeof(answerBuffer), 2);
19384642e01fSmrg
193935c4bbdfSmrg        if (values == NULL)
194035c4bbdfSmrg            return BadAlloc;
19414642e01fSmrg        __glXClearErrorOccured();
19424642e01fSmrg
194335c4bbdfSmrg        glGetPixelMapusv(map, values);
19444642e01fSmrg        __glXSendReply(cl->client, values, compsize, 2, GL_FALSE, 0);
19454642e01fSmrg        error = Success;
19464642e01fSmrg    }
19474642e01fSmrg
19484642e01fSmrg    return error;
19494642e01fSmrg}
19504642e01fSmrg
195135c4bbdfSmrgint
195235c4bbdfSmrg__glXDisp_GetTexEnvfv(__GLXclientState * cl, GLbyte * pc)
19534642e01fSmrg{
195435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
19554642e01fSmrg    int error;
195635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
19574642e01fSmrg
19584642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
195935c4bbdfSmrg    if (cx != NULL) {
196035c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
19614642e01fSmrg
19624642e01fSmrg        const GLuint compsize = __glGetTexEnvfv_size(pname);
19634642e01fSmrg        GLfloat answerBuffer[200];
196435c4bbdfSmrg        GLfloat *params =
196535c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
196635c4bbdfSmrg                                 sizeof(answerBuffer), 4);
19674642e01fSmrg
196835c4bbdfSmrg        if (params == NULL)
196935c4bbdfSmrg            return BadAlloc;
19704642e01fSmrg        __glXClearErrorOccured();
19714642e01fSmrg
197235c4bbdfSmrg        glGetTexEnvfv(*(GLenum *) (pc + 0), pname, params);
19734642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
19744642e01fSmrg        error = Success;
19754642e01fSmrg    }
19764642e01fSmrg
19774642e01fSmrg    return error;
19784642e01fSmrg}
19794642e01fSmrg
198035c4bbdfSmrgint
198135c4bbdfSmrg__glXDisp_GetTexEnviv(__GLXclientState * cl, GLbyte * pc)
19824642e01fSmrg{
198335c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
19844642e01fSmrg    int error;
198535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
19864642e01fSmrg
19874642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
198835c4bbdfSmrg    if (cx != NULL) {
198935c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
19904642e01fSmrg
19914642e01fSmrg        const GLuint compsize = __glGetTexEnviv_size(pname);
19924642e01fSmrg        GLint answerBuffer[200];
199335c4bbdfSmrg        GLint *params =
199435c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
199535c4bbdfSmrg                                 sizeof(answerBuffer), 4);
19964642e01fSmrg
199735c4bbdfSmrg        if (params == NULL)
199835c4bbdfSmrg            return BadAlloc;
19994642e01fSmrg        __glXClearErrorOccured();
20004642e01fSmrg
200135c4bbdfSmrg        glGetTexEnviv(*(GLenum *) (pc + 0), pname, params);
20024642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
20034642e01fSmrg        error = Success;
20044642e01fSmrg    }
20054642e01fSmrg
20064642e01fSmrg    return error;
20074642e01fSmrg}
20084642e01fSmrg
200935c4bbdfSmrgint
201035c4bbdfSmrg__glXDisp_GetTexGendv(__GLXclientState * cl, GLbyte * pc)
20114642e01fSmrg{
201235c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
20134642e01fSmrg    int error;
201435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
20154642e01fSmrg
20164642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
201735c4bbdfSmrg    if (cx != NULL) {
201835c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
20194642e01fSmrg
20204642e01fSmrg        const GLuint compsize = __glGetTexGendv_size(pname);
20214642e01fSmrg        GLdouble answerBuffer[200];
202235c4bbdfSmrg        GLdouble *params =
202335c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 8, answerBuffer,
202435c4bbdfSmrg                                 sizeof(answerBuffer), 8);
20254642e01fSmrg
202635c4bbdfSmrg        if (params == NULL)
202735c4bbdfSmrg            return BadAlloc;
20284642e01fSmrg        __glXClearErrorOccured();
20294642e01fSmrg
203035c4bbdfSmrg        glGetTexGendv(*(GLenum *) (pc + 0), pname, params);
20314642e01fSmrg        __glXSendReply(cl->client, params, compsize, 8, GL_FALSE, 0);
20324642e01fSmrg        error = Success;
20334642e01fSmrg    }
20344642e01fSmrg
20354642e01fSmrg    return error;
20364642e01fSmrg}
20374642e01fSmrg
203835c4bbdfSmrgint
203935c4bbdfSmrg__glXDisp_GetTexGenfv(__GLXclientState * cl, GLbyte * pc)
20404642e01fSmrg{
204135c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
20424642e01fSmrg    int error;
204335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
20444642e01fSmrg
20454642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
204635c4bbdfSmrg    if (cx != NULL) {
204735c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
20484642e01fSmrg
20494642e01fSmrg        const GLuint compsize = __glGetTexGenfv_size(pname);
20504642e01fSmrg        GLfloat answerBuffer[200];
205135c4bbdfSmrg        GLfloat *params =
205235c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
205335c4bbdfSmrg                                 sizeof(answerBuffer), 4);
20544642e01fSmrg
205535c4bbdfSmrg        if (params == NULL)
205635c4bbdfSmrg            return BadAlloc;
20574642e01fSmrg        __glXClearErrorOccured();
20584642e01fSmrg
205935c4bbdfSmrg        glGetTexGenfv(*(GLenum *) (pc + 0), pname, params);
20604642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
20614642e01fSmrg        error = Success;
20624642e01fSmrg    }
20634642e01fSmrg
20644642e01fSmrg    return error;
20654642e01fSmrg}
20664642e01fSmrg
206735c4bbdfSmrgint
206835c4bbdfSmrg__glXDisp_GetTexGeniv(__GLXclientState * cl, GLbyte * pc)
20694642e01fSmrg{
207035c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
20714642e01fSmrg    int error;
207235c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
20734642e01fSmrg
20744642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
207535c4bbdfSmrg    if (cx != NULL) {
207635c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
20774642e01fSmrg
20784642e01fSmrg        const GLuint compsize = __glGetTexGeniv_size(pname);
20794642e01fSmrg        GLint answerBuffer[200];
208035c4bbdfSmrg        GLint *params =
208135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
208235c4bbdfSmrg                                 sizeof(answerBuffer), 4);
20834642e01fSmrg
208435c4bbdfSmrg        if (params == NULL)
208535c4bbdfSmrg            return BadAlloc;
20864642e01fSmrg        __glXClearErrorOccured();
20874642e01fSmrg
208835c4bbdfSmrg        glGetTexGeniv(*(GLenum *) (pc + 0), pname, params);
20894642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
20904642e01fSmrg        error = Success;
20914642e01fSmrg    }
20924642e01fSmrg
20934642e01fSmrg    return error;
20944642e01fSmrg}
20954642e01fSmrg
209635c4bbdfSmrgint
209735c4bbdfSmrg__glXDisp_GetTexParameterfv(__GLXclientState * cl, GLbyte * pc)
20984642e01fSmrg{
209935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
21004642e01fSmrg    int error;
210135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
21024642e01fSmrg
21034642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
210435c4bbdfSmrg    if (cx != NULL) {
210535c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
21064642e01fSmrg
21074642e01fSmrg        const GLuint compsize = __glGetTexParameterfv_size(pname);
21084642e01fSmrg        GLfloat answerBuffer[200];
210935c4bbdfSmrg        GLfloat *params =
211035c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
211135c4bbdfSmrg                                 sizeof(answerBuffer), 4);
21124642e01fSmrg
211335c4bbdfSmrg        if (params == NULL)
211435c4bbdfSmrg            return BadAlloc;
21154642e01fSmrg        __glXClearErrorOccured();
21164642e01fSmrg
211735c4bbdfSmrg        glGetTexParameterfv(*(GLenum *) (pc + 0), pname, params);
21184642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
21194642e01fSmrg        error = Success;
21204642e01fSmrg    }
21214642e01fSmrg
21224642e01fSmrg    return error;
21234642e01fSmrg}
21244642e01fSmrg
212535c4bbdfSmrgint
212635c4bbdfSmrg__glXDisp_GetTexParameteriv(__GLXclientState * cl, GLbyte * pc)
21274642e01fSmrg{
212835c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
21294642e01fSmrg    int error;
213035c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
21314642e01fSmrg
21324642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
213335c4bbdfSmrg    if (cx != NULL) {
213435c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
21354642e01fSmrg
21364642e01fSmrg        const GLuint compsize = __glGetTexParameteriv_size(pname);
21374642e01fSmrg        GLint answerBuffer[200];
213835c4bbdfSmrg        GLint *params =
213935c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
214035c4bbdfSmrg                                 sizeof(answerBuffer), 4);
21414642e01fSmrg
214235c4bbdfSmrg        if (params == NULL)
214335c4bbdfSmrg            return BadAlloc;
21444642e01fSmrg        __glXClearErrorOccured();
21454642e01fSmrg
214635c4bbdfSmrg        glGetTexParameteriv(*(GLenum *) (pc + 0), pname, params);
21474642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
21484642e01fSmrg        error = Success;
21494642e01fSmrg    }
21504642e01fSmrg
21514642e01fSmrg    return error;
21524642e01fSmrg}
21534642e01fSmrg
215435c4bbdfSmrgint
215535c4bbdfSmrg__glXDisp_GetTexLevelParameterfv(__GLXclientState * cl, GLbyte * pc)
21564642e01fSmrg{
215735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
21584642e01fSmrg    int error;
215935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
21604642e01fSmrg
21614642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
216235c4bbdfSmrg    if (cx != NULL) {
216335c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 8);
21644642e01fSmrg
21654642e01fSmrg        const GLuint compsize = __glGetTexLevelParameterfv_size(pname);
21664642e01fSmrg        GLfloat answerBuffer[200];
216735c4bbdfSmrg        GLfloat *params =
216835c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
216935c4bbdfSmrg                                 sizeof(answerBuffer), 4);
21704642e01fSmrg
217135c4bbdfSmrg        if (params == NULL)
217235c4bbdfSmrg            return BadAlloc;
21734642e01fSmrg        __glXClearErrorOccured();
21744642e01fSmrg
217535c4bbdfSmrg        glGetTexLevelParameterfv(*(GLenum *) (pc + 0),
217635c4bbdfSmrg                                 *(GLint *) (pc + 4), pname, params);
21774642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
21784642e01fSmrg        error = Success;
21794642e01fSmrg    }
21804642e01fSmrg
21814642e01fSmrg    return error;
21824642e01fSmrg}
21834642e01fSmrg
218435c4bbdfSmrgint
218535c4bbdfSmrg__glXDisp_GetTexLevelParameteriv(__GLXclientState * cl, GLbyte * pc)
21864642e01fSmrg{
218735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
21884642e01fSmrg    int error;
218935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
21904642e01fSmrg
21914642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
219235c4bbdfSmrg    if (cx != NULL) {
219335c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 8);
21944642e01fSmrg
21954642e01fSmrg        const GLuint compsize = __glGetTexLevelParameteriv_size(pname);
21964642e01fSmrg        GLint answerBuffer[200];
219735c4bbdfSmrg        GLint *params =
219835c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
219935c4bbdfSmrg                                 sizeof(answerBuffer), 4);
22004642e01fSmrg
220135c4bbdfSmrg        if (params == NULL)
220235c4bbdfSmrg            return BadAlloc;
22034642e01fSmrg        __glXClearErrorOccured();
22044642e01fSmrg
220535c4bbdfSmrg        glGetTexLevelParameteriv(*(GLenum *) (pc + 0),
220635c4bbdfSmrg                                 *(GLint *) (pc + 4), pname, params);
22074642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
22084642e01fSmrg        error = Success;
22094642e01fSmrg    }
22104642e01fSmrg
22114642e01fSmrg    return error;
22124642e01fSmrg}
22134642e01fSmrg
221435c4bbdfSmrgint
221535c4bbdfSmrg__glXDisp_IsEnabled(__GLXclientState * cl, GLbyte * pc)
22164642e01fSmrg{
221735c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
22184642e01fSmrg    int error;
221935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
22204642e01fSmrg
22214642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
222235c4bbdfSmrg    if (cx != NULL) {
22234642e01fSmrg        GLboolean retval;
222435c4bbdfSmrg
222535c4bbdfSmrg        retval = glIsEnabled(*(GLenum *) (pc + 0));
22264642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
22274642e01fSmrg        error = Success;
22284642e01fSmrg    }
22294642e01fSmrg
22304642e01fSmrg    return error;
22314642e01fSmrg}
22324642e01fSmrg
223335c4bbdfSmrgint
223435c4bbdfSmrg__glXDisp_IsList(__GLXclientState * cl, GLbyte * pc)
22354642e01fSmrg{
223635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
22374642e01fSmrg    int error;
223835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
22394642e01fSmrg
22404642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
224135c4bbdfSmrg    if (cx != NULL) {
22424642e01fSmrg        GLboolean retval;
224335c4bbdfSmrg
224435c4bbdfSmrg        retval = glIsList(*(GLuint *) (pc + 0));
22454642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
22464642e01fSmrg        error = Success;
22474642e01fSmrg    }
22484642e01fSmrg
22494642e01fSmrg    return error;
22504642e01fSmrg}
22514642e01fSmrg
225235c4bbdfSmrgvoid
225335c4bbdfSmrg__glXDisp_DepthRange(GLbyte * pc)
22544642e01fSmrg{
22554642e01fSmrg#ifdef __GLX_ALIGN64
225635c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
225735c4bbdfSmrg        (void) memmove(pc - 4, pc, 16);
22584642e01fSmrg        pc -= 4;
22594642e01fSmrg    }
22604642e01fSmrg#endif
22614642e01fSmrg
226235c4bbdfSmrg    glDepthRange(*(GLclampd *) (pc + 0), *(GLclampd *) (pc + 8));
22634642e01fSmrg}
22644642e01fSmrg
226535c4bbdfSmrgvoid
226635c4bbdfSmrg__glXDisp_Frustum(GLbyte * pc)
22674642e01fSmrg{
22684642e01fSmrg#ifdef __GLX_ALIGN64
226935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
227035c4bbdfSmrg        (void) memmove(pc - 4, pc, 48);
22714642e01fSmrg        pc -= 4;
22724642e01fSmrg    }
22734642e01fSmrg#endif
22744642e01fSmrg
227535c4bbdfSmrg    glFrustum(*(GLdouble *) (pc + 0),
227635c4bbdfSmrg              *(GLdouble *) (pc + 8),
227735c4bbdfSmrg              *(GLdouble *) (pc + 16),
227835c4bbdfSmrg              *(GLdouble *) (pc + 24),
227935c4bbdfSmrg              *(GLdouble *) (pc + 32), *(GLdouble *) (pc + 40));
22804642e01fSmrg}
22814642e01fSmrg
228235c4bbdfSmrgvoid
228335c4bbdfSmrg__glXDisp_LoadIdentity(GLbyte * pc)
22844642e01fSmrg{
228535c4bbdfSmrg    glLoadIdentity();
22864642e01fSmrg}
22874642e01fSmrg
228835c4bbdfSmrgvoid
228935c4bbdfSmrg__glXDisp_LoadMatrixf(GLbyte * pc)
22904642e01fSmrg{
229135c4bbdfSmrg    glLoadMatrixf((const GLfloat *) (pc + 0));
22924642e01fSmrg}
22934642e01fSmrg
229435c4bbdfSmrgvoid
229535c4bbdfSmrg__glXDisp_LoadMatrixd(GLbyte * pc)
22964642e01fSmrg{
22974642e01fSmrg#ifdef __GLX_ALIGN64
229835c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
229935c4bbdfSmrg        (void) memmove(pc - 4, pc, 128);
23004642e01fSmrg        pc -= 4;
23014642e01fSmrg    }
23024642e01fSmrg#endif
23034642e01fSmrg
230435c4bbdfSmrg    glLoadMatrixd((const GLdouble *) (pc + 0));
23054642e01fSmrg}
23064642e01fSmrg
230735c4bbdfSmrgvoid
230835c4bbdfSmrg__glXDisp_MatrixMode(GLbyte * pc)
23094642e01fSmrg{
231035c4bbdfSmrg    glMatrixMode(*(GLenum *) (pc + 0));
23114642e01fSmrg}
23124642e01fSmrg
231335c4bbdfSmrgvoid
231435c4bbdfSmrg__glXDisp_MultMatrixf(GLbyte * pc)
23154642e01fSmrg{
231635c4bbdfSmrg    glMultMatrixf((const GLfloat *) (pc + 0));
23174642e01fSmrg}
23184642e01fSmrg
231935c4bbdfSmrgvoid
232035c4bbdfSmrg__glXDisp_MultMatrixd(GLbyte * pc)
23214642e01fSmrg{
23224642e01fSmrg#ifdef __GLX_ALIGN64
232335c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
232435c4bbdfSmrg        (void) memmove(pc - 4, pc, 128);
23254642e01fSmrg        pc -= 4;
23264642e01fSmrg    }
23274642e01fSmrg#endif
23284642e01fSmrg
232935c4bbdfSmrg    glMultMatrixd((const GLdouble *) (pc + 0));
23304642e01fSmrg}
23314642e01fSmrg
233235c4bbdfSmrgvoid
233335c4bbdfSmrg__glXDisp_Ortho(GLbyte * pc)
23344642e01fSmrg{
23354642e01fSmrg#ifdef __GLX_ALIGN64
233635c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
233735c4bbdfSmrg        (void) memmove(pc - 4, pc, 48);
23384642e01fSmrg        pc -= 4;
23394642e01fSmrg    }
23404642e01fSmrg#endif
23414642e01fSmrg
234235c4bbdfSmrg    glOrtho(*(GLdouble *) (pc + 0),
234335c4bbdfSmrg            *(GLdouble *) (pc + 8),
234435c4bbdfSmrg            *(GLdouble *) (pc + 16),
234535c4bbdfSmrg            *(GLdouble *) (pc + 24),
234635c4bbdfSmrg            *(GLdouble *) (pc + 32), *(GLdouble *) (pc + 40));
23474642e01fSmrg}
23484642e01fSmrg
234935c4bbdfSmrgvoid
235035c4bbdfSmrg__glXDisp_PopMatrix(GLbyte * pc)
23514642e01fSmrg{
235235c4bbdfSmrg    glPopMatrix();
23534642e01fSmrg}
23544642e01fSmrg
235535c4bbdfSmrgvoid
235635c4bbdfSmrg__glXDisp_PushMatrix(GLbyte * pc)
23574642e01fSmrg{
235835c4bbdfSmrg    glPushMatrix();
23594642e01fSmrg}
23604642e01fSmrg
236135c4bbdfSmrgvoid
236235c4bbdfSmrg__glXDisp_Rotated(GLbyte * pc)
23634642e01fSmrg{
23644642e01fSmrg#ifdef __GLX_ALIGN64
236535c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
236635c4bbdfSmrg        (void) memmove(pc - 4, pc, 32);
23674642e01fSmrg        pc -= 4;
23684642e01fSmrg    }
23694642e01fSmrg#endif
23704642e01fSmrg
237135c4bbdfSmrg    glRotated(*(GLdouble *) (pc + 0),
237235c4bbdfSmrg              *(GLdouble *) (pc + 8),
237335c4bbdfSmrg              *(GLdouble *) (pc + 16), *(GLdouble *) (pc + 24));
23744642e01fSmrg}
23754642e01fSmrg
237635c4bbdfSmrgvoid
237735c4bbdfSmrg__glXDisp_Rotatef(GLbyte * pc)
23784642e01fSmrg{
237935c4bbdfSmrg    glRotatef(*(GLfloat *) (pc + 0),
238035c4bbdfSmrg              *(GLfloat *) (pc + 4),
238135c4bbdfSmrg              *(GLfloat *) (pc + 8), *(GLfloat *) (pc + 12));
23824642e01fSmrg}
23834642e01fSmrg
238435c4bbdfSmrgvoid
238535c4bbdfSmrg__glXDisp_Scaled(GLbyte * pc)
23864642e01fSmrg{
23874642e01fSmrg#ifdef __GLX_ALIGN64
238835c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
238935c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
23904642e01fSmrg        pc -= 4;
23914642e01fSmrg    }
23924642e01fSmrg#endif
23934642e01fSmrg
239435c4bbdfSmrg    glScaled(*(GLdouble *) (pc + 0),
239535c4bbdfSmrg             *(GLdouble *) (pc + 8), *(GLdouble *) (pc + 16));
23964642e01fSmrg}
23974642e01fSmrg
239835c4bbdfSmrgvoid
239935c4bbdfSmrg__glXDisp_Scalef(GLbyte * pc)
24004642e01fSmrg{
240135c4bbdfSmrg    glScalef(*(GLfloat *) (pc + 0),
240235c4bbdfSmrg             *(GLfloat *) (pc + 4), *(GLfloat *) (pc + 8));
24034642e01fSmrg}
24044642e01fSmrg
240535c4bbdfSmrgvoid
240635c4bbdfSmrg__glXDisp_Translated(GLbyte * pc)
24074642e01fSmrg{
24084642e01fSmrg#ifdef __GLX_ALIGN64
240935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
241035c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
24114642e01fSmrg        pc -= 4;
24124642e01fSmrg    }
24134642e01fSmrg#endif
24144642e01fSmrg
241535c4bbdfSmrg    glTranslated(*(GLdouble *) (pc + 0),
241635c4bbdfSmrg                 *(GLdouble *) (pc + 8), *(GLdouble *) (pc + 16));
24174642e01fSmrg}
24184642e01fSmrg
241935c4bbdfSmrgvoid
242035c4bbdfSmrg__glXDisp_Translatef(GLbyte * pc)
24214642e01fSmrg{
242235c4bbdfSmrg    glTranslatef(*(GLfloat *) (pc + 0),
242335c4bbdfSmrg                 *(GLfloat *) (pc + 4), *(GLfloat *) (pc + 8));
24244642e01fSmrg}
24254642e01fSmrg
242635c4bbdfSmrgvoid
242735c4bbdfSmrg__glXDisp_Viewport(GLbyte * pc)
24284642e01fSmrg{
242935c4bbdfSmrg    glViewport(*(GLint *) (pc + 0),
243035c4bbdfSmrg               *(GLint *) (pc + 4),
243135c4bbdfSmrg               *(GLsizei *) (pc + 8), *(GLsizei *) (pc + 12));
24324642e01fSmrg}
24334642e01fSmrg
243435c4bbdfSmrgvoid
243535c4bbdfSmrg__glXDisp_BindTexture(GLbyte * pc)
24364642e01fSmrg{
243735c4bbdfSmrg    glBindTexture(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4));
24384642e01fSmrg}
24394642e01fSmrg
244035c4bbdfSmrgvoid
244135c4bbdfSmrg__glXDisp_Indexubv(GLbyte * pc)
24424642e01fSmrg{
244335c4bbdfSmrg    glIndexubv((const GLubyte *) (pc + 0));
24444642e01fSmrg}
24454642e01fSmrg
244635c4bbdfSmrgvoid
244735c4bbdfSmrg__glXDisp_PolygonOffset(GLbyte * pc)
24484642e01fSmrg{
244935c4bbdfSmrg    glPolygonOffset(*(GLfloat *) (pc + 0), *(GLfloat *) (pc + 4));
24504642e01fSmrg}
24514642e01fSmrg
245235c4bbdfSmrgint
245335c4bbdfSmrg__glXDisp_AreTexturesResident(__GLXclientState * cl, GLbyte * pc)
24544642e01fSmrg{
245535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
24564642e01fSmrg    int error;
245735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
24584642e01fSmrg
24594642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
246035c4bbdfSmrg    if (cx != NULL) {
246135c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
24624642e01fSmrg
24634642e01fSmrg        GLboolean retval;
24644642e01fSmrg        GLboolean answerBuffer[200];
246535c4bbdfSmrg        GLboolean *residences =
246635c4bbdfSmrg            __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
246735c4bbdfSmrg
246835c4bbdfSmrg        if (residences == NULL)
246935c4bbdfSmrg            return BadAlloc;
247035c4bbdfSmrg        retval =
247135c4bbdfSmrg            glAreTexturesResident(n, (const GLuint *) (pc + 4), residences);
24724642e01fSmrg        __glXSendReply(cl->client, residences, n, 1, GL_TRUE, retval);
24734642e01fSmrg        error = Success;
24744642e01fSmrg    }
24754642e01fSmrg
24764642e01fSmrg    return error;
24774642e01fSmrg}
24784642e01fSmrg
247935c4bbdfSmrgint
248035c4bbdfSmrg__glXDisp_AreTexturesResidentEXT(__GLXclientState * cl, GLbyte * pc)
24814642e01fSmrg{
248235c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
24834642e01fSmrg    int error;
248435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
24854642e01fSmrg
24864642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
248735c4bbdfSmrg    if (cx != NULL) {
248835c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
24894642e01fSmrg
24904642e01fSmrg        GLboolean retval;
24914642e01fSmrg        GLboolean answerBuffer[200];
249235c4bbdfSmrg        GLboolean *residences =
249335c4bbdfSmrg            __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
249435c4bbdfSmrg
249535c4bbdfSmrg        if (residences == NULL)
249635c4bbdfSmrg            return BadAlloc;
249735c4bbdfSmrg        retval =
249835c4bbdfSmrg            glAreTexturesResident(n, (const GLuint *) (pc + 4), residences);
24994642e01fSmrg        __glXSendReply(cl->client, residences, n, 1, GL_TRUE, retval);
25004642e01fSmrg        error = Success;
25014642e01fSmrg    }
25024642e01fSmrg
25034642e01fSmrg    return error;
25044642e01fSmrg}
25054642e01fSmrg
250635c4bbdfSmrgvoid
250735c4bbdfSmrg__glXDisp_CopyTexImage1D(GLbyte * pc)
25084642e01fSmrg{
250935c4bbdfSmrg    glCopyTexImage1D(*(GLenum *) (pc + 0),
251035c4bbdfSmrg                     *(GLint *) (pc + 4),
251135c4bbdfSmrg                     *(GLenum *) (pc + 8),
251235c4bbdfSmrg                     *(GLint *) (pc + 12),
251335c4bbdfSmrg                     *(GLint *) (pc + 16),
251435c4bbdfSmrg                     *(GLsizei *) (pc + 20), *(GLint *) (pc + 24));
25154642e01fSmrg}
25164642e01fSmrg
251735c4bbdfSmrgvoid
251835c4bbdfSmrg__glXDisp_CopyTexImage2D(GLbyte * pc)
25194642e01fSmrg{
252035c4bbdfSmrg    glCopyTexImage2D(*(GLenum *) (pc + 0),
252135c4bbdfSmrg                     *(GLint *) (pc + 4),
252235c4bbdfSmrg                     *(GLenum *) (pc + 8),
252335c4bbdfSmrg                     *(GLint *) (pc + 12),
252435c4bbdfSmrg                     *(GLint *) (pc + 16),
252535c4bbdfSmrg                     *(GLsizei *) (pc + 20),
252635c4bbdfSmrg                     *(GLsizei *) (pc + 24), *(GLint *) (pc + 28));
25274642e01fSmrg}
25284642e01fSmrg
252935c4bbdfSmrgvoid
253035c4bbdfSmrg__glXDisp_CopyTexSubImage1D(GLbyte * pc)
25314642e01fSmrg{
253235c4bbdfSmrg    glCopyTexSubImage1D(*(GLenum *) (pc + 0),
253335c4bbdfSmrg                        *(GLint *) (pc + 4),
253435c4bbdfSmrg                        *(GLint *) (pc + 8),
253535c4bbdfSmrg                        *(GLint *) (pc + 12),
253635c4bbdfSmrg                        *(GLint *) (pc + 16), *(GLsizei *) (pc + 20));
25374642e01fSmrg}
25384642e01fSmrg
253935c4bbdfSmrgvoid
254035c4bbdfSmrg__glXDisp_CopyTexSubImage2D(GLbyte * pc)
25414642e01fSmrg{
254235c4bbdfSmrg    glCopyTexSubImage2D(*(GLenum *) (pc + 0),
254335c4bbdfSmrg                        *(GLint *) (pc + 4),
254435c4bbdfSmrg                        *(GLint *) (pc + 8),
254535c4bbdfSmrg                        *(GLint *) (pc + 12),
254635c4bbdfSmrg                        *(GLint *) (pc + 16),
254735c4bbdfSmrg                        *(GLint *) (pc + 20),
254835c4bbdfSmrg                        *(GLsizei *) (pc + 24), *(GLsizei *) (pc + 28));
25494642e01fSmrg}
25504642e01fSmrg
255135c4bbdfSmrgint
255235c4bbdfSmrg__glXDisp_DeleteTextures(__GLXclientState * cl, GLbyte * pc)
25534642e01fSmrg{
255435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
25554642e01fSmrg    int error;
255635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
25574642e01fSmrg
25584642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
255935c4bbdfSmrg    if (cx != NULL) {
256035c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
25614642e01fSmrg
256235c4bbdfSmrg        glDeleteTextures(n, (const GLuint *) (pc + 4));
25634642e01fSmrg        error = Success;
25644642e01fSmrg    }
25654642e01fSmrg
25664642e01fSmrg    return error;
25674642e01fSmrg}
25684642e01fSmrg
256935c4bbdfSmrgint
257035c4bbdfSmrg__glXDisp_DeleteTexturesEXT(__GLXclientState * cl, GLbyte * pc)
25714642e01fSmrg{
257235c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
25734642e01fSmrg    int error;
257435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
25754642e01fSmrg
25764642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
257735c4bbdfSmrg    if (cx != NULL) {
257835c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
25794642e01fSmrg
258035c4bbdfSmrg        glDeleteTextures(n, (const GLuint *) (pc + 4));
25814642e01fSmrg        error = Success;
25824642e01fSmrg    }
25834642e01fSmrg
25844642e01fSmrg    return error;
25854642e01fSmrg}
25864642e01fSmrg
258735c4bbdfSmrgint
258835c4bbdfSmrg__glXDisp_GenTextures(__GLXclientState * cl, GLbyte * pc)
25894642e01fSmrg{
259035c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
25914642e01fSmrg    int error;
259235c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
25934642e01fSmrg
25944642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
259535c4bbdfSmrg    if (cx != NULL) {
259635c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
25974642e01fSmrg
25984642e01fSmrg        GLuint answerBuffer[200];
259935c4bbdfSmrg        GLuint *textures =
260035c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
260135c4bbdfSmrg                                 4);
260235c4bbdfSmrg
260335c4bbdfSmrg        if (textures == NULL)
260435c4bbdfSmrg            return BadAlloc;
260535c4bbdfSmrg        glGenTextures(n, textures);
26064642e01fSmrg        __glXSendReply(cl->client, textures, n, 4, GL_TRUE, 0);
26074642e01fSmrg        error = Success;
26084642e01fSmrg    }
26094642e01fSmrg
26104642e01fSmrg    return error;
26114642e01fSmrg}
26124642e01fSmrg
261335c4bbdfSmrgint
261435c4bbdfSmrg__glXDisp_GenTexturesEXT(__GLXclientState * cl, GLbyte * pc)
26154642e01fSmrg{
261635c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
26174642e01fSmrg    int error;
261835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
26194642e01fSmrg
26204642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
262135c4bbdfSmrg    if (cx != NULL) {
262235c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
26234642e01fSmrg
26244642e01fSmrg        GLuint answerBuffer[200];
262535c4bbdfSmrg        GLuint *textures =
262635c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
262735c4bbdfSmrg                                 4);
262835c4bbdfSmrg
262935c4bbdfSmrg        if (textures == NULL)
263035c4bbdfSmrg            return BadAlloc;
263135c4bbdfSmrg        glGenTextures(n, textures);
26324642e01fSmrg        __glXSendReply(cl->client, textures, n, 4, GL_TRUE, 0);
26334642e01fSmrg        error = Success;
26344642e01fSmrg    }
26354642e01fSmrg
26364642e01fSmrg    return error;
26374642e01fSmrg}
26384642e01fSmrg
263935c4bbdfSmrgint
264035c4bbdfSmrg__glXDisp_IsTexture(__GLXclientState * cl, GLbyte * pc)
26414642e01fSmrg{
264235c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
26434642e01fSmrg    int error;
264435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
26454642e01fSmrg
26464642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
264735c4bbdfSmrg    if (cx != NULL) {
26484642e01fSmrg        GLboolean retval;
264935c4bbdfSmrg
265035c4bbdfSmrg        retval = glIsTexture(*(GLuint *) (pc + 0));
26514642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
26524642e01fSmrg        error = Success;
26534642e01fSmrg    }
26544642e01fSmrg
26554642e01fSmrg    return error;
26564642e01fSmrg}
26574642e01fSmrg
265835c4bbdfSmrgint
265935c4bbdfSmrg__glXDisp_IsTextureEXT(__GLXclientState * cl, GLbyte * pc)
26604642e01fSmrg{
266135c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
26624642e01fSmrg    int error;
266335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
26644642e01fSmrg
26654642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
266635c4bbdfSmrg    if (cx != NULL) {
26674642e01fSmrg        GLboolean retval;
266835c4bbdfSmrg
266935c4bbdfSmrg        retval = glIsTexture(*(GLuint *) (pc + 0));
26704642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
26714642e01fSmrg        error = Success;
26724642e01fSmrg    }
26734642e01fSmrg
26744642e01fSmrg    return error;
26754642e01fSmrg}
26764642e01fSmrg
267735c4bbdfSmrgvoid
267835c4bbdfSmrg__glXDisp_PrioritizeTextures(GLbyte * pc)
26794642e01fSmrg{
268035c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 0);
26814642e01fSmrg
268235c4bbdfSmrg    glPrioritizeTextures(n,
268335c4bbdfSmrg                         (const GLuint *) (pc + 4),
268435c4bbdfSmrg                         (const GLclampf *) (pc + 4));
26854642e01fSmrg}
26864642e01fSmrg
268735c4bbdfSmrgvoid
268835c4bbdfSmrg__glXDisp_TexSubImage1D(GLbyte * pc)
26894642e01fSmrg{
269035c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 56));
269135c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
26924642e01fSmrg
269335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
269435c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
269535c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
269635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
269735c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
269835c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
26994642e01fSmrg
270035c4bbdfSmrg    glTexSubImage1D(*(GLenum *) (pc + 20),
270135c4bbdfSmrg                    *(GLint *) (pc + 24),
270235c4bbdfSmrg                    *(GLint *) (pc + 28),
270335c4bbdfSmrg                    *(GLsizei *) (pc + 36),
270435c4bbdfSmrg                    *(GLenum *) (pc + 44), *(GLenum *) (pc + 48), pixels);
27054642e01fSmrg}
27064642e01fSmrg
270735c4bbdfSmrgvoid
270835c4bbdfSmrg__glXDisp_TexSubImage2D(GLbyte * pc)
27094642e01fSmrg{
271035c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 56));
271135c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
27124642e01fSmrg
271335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
271435c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
271535c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
271635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
271735c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
271835c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
27194642e01fSmrg
272035c4bbdfSmrg    glTexSubImage2D(*(GLenum *) (pc + 20),
272135c4bbdfSmrg                    *(GLint *) (pc + 24),
272235c4bbdfSmrg                    *(GLint *) (pc + 28),
272335c4bbdfSmrg                    *(GLint *) (pc + 32),
272435c4bbdfSmrg                    *(GLsizei *) (pc + 36),
272535c4bbdfSmrg                    *(GLsizei *) (pc + 40),
272635c4bbdfSmrg                    *(GLenum *) (pc + 44), *(GLenum *) (pc + 48), pixels);
27274642e01fSmrg}
27284642e01fSmrg
272935c4bbdfSmrgvoid
273035c4bbdfSmrg__glXDisp_BlendColor(GLbyte * pc)
27314642e01fSmrg{
273235c4bbdfSmrg    glBlendColor(*(GLclampf *) (pc + 0),
273335c4bbdfSmrg                 *(GLclampf *) (pc + 4),
273435c4bbdfSmrg                 *(GLclampf *) (pc + 8), *(GLclampf *) (pc + 12));
27354642e01fSmrg}
27364642e01fSmrg
273735c4bbdfSmrgvoid
273835c4bbdfSmrg__glXDisp_BlendEquation(GLbyte * pc)
27394642e01fSmrg{
274035c4bbdfSmrg    glBlendEquation(*(GLenum *) (pc + 0));
27414642e01fSmrg}
27424642e01fSmrg
274335c4bbdfSmrgvoid
274435c4bbdfSmrg__glXDisp_ColorTable(GLbyte * pc)
27454642e01fSmrg{
274635c4bbdfSmrg    const GLvoid *const table = (const GLvoid *) ((pc + 40));
274735c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
27484642e01fSmrg
274935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
275035c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
275135c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
275235c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
275335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
275435c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
27554642e01fSmrg
275635c4bbdfSmrg    glColorTable(*(GLenum *) (pc + 20),
275735c4bbdfSmrg                 *(GLenum *) (pc + 24),
275835c4bbdfSmrg                 *(GLsizei *) (pc + 28),
275935c4bbdfSmrg                 *(GLenum *) (pc + 32), *(GLenum *) (pc + 36), table);
27604642e01fSmrg}
27614642e01fSmrg
276235c4bbdfSmrgvoid
276335c4bbdfSmrg__glXDisp_ColorTableParameterfv(GLbyte * pc)
27644642e01fSmrg{
276535c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
276635c4bbdfSmrg    const GLfloat *params;
27674642e01fSmrg
27684642e01fSmrg    params = (const GLfloat *) (pc + 8);
27694642e01fSmrg
277035c4bbdfSmrg    glColorTableParameterfv(*(GLenum *) (pc + 0), pname, params);
27714642e01fSmrg}
27724642e01fSmrg
277335c4bbdfSmrgvoid
277435c4bbdfSmrg__glXDisp_ColorTableParameteriv(GLbyte * pc)
27754642e01fSmrg{
277635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
277735c4bbdfSmrg    const GLint *params;
27784642e01fSmrg
27794642e01fSmrg    params = (const GLint *) (pc + 8);
27804642e01fSmrg
278135c4bbdfSmrg    glColorTableParameteriv(*(GLenum *) (pc + 0), pname, params);
27824642e01fSmrg}
27834642e01fSmrg
278435c4bbdfSmrgvoid
278535c4bbdfSmrg__glXDisp_CopyColorTable(GLbyte * pc)
27864642e01fSmrg{
278735c4bbdfSmrg    glCopyColorTable(*(GLenum *) (pc + 0),
278835c4bbdfSmrg                     *(GLenum *) (pc + 4),
278935c4bbdfSmrg                     *(GLint *) (pc + 8),
279035c4bbdfSmrg                     *(GLint *) (pc + 12), *(GLsizei *) (pc + 16));
27914642e01fSmrg}
27924642e01fSmrg
279335c4bbdfSmrgint
279435c4bbdfSmrg__glXDisp_GetColorTableParameterfv(__GLXclientState * cl, GLbyte * pc)
27954642e01fSmrg{
279635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
27974642e01fSmrg    int error;
279835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
27994642e01fSmrg
28004642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
280135c4bbdfSmrg    if (cx != NULL) {
280235c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
28034642e01fSmrg
28044642e01fSmrg        const GLuint compsize = __glGetColorTableParameterfv_size(pname);
28054642e01fSmrg        GLfloat answerBuffer[200];
280635c4bbdfSmrg        GLfloat *params =
280735c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
280835c4bbdfSmrg                                 sizeof(answerBuffer), 4);
28094642e01fSmrg
281035c4bbdfSmrg        if (params == NULL)
281135c4bbdfSmrg            return BadAlloc;
28124642e01fSmrg        __glXClearErrorOccured();
28134642e01fSmrg
281435c4bbdfSmrg        glGetColorTableParameterfv(*(GLenum *) (pc + 0), pname, params);
28154642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
28164642e01fSmrg        error = Success;
28174642e01fSmrg    }
28184642e01fSmrg
28194642e01fSmrg    return error;
28204642e01fSmrg}
28214642e01fSmrg
282235c4bbdfSmrgint
282335c4bbdfSmrg__glXDisp_GetColorTableParameterfvSGI(__GLXclientState * cl, GLbyte * pc)
28244642e01fSmrg{
282535c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
28264642e01fSmrg    int error;
282735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
28284642e01fSmrg
28294642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
283035c4bbdfSmrg    if (cx != NULL) {
283135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
28324642e01fSmrg
28334642e01fSmrg        const GLuint compsize = __glGetColorTableParameterfv_size(pname);
28344642e01fSmrg        GLfloat answerBuffer[200];
283535c4bbdfSmrg        GLfloat *params =
283635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
283735c4bbdfSmrg                                 sizeof(answerBuffer), 4);
28384642e01fSmrg
283935c4bbdfSmrg        if (params == NULL)
284035c4bbdfSmrg            return BadAlloc;
28414642e01fSmrg        __glXClearErrorOccured();
28424642e01fSmrg
284335c4bbdfSmrg        glGetColorTableParameterfv(*(GLenum *) (pc + 0), pname, params);
28444642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
28454642e01fSmrg        error = Success;
28464642e01fSmrg    }
28474642e01fSmrg
28484642e01fSmrg    return error;
28494642e01fSmrg}
28504642e01fSmrg
285135c4bbdfSmrgint
285235c4bbdfSmrg__glXDisp_GetColorTableParameteriv(__GLXclientState * cl, GLbyte * pc)
28534642e01fSmrg{
285435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
28554642e01fSmrg    int error;
285635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
28574642e01fSmrg
28584642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
285935c4bbdfSmrg    if (cx != NULL) {
286035c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
28614642e01fSmrg
28624642e01fSmrg        const GLuint compsize = __glGetColorTableParameteriv_size(pname);
28634642e01fSmrg        GLint answerBuffer[200];
286435c4bbdfSmrg        GLint *params =
286535c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
286635c4bbdfSmrg                                 sizeof(answerBuffer), 4);
28674642e01fSmrg
286835c4bbdfSmrg        if (params == NULL)
286935c4bbdfSmrg            return BadAlloc;
28704642e01fSmrg        __glXClearErrorOccured();
28714642e01fSmrg
287235c4bbdfSmrg        glGetColorTableParameteriv(*(GLenum *) (pc + 0), pname, params);
28734642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
28744642e01fSmrg        error = Success;
28754642e01fSmrg    }
28764642e01fSmrg
28774642e01fSmrg    return error;
28784642e01fSmrg}
28794642e01fSmrg
288035c4bbdfSmrgint
288135c4bbdfSmrg__glXDisp_GetColorTableParameterivSGI(__GLXclientState * cl, GLbyte * pc)
28824642e01fSmrg{
288335c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
28844642e01fSmrg    int error;
288535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
28864642e01fSmrg
28874642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
288835c4bbdfSmrg    if (cx != NULL) {
288935c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
28904642e01fSmrg
28914642e01fSmrg        const GLuint compsize = __glGetColorTableParameteriv_size(pname);
28924642e01fSmrg        GLint answerBuffer[200];
289335c4bbdfSmrg        GLint *params =
289435c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
289535c4bbdfSmrg                                 sizeof(answerBuffer), 4);
28964642e01fSmrg
289735c4bbdfSmrg        if (params == NULL)
289835c4bbdfSmrg            return BadAlloc;
28994642e01fSmrg        __glXClearErrorOccured();
29004642e01fSmrg
290135c4bbdfSmrg        glGetColorTableParameteriv(*(GLenum *) (pc + 0), pname, params);
29024642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
29034642e01fSmrg        error = Success;
29044642e01fSmrg    }
29054642e01fSmrg
29064642e01fSmrg    return error;
29074642e01fSmrg}
29084642e01fSmrg
290935c4bbdfSmrgvoid
291035c4bbdfSmrg__glXDisp_ColorSubTable(GLbyte * pc)
29114642e01fSmrg{
291235c4bbdfSmrg    const GLvoid *const data = (const GLvoid *) ((pc + 40));
291335c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
29144642e01fSmrg
291535c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
291635c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
291735c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
291835c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
291935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
292035c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
29214642e01fSmrg
292235c4bbdfSmrg    glColorSubTable(*(GLenum *) (pc + 20),
292335c4bbdfSmrg                    *(GLsizei *) (pc + 24),
292435c4bbdfSmrg                    *(GLsizei *) (pc + 28),
292535c4bbdfSmrg                    *(GLenum *) (pc + 32), *(GLenum *) (pc + 36), data);
29264642e01fSmrg}
29274642e01fSmrg
292835c4bbdfSmrgvoid
292935c4bbdfSmrg__glXDisp_CopyColorSubTable(GLbyte * pc)
29304642e01fSmrg{
293135c4bbdfSmrg    glCopyColorSubTable(*(GLenum *) (pc + 0),
293235c4bbdfSmrg                        *(GLsizei *) (pc + 4),
293335c4bbdfSmrg                        *(GLint *) (pc + 8),
293435c4bbdfSmrg                        *(GLint *) (pc + 12), *(GLsizei *) (pc + 16));
29354642e01fSmrg}
29364642e01fSmrg
293735c4bbdfSmrgvoid
293835c4bbdfSmrg__glXDisp_ConvolutionFilter1D(GLbyte * pc)
29394642e01fSmrg{
294035c4bbdfSmrg    const GLvoid *const image = (const GLvoid *) ((pc + 44));
294135c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
29424642e01fSmrg
294335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
294435c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
294535c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
294635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
294735c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
294835c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
29494642e01fSmrg
295035c4bbdfSmrg    glConvolutionFilter1D(*(GLenum *) (pc + 20),
295135c4bbdfSmrg                          *(GLenum *) (pc + 24),
295235c4bbdfSmrg                          *(GLsizei *) (pc + 28),
295335c4bbdfSmrg                          *(GLenum *) (pc + 36), *(GLenum *) (pc + 40), image);
29544642e01fSmrg}
29554642e01fSmrg
295635c4bbdfSmrgvoid
295735c4bbdfSmrg__glXDisp_ConvolutionFilter2D(GLbyte * pc)
29584642e01fSmrg{
295935c4bbdfSmrg    const GLvoid *const image = (const GLvoid *) ((pc + 44));
296035c4bbdfSmrg    __GLXpixelHeader *const hdr = (__GLXpixelHeader *) (pc);
29614642e01fSmrg
296235c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
296335c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
296435c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
296535c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
296635c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
296735c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
29684642e01fSmrg
296935c4bbdfSmrg    glConvolutionFilter2D(*(GLenum *) (pc + 20),
297035c4bbdfSmrg                          *(GLenum *) (pc + 24),
297135c4bbdfSmrg                          *(GLsizei *) (pc + 28),
297235c4bbdfSmrg                          *(GLsizei *) (pc + 32),
297335c4bbdfSmrg                          *(GLenum *) (pc + 36), *(GLenum *) (pc + 40), image);
29744642e01fSmrg}
29754642e01fSmrg
297635c4bbdfSmrgvoid
297735c4bbdfSmrg__glXDisp_ConvolutionParameterf(GLbyte * pc)
29784642e01fSmrg{
297935c4bbdfSmrg    glConvolutionParameterf(*(GLenum *) (pc + 0),
298035c4bbdfSmrg                            *(GLenum *) (pc + 4), *(GLfloat *) (pc + 8));
29814642e01fSmrg}
29824642e01fSmrg
298335c4bbdfSmrgvoid
298435c4bbdfSmrg__glXDisp_ConvolutionParameterfv(GLbyte * pc)
29854642e01fSmrg{
298635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
298735c4bbdfSmrg    const GLfloat *params;
29884642e01fSmrg
29894642e01fSmrg    params = (const GLfloat *) (pc + 8);
29904642e01fSmrg
299135c4bbdfSmrg    glConvolutionParameterfv(*(GLenum *) (pc + 0), pname, params);
29924642e01fSmrg}
29934642e01fSmrg
299435c4bbdfSmrgvoid
299535c4bbdfSmrg__glXDisp_ConvolutionParameteri(GLbyte * pc)
29964642e01fSmrg{
299735c4bbdfSmrg    glConvolutionParameteri(*(GLenum *) (pc + 0),
299835c4bbdfSmrg                            *(GLenum *) (pc + 4), *(GLint *) (pc + 8));
29994642e01fSmrg}
30004642e01fSmrg
300135c4bbdfSmrgvoid
300235c4bbdfSmrg__glXDisp_ConvolutionParameteriv(GLbyte * pc)
30034642e01fSmrg{
300435c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 4);
300535c4bbdfSmrg    const GLint *params;
30064642e01fSmrg
30074642e01fSmrg    params = (const GLint *) (pc + 8);
30084642e01fSmrg
300935c4bbdfSmrg    glConvolutionParameteriv(*(GLenum *) (pc + 0), pname, params);
30104642e01fSmrg}
30114642e01fSmrg
301235c4bbdfSmrgvoid
301335c4bbdfSmrg__glXDisp_CopyConvolutionFilter1D(GLbyte * pc)
30144642e01fSmrg{
301535c4bbdfSmrg    glCopyConvolutionFilter1D(*(GLenum *) (pc + 0),
301635c4bbdfSmrg                              *(GLenum *) (pc + 4),
301735c4bbdfSmrg                              *(GLint *) (pc + 8),
301835c4bbdfSmrg                              *(GLint *) (pc + 12), *(GLsizei *) (pc + 16));
30194642e01fSmrg}
30204642e01fSmrg
302135c4bbdfSmrgvoid
302235c4bbdfSmrg__glXDisp_CopyConvolutionFilter2D(GLbyte * pc)
30234642e01fSmrg{
302435c4bbdfSmrg    glCopyConvolutionFilter2D(*(GLenum *) (pc + 0),
302535c4bbdfSmrg                              *(GLenum *) (pc + 4),
302635c4bbdfSmrg                              *(GLint *) (pc + 8),
302735c4bbdfSmrg                              *(GLint *) (pc + 12),
302835c4bbdfSmrg                              *(GLsizei *) (pc + 16), *(GLsizei *) (pc + 20));
30294642e01fSmrg}
30304642e01fSmrg
303135c4bbdfSmrgint
303235c4bbdfSmrg__glXDisp_GetConvolutionParameterfv(__GLXclientState * cl, GLbyte * pc)
30334642e01fSmrg{
303435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
30354642e01fSmrg    int error;
303635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
30374642e01fSmrg
30384642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
303935c4bbdfSmrg    if (cx != NULL) {
304035c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
30414642e01fSmrg
30424642e01fSmrg        const GLuint compsize = __glGetConvolutionParameterfv_size(pname);
30434642e01fSmrg        GLfloat answerBuffer[200];
304435c4bbdfSmrg        GLfloat *params =
304535c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
304635c4bbdfSmrg                                 sizeof(answerBuffer), 4);
30474642e01fSmrg
304835c4bbdfSmrg        if (params == NULL)
304935c4bbdfSmrg            return BadAlloc;
30504642e01fSmrg        __glXClearErrorOccured();
30514642e01fSmrg
305235c4bbdfSmrg        glGetConvolutionParameterfv(*(GLenum *) (pc + 0), pname, params);
30534642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
30544642e01fSmrg        error = Success;
30554642e01fSmrg    }
30564642e01fSmrg
30574642e01fSmrg    return error;
30584642e01fSmrg}
30594642e01fSmrg
306035c4bbdfSmrgint
306135c4bbdfSmrg__glXDisp_GetConvolutionParameterfvEXT(__GLXclientState * cl, GLbyte * pc)
30624642e01fSmrg{
306335c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
30644642e01fSmrg    int error;
306535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
30664642e01fSmrg
30674642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
306835c4bbdfSmrg    if (cx != NULL) {
306935c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
30704642e01fSmrg
30714642e01fSmrg        const GLuint compsize = __glGetConvolutionParameterfv_size(pname);
30724642e01fSmrg        GLfloat answerBuffer[200];
307335c4bbdfSmrg        GLfloat *params =
307435c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
307535c4bbdfSmrg                                 sizeof(answerBuffer), 4);
30764642e01fSmrg
307735c4bbdfSmrg        if (params == NULL)
307835c4bbdfSmrg            return BadAlloc;
30794642e01fSmrg        __glXClearErrorOccured();
30804642e01fSmrg
308135c4bbdfSmrg        glGetConvolutionParameterfv(*(GLenum *) (pc + 0), pname, params);
30824642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
30834642e01fSmrg        error = Success;
30844642e01fSmrg    }
30854642e01fSmrg
30864642e01fSmrg    return error;
30874642e01fSmrg}
30884642e01fSmrg
308935c4bbdfSmrgint
309035c4bbdfSmrg__glXDisp_GetConvolutionParameteriv(__GLXclientState * cl, GLbyte * pc)
30914642e01fSmrg{
309235c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
30934642e01fSmrg    int error;
309435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
30954642e01fSmrg
30964642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
309735c4bbdfSmrg    if (cx != NULL) {
309835c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
30994642e01fSmrg
31004642e01fSmrg        const GLuint compsize = __glGetConvolutionParameteriv_size(pname);
31014642e01fSmrg        GLint answerBuffer[200];
310235c4bbdfSmrg        GLint *params =
310335c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
310435c4bbdfSmrg                                 sizeof(answerBuffer), 4);
31054642e01fSmrg
310635c4bbdfSmrg        if (params == NULL)
310735c4bbdfSmrg            return BadAlloc;
31084642e01fSmrg        __glXClearErrorOccured();
31094642e01fSmrg
311035c4bbdfSmrg        glGetConvolutionParameteriv(*(GLenum *) (pc + 0), pname, params);
31114642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
31124642e01fSmrg        error = Success;
31134642e01fSmrg    }
31144642e01fSmrg
31154642e01fSmrg    return error;
31164642e01fSmrg}
31174642e01fSmrg
311835c4bbdfSmrgint
311935c4bbdfSmrg__glXDisp_GetConvolutionParameterivEXT(__GLXclientState * cl, GLbyte * pc)
31204642e01fSmrg{
312135c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
31224642e01fSmrg    int error;
312335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
31244642e01fSmrg
31254642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
312635c4bbdfSmrg    if (cx != NULL) {
312735c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
31284642e01fSmrg
31294642e01fSmrg        const GLuint compsize = __glGetConvolutionParameteriv_size(pname);
31304642e01fSmrg        GLint answerBuffer[200];
313135c4bbdfSmrg        GLint *params =
313235c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
313335c4bbdfSmrg                                 sizeof(answerBuffer), 4);
31344642e01fSmrg
313535c4bbdfSmrg        if (params == NULL)
313635c4bbdfSmrg            return BadAlloc;
31374642e01fSmrg        __glXClearErrorOccured();
31384642e01fSmrg
313935c4bbdfSmrg        glGetConvolutionParameteriv(*(GLenum *) (pc + 0), pname, params);
31404642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
31414642e01fSmrg        error = Success;
31424642e01fSmrg    }
31434642e01fSmrg
31444642e01fSmrg    return error;
31454642e01fSmrg}
31464642e01fSmrg
314735c4bbdfSmrgint
314835c4bbdfSmrg__glXDisp_GetHistogramParameterfv(__GLXclientState * cl, GLbyte * pc)
31494642e01fSmrg{
315035c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
31514642e01fSmrg    int error;
315235c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
31534642e01fSmrg
31544642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
315535c4bbdfSmrg    if (cx != NULL) {
315635c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
31574642e01fSmrg
31584642e01fSmrg        const GLuint compsize = __glGetHistogramParameterfv_size(pname);
31594642e01fSmrg        GLfloat answerBuffer[200];
316035c4bbdfSmrg        GLfloat *params =
316135c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
316235c4bbdfSmrg                                 sizeof(answerBuffer), 4);
31634642e01fSmrg
316435c4bbdfSmrg        if (params == NULL)
316535c4bbdfSmrg            return BadAlloc;
31664642e01fSmrg        __glXClearErrorOccured();
31674642e01fSmrg
316835c4bbdfSmrg        glGetHistogramParameterfv(*(GLenum *) (pc + 0), pname, params);
31694642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
31704642e01fSmrg        error = Success;
31714642e01fSmrg    }
31724642e01fSmrg
31734642e01fSmrg    return error;
31744642e01fSmrg}
31754642e01fSmrg
317635c4bbdfSmrgint
317735c4bbdfSmrg__glXDisp_GetHistogramParameterfvEXT(__GLXclientState * cl, GLbyte * pc)
31784642e01fSmrg{
317935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
31804642e01fSmrg    int error;
318135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
31824642e01fSmrg
31834642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
318435c4bbdfSmrg    if (cx != NULL) {
318535c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
31864642e01fSmrg
31874642e01fSmrg        const GLuint compsize = __glGetHistogramParameterfv_size(pname);
31884642e01fSmrg        GLfloat answerBuffer[200];
318935c4bbdfSmrg        GLfloat *params =
319035c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
319135c4bbdfSmrg                                 sizeof(answerBuffer), 4);
31924642e01fSmrg
319335c4bbdfSmrg        if (params == NULL)
319435c4bbdfSmrg            return BadAlloc;
31954642e01fSmrg        __glXClearErrorOccured();
31964642e01fSmrg
319735c4bbdfSmrg        glGetHistogramParameterfv(*(GLenum *) (pc + 0), pname, params);
31984642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
31994642e01fSmrg        error = Success;
32004642e01fSmrg    }
32014642e01fSmrg
32024642e01fSmrg    return error;
32034642e01fSmrg}
32044642e01fSmrg
320535c4bbdfSmrgint
320635c4bbdfSmrg__glXDisp_GetHistogramParameteriv(__GLXclientState * cl, GLbyte * pc)
32074642e01fSmrg{
320835c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
32094642e01fSmrg    int error;
321035c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
32114642e01fSmrg
32124642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
321335c4bbdfSmrg    if (cx != NULL) {
321435c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
32154642e01fSmrg
32164642e01fSmrg        const GLuint compsize = __glGetHistogramParameteriv_size(pname);
32174642e01fSmrg        GLint answerBuffer[200];
321835c4bbdfSmrg        GLint *params =
321935c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
322035c4bbdfSmrg                                 sizeof(answerBuffer), 4);
32214642e01fSmrg
322235c4bbdfSmrg        if (params == NULL)
322335c4bbdfSmrg            return BadAlloc;
32244642e01fSmrg        __glXClearErrorOccured();
32254642e01fSmrg
322635c4bbdfSmrg        glGetHistogramParameteriv(*(GLenum *) (pc + 0), pname, params);
32274642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
32284642e01fSmrg        error = Success;
32294642e01fSmrg    }
32304642e01fSmrg
32314642e01fSmrg    return error;
32324642e01fSmrg}
32334642e01fSmrg
323435c4bbdfSmrgint
323535c4bbdfSmrg__glXDisp_GetHistogramParameterivEXT(__GLXclientState * cl, GLbyte * pc)
32364642e01fSmrg{
323735c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
32384642e01fSmrg    int error;
323935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
32404642e01fSmrg
32414642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
324235c4bbdfSmrg    if (cx != NULL) {
324335c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
32444642e01fSmrg
32454642e01fSmrg        const GLuint compsize = __glGetHistogramParameteriv_size(pname);
32464642e01fSmrg        GLint answerBuffer[200];
324735c4bbdfSmrg        GLint *params =
324835c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
324935c4bbdfSmrg                                 sizeof(answerBuffer), 4);
32504642e01fSmrg
325135c4bbdfSmrg        if (params == NULL)
325235c4bbdfSmrg            return BadAlloc;
32534642e01fSmrg        __glXClearErrorOccured();
32544642e01fSmrg
325535c4bbdfSmrg        glGetHistogramParameteriv(*(GLenum *) (pc + 0), pname, params);
32564642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
32574642e01fSmrg        error = Success;
32584642e01fSmrg    }
32594642e01fSmrg
32604642e01fSmrg    return error;
32614642e01fSmrg}
32624642e01fSmrg
326335c4bbdfSmrgint
326435c4bbdfSmrg__glXDisp_GetMinmaxParameterfv(__GLXclientState * cl, GLbyte * pc)
32654642e01fSmrg{
326635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
32674642e01fSmrg    int error;
326835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
32694642e01fSmrg
32704642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
327135c4bbdfSmrg    if (cx != NULL) {
327235c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
32734642e01fSmrg
32744642e01fSmrg        const GLuint compsize = __glGetMinmaxParameterfv_size(pname);
32754642e01fSmrg        GLfloat answerBuffer[200];
327635c4bbdfSmrg        GLfloat *params =
327735c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
327835c4bbdfSmrg                                 sizeof(answerBuffer), 4);
32794642e01fSmrg
328035c4bbdfSmrg        if (params == NULL)
328135c4bbdfSmrg            return BadAlloc;
32824642e01fSmrg        __glXClearErrorOccured();
32834642e01fSmrg
328435c4bbdfSmrg        glGetMinmaxParameterfv(*(GLenum *) (pc + 0), pname, params);
32854642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
32864642e01fSmrg        error = Success;
32874642e01fSmrg    }
32884642e01fSmrg
32894642e01fSmrg    return error;
32904642e01fSmrg}
32914642e01fSmrg
329235c4bbdfSmrgint
329335c4bbdfSmrg__glXDisp_GetMinmaxParameterfvEXT(__GLXclientState * cl, GLbyte * pc)
32944642e01fSmrg{
329535c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
32964642e01fSmrg    int error;
329735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
32984642e01fSmrg
32994642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
330035c4bbdfSmrg    if (cx != NULL) {
330135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
33024642e01fSmrg
33034642e01fSmrg        const GLuint compsize = __glGetMinmaxParameterfv_size(pname);
33044642e01fSmrg        GLfloat answerBuffer[200];
330535c4bbdfSmrg        GLfloat *params =
330635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
330735c4bbdfSmrg                                 sizeof(answerBuffer), 4);
33084642e01fSmrg
330935c4bbdfSmrg        if (params == NULL)
331035c4bbdfSmrg            return BadAlloc;
33114642e01fSmrg        __glXClearErrorOccured();
33124642e01fSmrg
331335c4bbdfSmrg        glGetMinmaxParameterfv(*(GLenum *) (pc + 0), pname, params);
33144642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
33154642e01fSmrg        error = Success;
33164642e01fSmrg    }
33174642e01fSmrg
33184642e01fSmrg    return error;
33194642e01fSmrg}
33204642e01fSmrg
332135c4bbdfSmrgint
332235c4bbdfSmrg__glXDisp_GetMinmaxParameteriv(__GLXclientState * cl, GLbyte * pc)
33234642e01fSmrg{
332435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
33254642e01fSmrg    int error;
332635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
33274642e01fSmrg
33284642e01fSmrg    pc += __GLX_SINGLE_HDR_SIZE;
332935c4bbdfSmrg    if (cx != NULL) {
333035c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
33314642e01fSmrg
33324642e01fSmrg        const GLuint compsize = __glGetMinmaxParameteriv_size(pname);
33334642e01fSmrg        GLint answerBuffer[200];
333435c4bbdfSmrg        GLint *params =
333535c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
333635c4bbdfSmrg                                 sizeof(answerBuffer), 4);
33374642e01fSmrg
333835c4bbdfSmrg        if (params == NULL)
333935c4bbdfSmrg            return BadAlloc;
33404642e01fSmrg        __glXClearErrorOccured();
33414642e01fSmrg
334235c4bbdfSmrg        glGetMinmaxParameteriv(*(GLenum *) (pc + 0), pname, params);
33434642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
33444642e01fSmrg        error = Success;
33454642e01fSmrg    }
33464642e01fSmrg
33474642e01fSmrg    return error;
33484642e01fSmrg}
33494642e01fSmrg
335035c4bbdfSmrgint
335135c4bbdfSmrg__glXDisp_GetMinmaxParameterivEXT(__GLXclientState * cl, GLbyte * pc)
33524642e01fSmrg{
335335c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
33544642e01fSmrg    int error;
335535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
33564642e01fSmrg
33574642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
335835c4bbdfSmrg    if (cx != NULL) {
335935c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
33604642e01fSmrg
33614642e01fSmrg        const GLuint compsize = __glGetMinmaxParameteriv_size(pname);
33624642e01fSmrg        GLint answerBuffer[200];
336335c4bbdfSmrg        GLint *params =
336435c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
336535c4bbdfSmrg                                 sizeof(answerBuffer), 4);
33664642e01fSmrg
336735c4bbdfSmrg        if (params == NULL)
336835c4bbdfSmrg            return BadAlloc;
33694642e01fSmrg        __glXClearErrorOccured();
33704642e01fSmrg
337135c4bbdfSmrg        glGetMinmaxParameteriv(*(GLenum *) (pc + 0), pname, params);
33724642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
33734642e01fSmrg        error = Success;
33744642e01fSmrg    }
33754642e01fSmrg
33764642e01fSmrg    return error;
33774642e01fSmrg}
33784642e01fSmrg
337935c4bbdfSmrgvoid
338035c4bbdfSmrg__glXDisp_Histogram(GLbyte * pc)
338135c4bbdfSmrg{
338235c4bbdfSmrg    glHistogram(*(GLenum *) (pc + 0),
338335c4bbdfSmrg                *(GLsizei *) (pc + 4),
338435c4bbdfSmrg                *(GLenum *) (pc + 8), *(GLboolean *) (pc + 12));
33854642e01fSmrg}
33864642e01fSmrg
338735c4bbdfSmrgvoid
338835c4bbdfSmrg__glXDisp_Minmax(GLbyte * pc)
33894642e01fSmrg{
339035c4bbdfSmrg    glMinmax(*(GLenum *) (pc + 0),
339135c4bbdfSmrg             *(GLenum *) (pc + 4), *(GLboolean *) (pc + 8));
33924642e01fSmrg}
33934642e01fSmrg
339435c4bbdfSmrgvoid
339535c4bbdfSmrg__glXDisp_ResetHistogram(GLbyte * pc)
33964642e01fSmrg{
339735c4bbdfSmrg    glResetHistogram(*(GLenum *) (pc + 0));
33984642e01fSmrg}
33994642e01fSmrg
340035c4bbdfSmrgvoid
340135c4bbdfSmrg__glXDisp_ResetMinmax(GLbyte * pc)
34024642e01fSmrg{
340335c4bbdfSmrg    glResetMinmax(*(GLenum *) (pc + 0));
34044642e01fSmrg}
34054642e01fSmrg
340635c4bbdfSmrgvoid
340735c4bbdfSmrg__glXDisp_TexImage3D(GLbyte * pc)
34084642e01fSmrg{
340935c4bbdfSmrg    const CARD32 ptr_is_null = *(CARD32 *) (pc + 76);
341035c4bbdfSmrg    const GLvoid *const pixels =
341135c4bbdfSmrg        (const GLvoid *) ((ptr_is_null != 0) ? NULL : (pc + 80));
341235c4bbdfSmrg    __GLXpixel3DHeader *const hdr = (__GLXpixel3DHeader *) (pc);
34134642e01fSmrg
341435c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
341535c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
341635c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
341735c4bbdfSmrg    glPixelStorei(GL_UNPACK_IMAGE_HEIGHT, (GLint) hdr->imageHeight);
341835c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
341935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_IMAGES, (GLint) hdr->skipImages);
342035c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
342135c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
34224642e01fSmrg
342335c4bbdfSmrg    glTexImage3D(*(GLenum *) (pc + 36),
342435c4bbdfSmrg                 *(GLint *) (pc + 40),
342535c4bbdfSmrg                 *(GLint *) (pc + 44),
342635c4bbdfSmrg                 *(GLsizei *) (pc + 48),
342735c4bbdfSmrg                 *(GLsizei *) (pc + 52),
342835c4bbdfSmrg                 *(GLsizei *) (pc + 56),
342935c4bbdfSmrg                 *(GLint *) (pc + 64),
343035c4bbdfSmrg                 *(GLenum *) (pc + 68), *(GLenum *) (pc + 72), pixels);
34314642e01fSmrg}
34324642e01fSmrg
343335c4bbdfSmrgvoid
343435c4bbdfSmrg__glXDisp_TexSubImage3D(GLbyte * pc)
34354642e01fSmrg{
343635c4bbdfSmrg    const GLvoid *const pixels = (const GLvoid *) ((pc + 88));
343735c4bbdfSmrg    __GLXpixel3DHeader *const hdr = (__GLXpixel3DHeader *) (pc);
34384642e01fSmrg
343935c4bbdfSmrg    glPixelStorei(GL_UNPACK_SWAP_BYTES, hdr->swapBytes);
344035c4bbdfSmrg    glPixelStorei(GL_UNPACK_LSB_FIRST, hdr->lsbFirst);
344135c4bbdfSmrg    glPixelStorei(GL_UNPACK_ROW_LENGTH, (GLint) hdr->rowLength);
344235c4bbdfSmrg    glPixelStorei(GL_UNPACK_IMAGE_HEIGHT, (GLint) hdr->imageHeight);
344335c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_ROWS, (GLint) hdr->skipRows);
344435c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_IMAGES, (GLint) hdr->skipImages);
344535c4bbdfSmrg    glPixelStorei(GL_UNPACK_SKIP_PIXELS, (GLint) hdr->skipPixels);
344635c4bbdfSmrg    glPixelStorei(GL_UNPACK_ALIGNMENT, (GLint) hdr->alignment);
34474642e01fSmrg
344835c4bbdfSmrg    glTexSubImage3D(*(GLenum *) (pc + 36),
344935c4bbdfSmrg                    *(GLint *) (pc + 40),
345035c4bbdfSmrg                    *(GLint *) (pc + 44),
345135c4bbdfSmrg                    *(GLint *) (pc + 48),
345235c4bbdfSmrg                    *(GLint *) (pc + 52),
345335c4bbdfSmrg                    *(GLsizei *) (pc + 60),
345435c4bbdfSmrg                    *(GLsizei *) (pc + 64),
345535c4bbdfSmrg                    *(GLsizei *) (pc + 68),
345635c4bbdfSmrg                    *(GLenum *) (pc + 76), *(GLenum *) (pc + 80), pixels);
34574642e01fSmrg}
34584642e01fSmrg
345935c4bbdfSmrgvoid
346035c4bbdfSmrg__glXDisp_CopyTexSubImage3D(GLbyte * pc)
34614642e01fSmrg{
346235c4bbdfSmrg    glCopyTexSubImage3D(*(GLenum *) (pc + 0),
346335c4bbdfSmrg                        *(GLint *) (pc + 4),
346435c4bbdfSmrg                        *(GLint *) (pc + 8),
346535c4bbdfSmrg                        *(GLint *) (pc + 12),
346635c4bbdfSmrg                        *(GLint *) (pc + 16),
346735c4bbdfSmrg                        *(GLint *) (pc + 20),
346835c4bbdfSmrg                        *(GLint *) (pc + 24),
346935c4bbdfSmrg                        *(GLsizei *) (pc + 28), *(GLsizei *) (pc + 32));
34704642e01fSmrg}
34714642e01fSmrg
347235c4bbdfSmrgvoid
347335c4bbdfSmrg__glXDisp_ActiveTexture(GLbyte * pc)
34744642e01fSmrg{
347535c4bbdfSmrg    glActiveTextureARB(*(GLenum *) (pc + 0));
34764642e01fSmrg}
34774642e01fSmrg
347835c4bbdfSmrgvoid
347935c4bbdfSmrg__glXDisp_MultiTexCoord1dv(GLbyte * pc)
34804642e01fSmrg{
34814642e01fSmrg#ifdef __GLX_ALIGN64
348235c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
348335c4bbdfSmrg        (void) memmove(pc - 4, pc, 12);
34844642e01fSmrg        pc -= 4;
34854642e01fSmrg    }
34864642e01fSmrg#endif
34874642e01fSmrg
348835c4bbdfSmrg    glMultiTexCoord1dvARB(*(GLenum *) (pc + 8), (const GLdouble *) (pc + 0));
34894642e01fSmrg}
34904642e01fSmrg
349135c4bbdfSmrgvoid
349235c4bbdfSmrg__glXDisp_MultiTexCoord1fvARB(GLbyte * pc)
34934642e01fSmrg{
349435c4bbdfSmrg    glMultiTexCoord1fvARB(*(GLenum *) (pc + 0), (const GLfloat *) (pc + 4));
34954642e01fSmrg}
34964642e01fSmrg
349735c4bbdfSmrgvoid
349835c4bbdfSmrg__glXDisp_MultiTexCoord1iv(GLbyte * pc)
34994642e01fSmrg{
350035c4bbdfSmrg    glMultiTexCoord1ivARB(*(GLenum *) (pc + 0), (const GLint *) (pc + 4));
35014642e01fSmrg}
35024642e01fSmrg
350335c4bbdfSmrgvoid
350435c4bbdfSmrg__glXDisp_MultiTexCoord1sv(GLbyte * pc)
35054642e01fSmrg{
350635c4bbdfSmrg    glMultiTexCoord1svARB(*(GLenum *) (pc + 0), (const GLshort *) (pc + 4));
35074642e01fSmrg}
35084642e01fSmrg
350935c4bbdfSmrgvoid
351035c4bbdfSmrg__glXDisp_MultiTexCoord2dv(GLbyte * pc)
35114642e01fSmrg{
35124642e01fSmrg#ifdef __GLX_ALIGN64
351335c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
351435c4bbdfSmrg        (void) memmove(pc - 4, pc, 20);
35154642e01fSmrg        pc -= 4;
35164642e01fSmrg    }
35174642e01fSmrg#endif
35184642e01fSmrg
351935c4bbdfSmrg    glMultiTexCoord2dvARB(*(GLenum *) (pc + 16), (const GLdouble *) (pc + 0));
35204642e01fSmrg}
35214642e01fSmrg
352235c4bbdfSmrgvoid
352335c4bbdfSmrg__glXDisp_MultiTexCoord2fvARB(GLbyte * pc)
35244642e01fSmrg{
352535c4bbdfSmrg    glMultiTexCoord2fvARB(*(GLenum *) (pc + 0), (const GLfloat *) (pc + 4));
35264642e01fSmrg}
35274642e01fSmrg
352835c4bbdfSmrgvoid
352935c4bbdfSmrg__glXDisp_MultiTexCoord2iv(GLbyte * pc)
35304642e01fSmrg{
353135c4bbdfSmrg    glMultiTexCoord2ivARB(*(GLenum *) (pc + 0), (const GLint *) (pc + 4));
35324642e01fSmrg}
35334642e01fSmrg
353435c4bbdfSmrgvoid
353535c4bbdfSmrg__glXDisp_MultiTexCoord2sv(GLbyte * pc)
35364642e01fSmrg{
353735c4bbdfSmrg    glMultiTexCoord2svARB(*(GLenum *) (pc + 0), (const GLshort *) (pc + 4));
35384642e01fSmrg}
35394642e01fSmrg
354035c4bbdfSmrgvoid
354135c4bbdfSmrg__glXDisp_MultiTexCoord3dv(GLbyte * pc)
35424642e01fSmrg{
35434642e01fSmrg#ifdef __GLX_ALIGN64
354435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
354535c4bbdfSmrg        (void) memmove(pc - 4, pc, 28);
35464642e01fSmrg        pc -= 4;
35474642e01fSmrg    }
35484642e01fSmrg#endif
35494642e01fSmrg
355035c4bbdfSmrg    glMultiTexCoord3dvARB(*(GLenum *) (pc + 24), (const GLdouble *) (pc + 0));
35514642e01fSmrg}
35524642e01fSmrg
355335c4bbdfSmrgvoid
355435c4bbdfSmrg__glXDisp_MultiTexCoord3fvARB(GLbyte * pc)
35554642e01fSmrg{
355635c4bbdfSmrg    glMultiTexCoord3fvARB(*(GLenum *) (pc + 0), (const GLfloat *) (pc + 4));
35574642e01fSmrg}
35584642e01fSmrg
355935c4bbdfSmrgvoid
356035c4bbdfSmrg__glXDisp_MultiTexCoord3iv(GLbyte * pc)
35614642e01fSmrg{
356235c4bbdfSmrg    glMultiTexCoord3ivARB(*(GLenum *) (pc + 0), (const GLint *) (pc + 4));
35634642e01fSmrg}
35644642e01fSmrg
356535c4bbdfSmrgvoid
356635c4bbdfSmrg__glXDisp_MultiTexCoord3sv(GLbyte * pc)
35674642e01fSmrg{
356835c4bbdfSmrg    glMultiTexCoord3svARB(*(GLenum *) (pc + 0), (const GLshort *) (pc + 4));
35694642e01fSmrg}
35704642e01fSmrg
357135c4bbdfSmrgvoid
357235c4bbdfSmrg__glXDisp_MultiTexCoord4dv(GLbyte * pc)
35734642e01fSmrg{
35744642e01fSmrg#ifdef __GLX_ALIGN64
357535c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
357635c4bbdfSmrg        (void) memmove(pc - 4, pc, 36);
35774642e01fSmrg        pc -= 4;
35784642e01fSmrg    }
35794642e01fSmrg#endif
35804642e01fSmrg
358135c4bbdfSmrg    glMultiTexCoord4dvARB(*(GLenum *) (pc + 32), (const GLdouble *) (pc + 0));
35824642e01fSmrg}
35834642e01fSmrg
358435c4bbdfSmrgvoid
358535c4bbdfSmrg__glXDisp_MultiTexCoord4fvARB(GLbyte * pc)
35864642e01fSmrg{
358735c4bbdfSmrg    glMultiTexCoord4fvARB(*(GLenum *) (pc + 0), (const GLfloat *) (pc + 4));
35884642e01fSmrg}
35894642e01fSmrg
359035c4bbdfSmrgvoid
359135c4bbdfSmrg__glXDisp_MultiTexCoord4iv(GLbyte * pc)
35924642e01fSmrg{
359335c4bbdfSmrg    glMultiTexCoord4ivARB(*(GLenum *) (pc + 0), (const GLint *) (pc + 4));
35944642e01fSmrg}
35954642e01fSmrg
359635c4bbdfSmrgvoid
359735c4bbdfSmrg__glXDisp_MultiTexCoord4sv(GLbyte * pc)
35984642e01fSmrg{
359935c4bbdfSmrg    glMultiTexCoord4svARB(*(GLenum *) (pc + 0), (const GLshort *) (pc + 4));
36004642e01fSmrg}
36014642e01fSmrg
360235c4bbdfSmrgvoid
360335c4bbdfSmrg__glXDisp_CompressedTexImage1D(GLbyte * pc)
36044642e01fSmrg{
360535c4bbdfSmrg    PFNGLCOMPRESSEDTEXIMAGE1DPROC CompressedTexImage1D =
360635c4bbdfSmrg        __glGetProcAddress("glCompressedTexImage1D");
360735c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 20);
360835c4bbdfSmrg
360935c4bbdfSmrg    CompressedTexImage1D(*(GLenum *) (pc + 0),
361035c4bbdfSmrg                         *(GLint *) (pc + 4),
361135c4bbdfSmrg                         *(GLenum *) (pc + 8),
361235c4bbdfSmrg                         *(GLsizei *) (pc + 12),
361335c4bbdfSmrg                         *(GLint *) (pc + 16),
361435c4bbdfSmrg                         imageSize, (const GLvoid *) (pc + 24));
36154642e01fSmrg}
36164642e01fSmrg
361735c4bbdfSmrgvoid
361835c4bbdfSmrg__glXDisp_CompressedTexImage2D(GLbyte * pc)
36194642e01fSmrg{
362035c4bbdfSmrg    PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D =
362135c4bbdfSmrg        __glGetProcAddress("glCompressedTexImage2D");
362235c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 24);
36234642e01fSmrg
362435c4bbdfSmrg    CompressedTexImage2D(*(GLenum *) (pc + 0),
362535c4bbdfSmrg                         *(GLint *) (pc + 4),
362635c4bbdfSmrg                         *(GLenum *) (pc + 8),
362735c4bbdfSmrg                         *(GLsizei *) (pc + 12),
362835c4bbdfSmrg                         *(GLsizei *) (pc + 16),
362935c4bbdfSmrg                         *(GLint *) (pc + 20),
363035c4bbdfSmrg                         imageSize, (const GLvoid *) (pc + 28));
36314642e01fSmrg}
36324642e01fSmrg
363335c4bbdfSmrgvoid
363435c4bbdfSmrg__glXDisp_CompressedTexImage3D(GLbyte * pc)
36354642e01fSmrg{
363635c4bbdfSmrg    PFNGLCOMPRESSEDTEXIMAGE3DPROC CompressedTexImage3D =
363735c4bbdfSmrg        __glGetProcAddress("glCompressedTexImage3D");
363835c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 28);
36394642e01fSmrg
364035c4bbdfSmrg    CompressedTexImage3D(*(GLenum *) (pc + 0),
364135c4bbdfSmrg                         *(GLint *) (pc + 4),
364235c4bbdfSmrg                         *(GLenum *) (pc + 8),
364335c4bbdfSmrg                         *(GLsizei *) (pc + 12),
364435c4bbdfSmrg                         *(GLsizei *) (pc + 16),
364535c4bbdfSmrg                         *(GLsizei *) (pc + 20),
364635c4bbdfSmrg                         *(GLint *) (pc + 24),
364735c4bbdfSmrg                         imageSize, (const GLvoid *) (pc + 32));
36484642e01fSmrg}
36494642e01fSmrg
365035c4bbdfSmrgvoid
365135c4bbdfSmrg__glXDisp_CompressedTexSubImage1D(GLbyte * pc)
36524642e01fSmrg{
365335c4bbdfSmrg    PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC CompressedTexSubImage1D =
365435c4bbdfSmrg        __glGetProcAddress("glCompressedTexSubImage1D");
365535c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 20);
36564642e01fSmrg
365735c4bbdfSmrg    CompressedTexSubImage1D(*(GLenum *) (pc + 0),
365835c4bbdfSmrg                            *(GLint *) (pc + 4),
365935c4bbdfSmrg                            *(GLint *) (pc + 8),
366035c4bbdfSmrg                            *(GLsizei *) (pc + 12),
366135c4bbdfSmrg                            *(GLenum *) (pc + 16),
366235c4bbdfSmrg                            imageSize, (const GLvoid *) (pc + 24));
36634642e01fSmrg}
36644642e01fSmrg
366535c4bbdfSmrgvoid
366635c4bbdfSmrg__glXDisp_CompressedTexSubImage2D(GLbyte * pc)
36674642e01fSmrg{
366835c4bbdfSmrg    PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC CompressedTexSubImage2D =
366935c4bbdfSmrg        __glGetProcAddress("glCompressedTexSubImage2D");
367035c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 28);
36714642e01fSmrg
367235c4bbdfSmrg    CompressedTexSubImage2D(*(GLenum *) (pc + 0),
367335c4bbdfSmrg                            *(GLint *) (pc + 4),
367435c4bbdfSmrg                            *(GLint *) (pc + 8),
367535c4bbdfSmrg                            *(GLint *) (pc + 12),
367635c4bbdfSmrg                            *(GLsizei *) (pc + 16),
367735c4bbdfSmrg                            *(GLsizei *) (pc + 20),
367835c4bbdfSmrg                            *(GLenum *) (pc + 24),
367935c4bbdfSmrg                            imageSize, (const GLvoid *) (pc + 32));
36804642e01fSmrg}
36814642e01fSmrg
368235c4bbdfSmrgvoid
368335c4bbdfSmrg__glXDisp_CompressedTexSubImage3D(GLbyte * pc)
36844642e01fSmrg{
368535c4bbdfSmrg    PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC CompressedTexSubImage3D =
368635c4bbdfSmrg        __glGetProcAddress("glCompressedTexSubImage3D");
368735c4bbdfSmrg    const GLsizei imageSize = *(GLsizei *) (pc + 36);
36884642e01fSmrg
368935c4bbdfSmrg    CompressedTexSubImage3D(*(GLenum *) (pc + 0),
369035c4bbdfSmrg                            *(GLint *) (pc + 4),
369135c4bbdfSmrg                            *(GLint *) (pc + 8),
369235c4bbdfSmrg                            *(GLint *) (pc + 12),
369335c4bbdfSmrg                            *(GLint *) (pc + 16),
369435c4bbdfSmrg                            *(GLsizei *) (pc + 20),
369535c4bbdfSmrg                            *(GLsizei *) (pc + 24),
369635c4bbdfSmrg                            *(GLsizei *) (pc + 28),
369735c4bbdfSmrg                            *(GLenum *) (pc + 32),
369835c4bbdfSmrg                            imageSize, (const GLvoid *) (pc + 40));
36994642e01fSmrg}
37004642e01fSmrg
370135c4bbdfSmrgvoid
370235c4bbdfSmrg__glXDisp_SampleCoverage(GLbyte * pc)
37034642e01fSmrg{
370435c4bbdfSmrg    PFNGLSAMPLECOVERAGEPROC SampleCoverage =
370535c4bbdfSmrg        __glGetProcAddress("glSampleCoverage");
370635c4bbdfSmrg    SampleCoverage(*(GLclampf *) (pc + 0), *(GLboolean *) (pc + 4));
370735c4bbdfSmrg}
37084642e01fSmrg
370935c4bbdfSmrgvoid
371035c4bbdfSmrg__glXDisp_BlendFuncSeparate(GLbyte * pc)
371135c4bbdfSmrg{
371235c4bbdfSmrg    PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate =
371335c4bbdfSmrg        __glGetProcAddress("glBlendFuncSeparate");
371435c4bbdfSmrg    BlendFuncSeparate(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
371535c4bbdfSmrg                      *(GLenum *) (pc + 8), *(GLenum *) (pc + 12));
37164642e01fSmrg}
37174642e01fSmrg
371835c4bbdfSmrgvoid
371935c4bbdfSmrg__glXDisp_FogCoorddv(GLbyte * pc)
37204642e01fSmrg{
372135c4bbdfSmrg    PFNGLFOGCOORDDVPROC FogCoorddv = __glGetProcAddress("glFogCoorddv");
37224642e01fSmrg
372335c4bbdfSmrg#ifdef __GLX_ALIGN64
372435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
372535c4bbdfSmrg        (void) memmove(pc - 4, pc, 8);
372635c4bbdfSmrg        pc -= 4;
37274642e01fSmrg    }
372835c4bbdfSmrg#endif
37294642e01fSmrg
373035c4bbdfSmrg    FogCoorddv((const GLdouble *) (pc + 0));
37314642e01fSmrg}
37324642e01fSmrg
373335c4bbdfSmrgvoid
373435c4bbdfSmrg__glXDisp_PointParameterf(GLbyte * pc)
37354642e01fSmrg{
373635c4bbdfSmrg    PFNGLPOINTPARAMETERFPROC PointParameterf =
373735c4bbdfSmrg        __glGetProcAddress("glPointParameterf");
373835c4bbdfSmrg    PointParameterf(*(GLenum *) (pc + 0), *(GLfloat *) (pc + 4));
373935c4bbdfSmrg}
37404642e01fSmrg
374135c4bbdfSmrgvoid
374235c4bbdfSmrg__glXDisp_PointParameterfv(GLbyte * pc)
374335c4bbdfSmrg{
374435c4bbdfSmrg    PFNGLPOINTPARAMETERFVPROC PointParameterfv =
374535c4bbdfSmrg        __glGetProcAddress("glPointParameterfv");
374635c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
374735c4bbdfSmrg    const GLfloat *params;
37484642e01fSmrg
374935c4bbdfSmrg    params = (const GLfloat *) (pc + 4);
375035c4bbdfSmrg
375135c4bbdfSmrg    PointParameterfv(pname, params);
37524642e01fSmrg}
37534642e01fSmrg
375435c4bbdfSmrgvoid
375535c4bbdfSmrg__glXDisp_PointParameteri(GLbyte * pc)
37564642e01fSmrg{
375735c4bbdfSmrg    PFNGLPOINTPARAMETERIPROC PointParameteri =
375835c4bbdfSmrg        __glGetProcAddress("glPointParameteri");
375935c4bbdfSmrg    PointParameteri(*(GLenum *) (pc + 0), *(GLint *) (pc + 4));
376035c4bbdfSmrg}
37614642e01fSmrg
376235c4bbdfSmrgvoid
376335c4bbdfSmrg__glXDisp_PointParameteriv(GLbyte * pc)
376435c4bbdfSmrg{
376535c4bbdfSmrg    PFNGLPOINTPARAMETERIVPROC PointParameteriv =
376635c4bbdfSmrg        __glGetProcAddress("glPointParameteriv");
376735c4bbdfSmrg    const GLenum pname = *(GLenum *) (pc + 0);
376835c4bbdfSmrg    const GLint *params;
376935c4bbdfSmrg
377035c4bbdfSmrg    params = (const GLint *) (pc + 4);
377135c4bbdfSmrg
377235c4bbdfSmrg    PointParameteriv(pname, params);
377335c4bbdfSmrg}
377435c4bbdfSmrg
377535c4bbdfSmrgvoid
377635c4bbdfSmrg__glXDisp_SecondaryColor3bv(GLbyte * pc)
377735c4bbdfSmrg{
377835c4bbdfSmrg    PFNGLSECONDARYCOLOR3BVPROC SecondaryColor3bv =
377935c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3bv");
378035c4bbdfSmrg    SecondaryColor3bv((const GLbyte *) (pc + 0));
378135c4bbdfSmrg}
378235c4bbdfSmrg
378335c4bbdfSmrgvoid
378435c4bbdfSmrg__glXDisp_SecondaryColor3dv(GLbyte * pc)
378535c4bbdfSmrg{
378635c4bbdfSmrg    PFNGLSECONDARYCOLOR3DVPROC SecondaryColor3dv =
378735c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3dv");
378835c4bbdfSmrg#ifdef __GLX_ALIGN64
378935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
379035c4bbdfSmrg        (void) memmove(pc - 4, pc, 24);
379135c4bbdfSmrg        pc -= 4;
37924642e01fSmrg    }
379335c4bbdfSmrg#endif
37944642e01fSmrg
379535c4bbdfSmrg    SecondaryColor3dv((const GLdouble *) (pc + 0));
37964642e01fSmrg}
37974642e01fSmrg
379835c4bbdfSmrgvoid
379935c4bbdfSmrg__glXDisp_SecondaryColor3iv(GLbyte * pc)
38004642e01fSmrg{
380135c4bbdfSmrg    PFNGLSECONDARYCOLOR3IVPROC SecondaryColor3iv =
380235c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3iv");
380335c4bbdfSmrg    SecondaryColor3iv((const GLint *) (pc + 0));
380435c4bbdfSmrg}
380535c4bbdfSmrg
380635c4bbdfSmrgvoid
380735c4bbdfSmrg__glXDisp_SecondaryColor3sv(GLbyte * pc)
380835c4bbdfSmrg{
380935c4bbdfSmrg    PFNGLSECONDARYCOLOR3SVPROC SecondaryColor3sv =
381035c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3sv");
381135c4bbdfSmrg    SecondaryColor3sv((const GLshort *) (pc + 0));
381235c4bbdfSmrg}
381335c4bbdfSmrg
381435c4bbdfSmrgvoid
381535c4bbdfSmrg__glXDisp_SecondaryColor3ubv(GLbyte * pc)
381635c4bbdfSmrg{
381735c4bbdfSmrg    PFNGLSECONDARYCOLOR3UBVPROC SecondaryColor3ubv =
381835c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3ubv");
381935c4bbdfSmrg    SecondaryColor3ubv((const GLubyte *) (pc + 0));
382035c4bbdfSmrg}
382135c4bbdfSmrg
382235c4bbdfSmrgvoid
382335c4bbdfSmrg__glXDisp_SecondaryColor3uiv(GLbyte * pc)
382435c4bbdfSmrg{
382535c4bbdfSmrg    PFNGLSECONDARYCOLOR3UIVPROC SecondaryColor3uiv =
382635c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3uiv");
382735c4bbdfSmrg    SecondaryColor3uiv((const GLuint *) (pc + 0));
382835c4bbdfSmrg}
382935c4bbdfSmrg
383035c4bbdfSmrgvoid
383135c4bbdfSmrg__glXDisp_SecondaryColor3usv(GLbyte * pc)
383235c4bbdfSmrg{
383335c4bbdfSmrg    PFNGLSECONDARYCOLOR3USVPROC SecondaryColor3usv =
383435c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3usv");
383535c4bbdfSmrg    SecondaryColor3usv((const GLushort *) (pc + 0));
383635c4bbdfSmrg}
383735c4bbdfSmrg
383835c4bbdfSmrgvoid
383935c4bbdfSmrg__glXDisp_WindowPos3fv(GLbyte * pc)
384035c4bbdfSmrg{
384135c4bbdfSmrg    PFNGLWINDOWPOS3FVPROC WindowPos3fv = __glGetProcAddress("glWindowPos3fv");
384235c4bbdfSmrg
384335c4bbdfSmrg    WindowPos3fv((const GLfloat *) (pc + 0));
384435c4bbdfSmrg}
384535c4bbdfSmrg
384635c4bbdfSmrgvoid
384735c4bbdfSmrg__glXDisp_BeginQuery(GLbyte * pc)
384835c4bbdfSmrg{
384935c4bbdfSmrg    PFNGLBEGINQUERYPROC BeginQuery = __glGetProcAddress("glBeginQuery");
385035c4bbdfSmrg
385135c4bbdfSmrg    BeginQuery(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4));
385235c4bbdfSmrg}
385335c4bbdfSmrg
385435c4bbdfSmrgint
385535c4bbdfSmrg__glXDisp_DeleteQueries(__GLXclientState * cl, GLbyte * pc)
385635c4bbdfSmrg{
385735c4bbdfSmrg    PFNGLDELETEQUERIESPROC DeleteQueries =
385835c4bbdfSmrg        __glGetProcAddress("glDeleteQueries");
385935c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
38604642e01fSmrg    int error;
386135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
38624642e01fSmrg
386335c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
386435c4bbdfSmrg    if (cx != NULL) {
386535c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
386635c4bbdfSmrg
386735c4bbdfSmrg        DeleteQueries(n, (const GLuint *) (pc + 4));
38684642e01fSmrg        error = Success;
38694642e01fSmrg    }
38704642e01fSmrg
38714642e01fSmrg    return error;
38724642e01fSmrg}
38734642e01fSmrg
387435c4bbdfSmrgvoid
387535c4bbdfSmrg__glXDisp_EndQuery(GLbyte * pc)
38764642e01fSmrg{
387735c4bbdfSmrg    PFNGLENDQUERYPROC EndQuery = __glGetProcAddress("glEndQuery");
38784642e01fSmrg
387935c4bbdfSmrg    EndQuery(*(GLenum *) (pc + 0));
388035c4bbdfSmrg}
38814642e01fSmrg
388235c4bbdfSmrgint
388335c4bbdfSmrg__glXDisp_GenQueries(__GLXclientState * cl, GLbyte * pc)
388435c4bbdfSmrg{
388535c4bbdfSmrg    PFNGLGENQUERIESPROC GenQueries = __glGetProcAddress("glGenQueries");
388635c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
388735c4bbdfSmrg    int error;
388835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
38894642e01fSmrg
389035c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
389135c4bbdfSmrg    if (cx != NULL) {
389235c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
38934642e01fSmrg
389435c4bbdfSmrg        GLuint answerBuffer[200];
389535c4bbdfSmrg        GLuint *ids =
389635c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
389735c4bbdfSmrg                                 4);
389835c4bbdfSmrg
389935c4bbdfSmrg        if (ids == NULL)
390035c4bbdfSmrg            return BadAlloc;
390135c4bbdfSmrg        GenQueries(n, ids);
390235c4bbdfSmrg        __glXSendReply(cl->client, ids, n, 4, GL_TRUE, 0);
39034642e01fSmrg        error = Success;
39044642e01fSmrg    }
39054642e01fSmrg
39064642e01fSmrg    return error;
39074642e01fSmrg}
39084642e01fSmrg
390935c4bbdfSmrgint
391035c4bbdfSmrg__glXDisp_GetQueryObjectiv(__GLXclientState * cl, GLbyte * pc)
39114642e01fSmrg{
391235c4bbdfSmrg    PFNGLGETQUERYOBJECTIVPROC GetQueryObjectiv =
391335c4bbdfSmrg        __glGetProcAddress("glGetQueryObjectiv");
391435c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
39154642e01fSmrg    int error;
391635c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
39174642e01fSmrg
391835c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
391935c4bbdfSmrg    if (cx != NULL) {
392035c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
39214642e01fSmrg
392235c4bbdfSmrg        const GLuint compsize = __glGetQueryObjectiv_size(pname);
392335c4bbdfSmrg        GLint answerBuffer[200];
392435c4bbdfSmrg        GLint *params =
392535c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
392635c4bbdfSmrg                                 sizeof(answerBuffer), 4);
39274642e01fSmrg
392835c4bbdfSmrg        if (params == NULL)
392935c4bbdfSmrg            return BadAlloc;
39304642e01fSmrg        __glXClearErrorOccured();
39314642e01fSmrg
393235c4bbdfSmrg        GetQueryObjectiv(*(GLuint *) (pc + 0), pname, params);
393335c4bbdfSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
39344642e01fSmrg        error = Success;
39354642e01fSmrg    }
39364642e01fSmrg
39374642e01fSmrg    return error;
39384642e01fSmrg}
39394642e01fSmrg
394035c4bbdfSmrgint
394135c4bbdfSmrg__glXDisp_GetQueryObjectuiv(__GLXclientState * cl, GLbyte * pc)
39424642e01fSmrg{
394335c4bbdfSmrg    PFNGLGETQUERYOBJECTUIVPROC GetQueryObjectuiv =
394435c4bbdfSmrg        __glGetProcAddress("glGetQueryObjectuiv");
394535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
39464642e01fSmrg    int error;
394735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
39484642e01fSmrg
394935c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
395035c4bbdfSmrg    if (cx != NULL) {
395135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
39524642e01fSmrg
395335c4bbdfSmrg        const GLuint compsize = __glGetQueryObjectuiv_size(pname);
395435c4bbdfSmrg        GLuint answerBuffer[200];
395535c4bbdfSmrg        GLuint *params =
395635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
395735c4bbdfSmrg                                 sizeof(answerBuffer), 4);
39584642e01fSmrg
395935c4bbdfSmrg        if (params == NULL)
396035c4bbdfSmrg            return BadAlloc;
39614642e01fSmrg        __glXClearErrorOccured();
39624642e01fSmrg
396335c4bbdfSmrg        GetQueryObjectuiv(*(GLuint *) (pc + 0), pname, params);
39644642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
39654642e01fSmrg        error = Success;
39664642e01fSmrg    }
39674642e01fSmrg
39684642e01fSmrg    return error;
39694642e01fSmrg}
39704642e01fSmrg
397135c4bbdfSmrgint
397235c4bbdfSmrg__glXDisp_GetQueryiv(__GLXclientState * cl, GLbyte * pc)
39734642e01fSmrg{
397435c4bbdfSmrg    PFNGLGETQUERYIVPROC GetQueryiv = __glGetProcAddress("glGetQueryiv");
397535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
39764642e01fSmrg    int error;
397735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
39784642e01fSmrg
397935c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
398035c4bbdfSmrg    if (cx != NULL) {
398135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
39824642e01fSmrg
398335c4bbdfSmrg        const GLuint compsize = __glGetQueryiv_size(pname);
39844642e01fSmrg        GLint answerBuffer[200];
398535c4bbdfSmrg        GLint *params =
398635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
398735c4bbdfSmrg                                 sizeof(answerBuffer), 4);
39884642e01fSmrg
398935c4bbdfSmrg        if (params == NULL)
399035c4bbdfSmrg            return BadAlloc;
39914642e01fSmrg        __glXClearErrorOccured();
39924642e01fSmrg
399335c4bbdfSmrg        GetQueryiv(*(GLenum *) (pc + 0), pname, params);
39944642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
39954642e01fSmrg        error = Success;
39964642e01fSmrg    }
39974642e01fSmrg
39984642e01fSmrg    return error;
39994642e01fSmrg}
40004642e01fSmrg
400135c4bbdfSmrgint
400235c4bbdfSmrg__glXDisp_IsQuery(__GLXclientState * cl, GLbyte * pc)
40034642e01fSmrg{
400435c4bbdfSmrg    PFNGLISQUERYPROC IsQuery = __glGetProcAddress("glIsQuery");
400535c4bbdfSmrg    xGLXSingleReq *const req = (xGLXSingleReq *) pc;
400635c4bbdfSmrg    int error;
400735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
40084642e01fSmrg
400935c4bbdfSmrg    pc += __GLX_SINGLE_HDR_SIZE;
401035c4bbdfSmrg    if (cx != NULL) {
401135c4bbdfSmrg        GLboolean retval;
40124642e01fSmrg
401335c4bbdfSmrg        retval = IsQuery(*(GLuint *) (pc + 0));
401435c4bbdfSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
401535c4bbdfSmrg        error = Success;
40164642e01fSmrg    }
40174642e01fSmrg
401835c4bbdfSmrg    return error;
40194642e01fSmrg}
40204642e01fSmrg
402135c4bbdfSmrgvoid
402235c4bbdfSmrg__glXDisp_BlendEquationSeparate(GLbyte * pc)
40234642e01fSmrg{
402435c4bbdfSmrg    PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate =
402535c4bbdfSmrg        __glGetProcAddress("glBlendEquationSeparate");
402635c4bbdfSmrg    BlendEquationSeparate(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
40274642e01fSmrg}
40284642e01fSmrg
402935c4bbdfSmrgvoid
403035c4bbdfSmrg__glXDisp_DrawBuffers(GLbyte * pc)
40314642e01fSmrg{
403235c4bbdfSmrg    PFNGLDRAWBUFFERSPROC DrawBuffers = __glGetProcAddress("glDrawBuffers");
403335c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 0);
40344642e01fSmrg
403535c4bbdfSmrg    DrawBuffers(n, (const GLenum *) (pc + 4));
40364642e01fSmrg}
40374642e01fSmrg
403835c4bbdfSmrgvoid
403935c4bbdfSmrg__glXDisp_VertexAttrib1dv(GLbyte * pc)
40404642e01fSmrg{
404135c4bbdfSmrg    PFNGLVERTEXATTRIB1DVPROC VertexAttrib1dv =
404235c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1dv");
40434642e01fSmrg#ifdef __GLX_ALIGN64
404435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
404535c4bbdfSmrg        (void) memmove(pc - 4, pc, 12);
40464642e01fSmrg        pc -= 4;
40474642e01fSmrg    }
40484642e01fSmrg#endif
40494642e01fSmrg
405035c4bbdfSmrg    VertexAttrib1dv(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
40514642e01fSmrg}
40524642e01fSmrg
405335c4bbdfSmrgvoid
405435c4bbdfSmrg__glXDisp_VertexAttrib1sv(GLbyte * pc)
40554642e01fSmrg{
405635c4bbdfSmrg    PFNGLVERTEXATTRIB1SVPROC VertexAttrib1sv =
405735c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1sv");
405835c4bbdfSmrg    VertexAttrib1sv(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
40594642e01fSmrg}
40604642e01fSmrg
406135c4bbdfSmrgvoid
406235c4bbdfSmrg__glXDisp_VertexAttrib2dv(GLbyte * pc)
40634642e01fSmrg{
406435c4bbdfSmrg    PFNGLVERTEXATTRIB2DVPROC VertexAttrib2dv =
406535c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2dv");
40664642e01fSmrg#ifdef __GLX_ALIGN64
406735c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
406835c4bbdfSmrg        (void) memmove(pc - 4, pc, 20);
40694642e01fSmrg        pc -= 4;
40704642e01fSmrg    }
40714642e01fSmrg#endif
40724642e01fSmrg
407335c4bbdfSmrg    VertexAttrib2dv(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
40744642e01fSmrg}
40754642e01fSmrg
407635c4bbdfSmrgvoid
407735c4bbdfSmrg__glXDisp_VertexAttrib2sv(GLbyte * pc)
40784642e01fSmrg{
407935c4bbdfSmrg    PFNGLVERTEXATTRIB2SVPROC VertexAttrib2sv =
408035c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2sv");
408135c4bbdfSmrg    VertexAttrib2sv(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
40824642e01fSmrg}
40834642e01fSmrg
408435c4bbdfSmrgvoid
408535c4bbdfSmrg__glXDisp_VertexAttrib3dv(GLbyte * pc)
40864642e01fSmrg{
408735c4bbdfSmrg    PFNGLVERTEXATTRIB3DVPROC VertexAttrib3dv =
408835c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3dv");
40894642e01fSmrg#ifdef __GLX_ALIGN64
409035c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
409135c4bbdfSmrg        (void) memmove(pc - 4, pc, 28);
40924642e01fSmrg        pc -= 4;
40934642e01fSmrg    }
40944642e01fSmrg#endif
40954642e01fSmrg
409635c4bbdfSmrg    VertexAttrib3dv(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
40974642e01fSmrg}
40984642e01fSmrg
409935c4bbdfSmrgvoid
410035c4bbdfSmrg__glXDisp_VertexAttrib3sv(GLbyte * pc)
41014642e01fSmrg{
410235c4bbdfSmrg    PFNGLVERTEXATTRIB3SVPROC VertexAttrib3sv =
410335c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3sv");
410435c4bbdfSmrg    VertexAttrib3sv(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
41054642e01fSmrg}
41064642e01fSmrg
410735c4bbdfSmrgvoid
410835c4bbdfSmrg__glXDisp_VertexAttrib4Nbv(GLbyte * pc)
41094642e01fSmrg{
411035c4bbdfSmrg    PFNGLVERTEXATTRIB4NBVPROC VertexAttrib4Nbv =
411135c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Nbv");
411235c4bbdfSmrg    VertexAttrib4Nbv(*(GLuint *) (pc + 0), (const GLbyte *) (pc + 4));
41134642e01fSmrg}
41144642e01fSmrg
411535c4bbdfSmrgvoid
411635c4bbdfSmrg__glXDisp_VertexAttrib4Niv(GLbyte * pc)
41174642e01fSmrg{
411835c4bbdfSmrg    PFNGLVERTEXATTRIB4NIVPROC VertexAttrib4Niv =
411935c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Niv");
412035c4bbdfSmrg    VertexAttrib4Niv(*(GLuint *) (pc + 0), (const GLint *) (pc + 4));
41214642e01fSmrg}
41224642e01fSmrg
412335c4bbdfSmrgvoid
412435c4bbdfSmrg__glXDisp_VertexAttrib4Nsv(GLbyte * pc)
41254642e01fSmrg{
412635c4bbdfSmrg    PFNGLVERTEXATTRIB4NSVPROC VertexAttrib4Nsv =
412735c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Nsv");
412835c4bbdfSmrg    VertexAttrib4Nsv(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
41294642e01fSmrg}
41304642e01fSmrg
413135c4bbdfSmrgvoid
413235c4bbdfSmrg__glXDisp_VertexAttrib4Nubv(GLbyte * pc)
41334642e01fSmrg{
413435c4bbdfSmrg    PFNGLVERTEXATTRIB4NUBVPROC VertexAttrib4Nubv =
413535c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Nubv");
413635c4bbdfSmrg    VertexAttrib4Nubv(*(GLuint *) (pc + 0), (const GLubyte *) (pc + 4));
41374642e01fSmrg}
41384642e01fSmrg
413935c4bbdfSmrgvoid
414035c4bbdfSmrg__glXDisp_VertexAttrib4Nuiv(GLbyte * pc)
41414642e01fSmrg{
414235c4bbdfSmrg    PFNGLVERTEXATTRIB4NUIVPROC VertexAttrib4Nuiv =
414335c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Nuiv");
414435c4bbdfSmrg    VertexAttrib4Nuiv(*(GLuint *) (pc + 0), (const GLuint *) (pc + 4));
41454642e01fSmrg}
41464642e01fSmrg
414735c4bbdfSmrgvoid
414835c4bbdfSmrg__glXDisp_VertexAttrib4Nusv(GLbyte * pc)
41494642e01fSmrg{
415035c4bbdfSmrg    PFNGLVERTEXATTRIB4NUSVPROC VertexAttrib4Nusv =
415135c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4Nusv");
415235c4bbdfSmrg    VertexAttrib4Nusv(*(GLuint *) (pc + 0), (const GLushort *) (pc + 4));
41534642e01fSmrg}
41544642e01fSmrg
415535c4bbdfSmrgvoid
415635c4bbdfSmrg__glXDisp_VertexAttrib4bv(GLbyte * pc)
41574642e01fSmrg{
415835c4bbdfSmrg    PFNGLVERTEXATTRIB4BVPROC VertexAttrib4bv =
415935c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4bv");
416035c4bbdfSmrg    VertexAttrib4bv(*(GLuint *) (pc + 0), (const GLbyte *) (pc + 4));
41614642e01fSmrg}
41624642e01fSmrg
416335c4bbdfSmrgvoid
416435c4bbdfSmrg__glXDisp_VertexAttrib4dv(GLbyte * pc)
41654642e01fSmrg{
416635c4bbdfSmrg    PFNGLVERTEXATTRIB4DVPROC VertexAttrib4dv =
416735c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4dv");
41684642e01fSmrg#ifdef __GLX_ALIGN64
416935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
417035c4bbdfSmrg        (void) memmove(pc - 4, pc, 36);
41714642e01fSmrg        pc -= 4;
41724642e01fSmrg    }
41734642e01fSmrg#endif
41744642e01fSmrg
417535c4bbdfSmrg    VertexAttrib4dv(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
41764642e01fSmrg}
41774642e01fSmrg
417835c4bbdfSmrgvoid
417935c4bbdfSmrg__glXDisp_VertexAttrib4iv(GLbyte * pc)
41804642e01fSmrg{
418135c4bbdfSmrg    PFNGLVERTEXATTRIB4IVPROC VertexAttrib4iv =
418235c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4iv");
418335c4bbdfSmrg    VertexAttrib4iv(*(GLuint *) (pc + 0), (const GLint *) (pc + 4));
41844642e01fSmrg}
41854642e01fSmrg
418635c4bbdfSmrgvoid
418735c4bbdfSmrg__glXDisp_VertexAttrib4sv(GLbyte * pc)
41884642e01fSmrg{
418935c4bbdfSmrg    PFNGLVERTEXATTRIB4SVPROC VertexAttrib4sv =
419035c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4sv");
419135c4bbdfSmrg    VertexAttrib4sv(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
41924642e01fSmrg}
41934642e01fSmrg
419435c4bbdfSmrgvoid
419535c4bbdfSmrg__glXDisp_VertexAttrib4ubv(GLbyte * pc)
41964642e01fSmrg{
419735c4bbdfSmrg    PFNGLVERTEXATTRIB4UBVPROC VertexAttrib4ubv =
419835c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4ubv");
419935c4bbdfSmrg    VertexAttrib4ubv(*(GLuint *) (pc + 0), (const GLubyte *) (pc + 4));
42004642e01fSmrg}
42014642e01fSmrg
420235c4bbdfSmrgvoid
420335c4bbdfSmrg__glXDisp_VertexAttrib4uiv(GLbyte * pc)
42044642e01fSmrg{
420535c4bbdfSmrg    PFNGLVERTEXATTRIB4UIVPROC VertexAttrib4uiv =
420635c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4uiv");
420735c4bbdfSmrg    VertexAttrib4uiv(*(GLuint *) (pc + 0), (const GLuint *) (pc + 4));
42084642e01fSmrg}
42094642e01fSmrg
421035c4bbdfSmrgvoid
421135c4bbdfSmrg__glXDisp_VertexAttrib4usv(GLbyte * pc)
42124642e01fSmrg{
421335c4bbdfSmrg    PFNGLVERTEXATTRIB4USVPROC VertexAttrib4usv =
421435c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4usv");
421535c4bbdfSmrg    VertexAttrib4usv(*(GLuint *) (pc + 0), (const GLushort *) (pc + 4));
42164642e01fSmrg}
42174642e01fSmrg
421835c4bbdfSmrgvoid
421935c4bbdfSmrg__glXDisp_ClampColor(GLbyte * pc)
42204642e01fSmrg{
422135c4bbdfSmrg    PFNGLCLAMPCOLORPROC ClampColor = __glGetProcAddress("glClampColor");
422235c4bbdfSmrg
422335c4bbdfSmrg    ClampColor(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4));
42244642e01fSmrg}
42254642e01fSmrg
422635c4bbdfSmrgvoid
422735c4bbdfSmrg__glXDisp_BindProgramARB(GLbyte * pc)
42284642e01fSmrg{
422935c4bbdfSmrg    PFNGLBINDPROGRAMARBPROC BindProgramARB =
423035c4bbdfSmrg        __glGetProcAddress("glBindProgramARB");
423135c4bbdfSmrg    BindProgramARB(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4));
42324642e01fSmrg}
42334642e01fSmrg
423435c4bbdfSmrgint
423535c4bbdfSmrg__glXDisp_DeleteProgramsARB(__GLXclientState * cl, GLbyte * pc)
42364642e01fSmrg{
423735c4bbdfSmrg    PFNGLDELETEPROGRAMSARBPROC DeleteProgramsARB =
423835c4bbdfSmrg        __glGetProcAddress("glDeleteProgramsARB");
423935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
42404642e01fSmrg    int error;
424135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
42424642e01fSmrg
424335c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
424435c4bbdfSmrg    if (cx != NULL) {
424535c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
42464642e01fSmrg
424735c4bbdfSmrg        DeleteProgramsARB(n, (const GLuint *) (pc + 4));
42484642e01fSmrg        error = Success;
42494642e01fSmrg    }
42504642e01fSmrg
42514642e01fSmrg    return error;
42524642e01fSmrg}
42534642e01fSmrg
425435c4bbdfSmrgint
425535c4bbdfSmrg__glXDisp_GenProgramsARB(__GLXclientState * cl, GLbyte * pc)
42564642e01fSmrg{
425735c4bbdfSmrg    PFNGLGENPROGRAMSARBPROC GenProgramsARB =
425835c4bbdfSmrg        __glGetProcAddress("glGenProgramsARB");
425935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
42604642e01fSmrg    int error;
426135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
42624642e01fSmrg
426335c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
426435c4bbdfSmrg    if (cx != NULL) {
426535c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
42664642e01fSmrg
42674642e01fSmrg        GLuint answerBuffer[200];
426835c4bbdfSmrg        GLuint *programs =
426935c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
427035c4bbdfSmrg                                 4);
427135c4bbdfSmrg
427235c4bbdfSmrg        if (programs == NULL)
427335c4bbdfSmrg            return BadAlloc;
427435c4bbdfSmrg        GenProgramsARB(n, programs);
427535c4bbdfSmrg        __glXSendReply(cl->client, programs, n, 4, GL_TRUE, 0);
42764642e01fSmrg        error = Success;
42774642e01fSmrg    }
42784642e01fSmrg
42794642e01fSmrg    return error;
42804642e01fSmrg}
42814642e01fSmrg
428235c4bbdfSmrgint
428335c4bbdfSmrg__glXDisp_GetProgramEnvParameterdvARB(__GLXclientState * cl, GLbyte * pc)
42844642e01fSmrg{
428535c4bbdfSmrg    PFNGLGETPROGRAMENVPARAMETERDVARBPROC GetProgramEnvParameterdvARB =
428635c4bbdfSmrg        __glGetProcAddress("glGetProgramEnvParameterdvARB");
428735c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
42884642e01fSmrg    int error;
428935c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
42904642e01fSmrg
429135c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
429235c4bbdfSmrg    if (cx != NULL) {
429335c4bbdfSmrg        GLdouble params[4];
42944642e01fSmrg
429535c4bbdfSmrg        GetProgramEnvParameterdvARB(*(GLenum *) (pc + 0),
429635c4bbdfSmrg                                    *(GLuint *) (pc + 4), params);
429735c4bbdfSmrg        __glXSendReply(cl->client, params, 4, 8, GL_FALSE, 0);
429835c4bbdfSmrg        error = Success;
429935c4bbdfSmrg    }
43004642e01fSmrg
430135c4bbdfSmrg    return error;
430235c4bbdfSmrg}
43034642e01fSmrg
430435c4bbdfSmrgint
430535c4bbdfSmrg__glXDisp_GetProgramEnvParameterfvARB(__GLXclientState * cl, GLbyte * pc)
430635c4bbdfSmrg{
430735c4bbdfSmrg    PFNGLGETPROGRAMENVPARAMETERFVARBPROC GetProgramEnvParameterfvARB =
430835c4bbdfSmrg        __glGetProcAddress("glGetProgramEnvParameterfvARB");
430935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
431035c4bbdfSmrg    int error;
431135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
431235c4bbdfSmrg
431335c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
431435c4bbdfSmrg    if (cx != NULL) {
431535c4bbdfSmrg        GLfloat params[4];
431635c4bbdfSmrg
431735c4bbdfSmrg        GetProgramEnvParameterfvARB(*(GLenum *) (pc + 0),
431835c4bbdfSmrg                                    *(GLuint *) (pc + 4), params);
431935c4bbdfSmrg        __glXSendReply(cl->client, params, 4, 4, GL_FALSE, 0);
43204642e01fSmrg        error = Success;
43214642e01fSmrg    }
43224642e01fSmrg
43234642e01fSmrg    return error;
43244642e01fSmrg}
43254642e01fSmrg
432635c4bbdfSmrgint
432735c4bbdfSmrg__glXDisp_GetProgramLocalParameterdvARB(__GLXclientState * cl, GLbyte * pc)
43284642e01fSmrg{
432935c4bbdfSmrg    PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC GetProgramLocalParameterdvARB =
433035c4bbdfSmrg        __glGetProcAddress("glGetProgramLocalParameterdvARB");
433135c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
43324642e01fSmrg    int error;
433335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
43344642e01fSmrg
433535c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
433635c4bbdfSmrg    if (cx != NULL) {
433735c4bbdfSmrg        GLdouble params[4];
43384642e01fSmrg
433935c4bbdfSmrg        GetProgramLocalParameterdvARB(*(GLenum *) (pc + 0),
434035c4bbdfSmrg                                      *(GLuint *) (pc + 4), params);
434135c4bbdfSmrg        __glXSendReply(cl->client, params, 4, 8, GL_FALSE, 0);
434235c4bbdfSmrg        error = Success;
434335c4bbdfSmrg    }
43444642e01fSmrg
434535c4bbdfSmrg    return error;
434635c4bbdfSmrg}
43474642e01fSmrg
434835c4bbdfSmrgint
434935c4bbdfSmrg__glXDisp_GetProgramLocalParameterfvARB(__GLXclientState * cl, GLbyte * pc)
435035c4bbdfSmrg{
435135c4bbdfSmrg    PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC GetProgramLocalParameterfvARB =
435235c4bbdfSmrg        __glGetProcAddress("glGetProgramLocalParameterfvARB");
435335c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
435435c4bbdfSmrg    int error;
435535c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
435635c4bbdfSmrg
435735c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
435835c4bbdfSmrg    if (cx != NULL) {
435935c4bbdfSmrg        GLfloat params[4];
436035c4bbdfSmrg
436135c4bbdfSmrg        GetProgramLocalParameterfvARB(*(GLenum *) (pc + 0),
436235c4bbdfSmrg                                      *(GLuint *) (pc + 4), params);
436335c4bbdfSmrg        __glXSendReply(cl->client, params, 4, 4, GL_FALSE, 0);
43644642e01fSmrg        error = Success;
43654642e01fSmrg    }
43664642e01fSmrg
43674642e01fSmrg    return error;
43684642e01fSmrg}
43694642e01fSmrg
437035c4bbdfSmrgint
437135c4bbdfSmrg__glXDisp_GetProgramivARB(__GLXclientState * cl, GLbyte * pc)
43724642e01fSmrg{
437335c4bbdfSmrg    PFNGLGETPROGRAMIVARBPROC GetProgramivARB =
437435c4bbdfSmrg        __glGetProcAddress("glGetProgramivARB");
437535c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
43764642e01fSmrg    int error;
437735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
43784642e01fSmrg
437935c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
438035c4bbdfSmrg    if (cx != NULL) {
438135c4bbdfSmrg        const GLenum pname = *(GLenum *) (pc + 4);
43824642e01fSmrg
438335c4bbdfSmrg        const GLuint compsize = __glGetProgramivARB_size(pname);
43844642e01fSmrg        GLint answerBuffer[200];
438535c4bbdfSmrg        GLint *params =
438635c4bbdfSmrg            __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer,
438735c4bbdfSmrg                                 sizeof(answerBuffer), 4);
43884642e01fSmrg
438935c4bbdfSmrg        if (params == NULL)
439035c4bbdfSmrg            return BadAlloc;
43914642e01fSmrg        __glXClearErrorOccured();
43924642e01fSmrg
439335c4bbdfSmrg        GetProgramivARB(*(GLenum *) (pc + 0), pname, params);
43944642e01fSmrg        __glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
43954642e01fSmrg        error = Success;
43964642e01fSmrg    }
43974642e01fSmrg
43984642e01fSmrg    return error;
43994642e01fSmrg}
44004642e01fSmrg
440135c4bbdfSmrgint
440235c4bbdfSmrg__glXDisp_IsProgramARB(__GLXclientState * cl, GLbyte * pc)
44034642e01fSmrg{
440435c4bbdfSmrg    PFNGLISPROGRAMARBPROC IsProgramARB = __glGetProcAddress("glIsProgramARB");
440535c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
44064642e01fSmrg    int error;
440735c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
44084642e01fSmrg
440935c4bbdfSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
441035c4bbdfSmrg    if (cx != NULL) {
44114642e01fSmrg        GLboolean retval;
441235c4bbdfSmrg
441335c4bbdfSmrg        retval = IsProgramARB(*(GLuint *) (pc + 0));
44144642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
44154642e01fSmrg        error = Success;
44164642e01fSmrg    }
44174642e01fSmrg
44184642e01fSmrg    return error;
44194642e01fSmrg}
44204642e01fSmrg
442135c4bbdfSmrgvoid
442235c4bbdfSmrg__glXDisp_ProgramEnvParameter4dvARB(GLbyte * pc)
44234642e01fSmrg{
442435c4bbdfSmrg    PFNGLPROGRAMENVPARAMETER4DVARBPROC ProgramEnvParameter4dvARB =
442535c4bbdfSmrg        __glGetProcAddress("glProgramEnvParameter4dvARB");
442635c4bbdfSmrg#ifdef __GLX_ALIGN64
442735c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
442835c4bbdfSmrg        (void) memmove(pc - 4, pc, 40);
442935c4bbdfSmrg        pc -= 4;
443035c4bbdfSmrg    }
443135c4bbdfSmrg#endif
44324642e01fSmrg
443335c4bbdfSmrg    ProgramEnvParameter4dvARB(*(GLenum *) (pc + 0),
443435c4bbdfSmrg                              *(GLuint *) (pc + 4),
443535c4bbdfSmrg                              (const GLdouble *) (pc + 8));
44364642e01fSmrg}
44374642e01fSmrg
443835c4bbdfSmrgvoid
443935c4bbdfSmrg__glXDisp_ProgramEnvParameter4fvARB(GLbyte * pc)
44404642e01fSmrg{
444135c4bbdfSmrg    PFNGLPROGRAMENVPARAMETER4FVARBPROC ProgramEnvParameter4fvARB =
444235c4bbdfSmrg        __glGetProcAddress("glProgramEnvParameter4fvARB");
444335c4bbdfSmrg    ProgramEnvParameter4fvARB(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4),
444435c4bbdfSmrg                              (const GLfloat *) (pc + 8));
44454642e01fSmrg}
44464642e01fSmrg
444735c4bbdfSmrgvoid
444835c4bbdfSmrg__glXDisp_ProgramLocalParameter4dvARB(GLbyte * pc)
44494642e01fSmrg{
445035c4bbdfSmrg    PFNGLPROGRAMLOCALPARAMETER4DVARBPROC ProgramLocalParameter4dvARB =
445135c4bbdfSmrg        __glGetProcAddress("glProgramLocalParameter4dvARB");
44524642e01fSmrg#ifdef __GLX_ALIGN64
445335c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
445435c4bbdfSmrg        (void) memmove(pc - 4, pc, 40);
44554642e01fSmrg        pc -= 4;
44564642e01fSmrg    }
44574642e01fSmrg#endif
44584642e01fSmrg
445935c4bbdfSmrg    ProgramLocalParameter4dvARB(*(GLenum *) (pc + 0),
446035c4bbdfSmrg                                *(GLuint *) (pc + 4),
446135c4bbdfSmrg                                (const GLdouble *) (pc + 8));
44624642e01fSmrg}
44634642e01fSmrg
446435c4bbdfSmrgvoid
446535c4bbdfSmrg__glXDisp_ProgramLocalParameter4fvARB(GLbyte * pc)
44664642e01fSmrg{
446735c4bbdfSmrg    PFNGLPROGRAMLOCALPARAMETER4FVARBPROC ProgramLocalParameter4fvARB =
446835c4bbdfSmrg        __glGetProcAddress("glProgramLocalParameter4fvARB");
446935c4bbdfSmrg    ProgramLocalParameter4fvARB(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4),
447035c4bbdfSmrg                                (const GLfloat *) (pc + 8));
44714642e01fSmrg}
44724642e01fSmrg
447335c4bbdfSmrgvoid
447435c4bbdfSmrg__glXDisp_ProgramStringARB(GLbyte * pc)
44754642e01fSmrg{
447635c4bbdfSmrg    PFNGLPROGRAMSTRINGARBPROC ProgramStringARB =
447735c4bbdfSmrg        __glGetProcAddress("glProgramStringARB");
447835c4bbdfSmrg    const GLsizei len = *(GLsizei *) (pc + 8);
44794642e01fSmrg
448035c4bbdfSmrg    ProgramStringARB(*(GLenum *) (pc + 0),
448135c4bbdfSmrg                     *(GLenum *) (pc + 4), len, (const GLvoid *) (pc + 12));
44824642e01fSmrg}
44834642e01fSmrg
448435c4bbdfSmrgvoid
448535c4bbdfSmrg__glXDisp_VertexAttrib1fvARB(GLbyte * pc)
44864642e01fSmrg{
448735c4bbdfSmrg    PFNGLVERTEXATTRIB1FVARBPROC VertexAttrib1fvARB =
448835c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1fvARB");
448935c4bbdfSmrg    VertexAttrib1fvARB(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
44904642e01fSmrg}
44914642e01fSmrg
449235c4bbdfSmrgvoid
449335c4bbdfSmrg__glXDisp_VertexAttrib2fvARB(GLbyte * pc)
44944642e01fSmrg{
449535c4bbdfSmrg    PFNGLVERTEXATTRIB2FVARBPROC VertexAttrib2fvARB =
449635c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2fvARB");
449735c4bbdfSmrg    VertexAttrib2fvARB(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
44984642e01fSmrg}
44994642e01fSmrg
450035c4bbdfSmrgvoid
450135c4bbdfSmrg__glXDisp_VertexAttrib3fvARB(GLbyte * pc)
45024642e01fSmrg{
450335c4bbdfSmrg    PFNGLVERTEXATTRIB3FVARBPROC VertexAttrib3fvARB =
450435c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3fvARB");
450535c4bbdfSmrg    VertexAttrib3fvARB(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
45064642e01fSmrg}
45074642e01fSmrg
450835c4bbdfSmrgvoid
450935c4bbdfSmrg__glXDisp_VertexAttrib4fvARB(GLbyte * pc)
45104642e01fSmrg{
451135c4bbdfSmrg    PFNGLVERTEXATTRIB4FVARBPROC VertexAttrib4fvARB =
451235c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4fvARB");
451335c4bbdfSmrg    VertexAttrib4fvARB(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
45144642e01fSmrg}
45154642e01fSmrg
451635c4bbdfSmrgvoid
451735c4bbdfSmrg__glXDisp_BindFramebuffer(GLbyte * pc)
45184642e01fSmrg{
451935c4bbdfSmrg    PFNGLBINDFRAMEBUFFERPROC BindFramebuffer =
452035c4bbdfSmrg        __glGetProcAddress("glBindFramebuffer");
452135c4bbdfSmrg    BindFramebuffer(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4));
45224642e01fSmrg}
45234642e01fSmrg
452435c4bbdfSmrgvoid
452535c4bbdfSmrg__glXDisp_BindRenderbuffer(GLbyte * pc)
45264642e01fSmrg{
452735c4bbdfSmrg    PFNGLBINDRENDERBUFFERPROC BindRenderbuffer =
452835c4bbdfSmrg        __glGetProcAddress("glBindRenderbuffer");
452935c4bbdfSmrg    BindRenderbuffer(*(GLenum *) (pc + 0), *(GLuint *) (pc + 4));
45304642e01fSmrg}
45314642e01fSmrg
453235c4bbdfSmrgvoid
453335c4bbdfSmrg__glXDisp_BlitFramebuffer(GLbyte * pc)
45344642e01fSmrg{
453535c4bbdfSmrg    PFNGLBLITFRAMEBUFFERPROC BlitFramebuffer =
453635c4bbdfSmrg        __glGetProcAddress("glBlitFramebuffer");
453735c4bbdfSmrg    BlitFramebuffer(*(GLint *) (pc + 0), *(GLint *) (pc + 4),
453835c4bbdfSmrg                    *(GLint *) (pc + 8), *(GLint *) (pc + 12),
453935c4bbdfSmrg                    *(GLint *) (pc + 16), *(GLint *) (pc + 20),
454035c4bbdfSmrg                    *(GLint *) (pc + 24), *(GLint *) (pc + 28),
454135c4bbdfSmrg                    *(GLbitfield *) (pc + 32), *(GLenum *) (pc + 36));
45424642e01fSmrg}
45434642e01fSmrg
454435c4bbdfSmrgint
454535c4bbdfSmrg__glXDisp_CheckFramebufferStatus(__GLXclientState * cl, GLbyte * pc)
45464642e01fSmrg{
454735c4bbdfSmrg    PFNGLCHECKFRAMEBUFFERSTATUSPROC CheckFramebufferStatus =
454835c4bbdfSmrg        __glGetProcAddress("glCheckFramebufferStatus");
454935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
45504642e01fSmrg    int error;
455135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
45524642e01fSmrg
45534642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
455435c4bbdfSmrg    if (cx != NULL) {
455535c4bbdfSmrg        GLenum retval;
45564642e01fSmrg
455735c4bbdfSmrg        retval = CheckFramebufferStatus(*(GLenum *) (pc + 0));
455835c4bbdfSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
45594642e01fSmrg        error = Success;
45604642e01fSmrg    }
45614642e01fSmrg
45624642e01fSmrg    return error;
45634642e01fSmrg}
45644642e01fSmrg
456535c4bbdfSmrgvoid
456635c4bbdfSmrg__glXDisp_DeleteFramebuffers(GLbyte * pc)
45674642e01fSmrg{
456835c4bbdfSmrg    PFNGLDELETEFRAMEBUFFERSPROC DeleteFramebuffers =
456935c4bbdfSmrg        __glGetProcAddress("glDeleteFramebuffers");
457035c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 0);
457135c4bbdfSmrg
457235c4bbdfSmrg    DeleteFramebuffers(n, (const GLuint *) (pc + 4));
45734642e01fSmrg}
45744642e01fSmrg
457535c4bbdfSmrgvoid
457635c4bbdfSmrg__glXDisp_DeleteRenderbuffers(GLbyte * pc)
45774642e01fSmrg{
457835c4bbdfSmrg    PFNGLDELETERENDERBUFFERSPROC DeleteRenderbuffers =
457935c4bbdfSmrg        __glGetProcAddress("glDeleteRenderbuffers");
458035c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 0);
45814642e01fSmrg
458235c4bbdfSmrg    DeleteRenderbuffers(n, (const GLuint *) (pc + 4));
45834642e01fSmrg}
45844642e01fSmrg
458535c4bbdfSmrgvoid
458635c4bbdfSmrg__glXDisp_FramebufferRenderbuffer(GLbyte * pc)
45874642e01fSmrg{
458835c4bbdfSmrg    PFNGLFRAMEBUFFERRENDERBUFFERPROC FramebufferRenderbuffer =
458935c4bbdfSmrg        __glGetProcAddress("glFramebufferRenderbuffer");
459035c4bbdfSmrg    FramebufferRenderbuffer(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
459135c4bbdfSmrg                            *(GLenum *) (pc + 8), *(GLuint *) (pc + 12));
45924642e01fSmrg}
45934642e01fSmrg
459435c4bbdfSmrgvoid
459535c4bbdfSmrg__glXDisp_FramebufferTexture1D(GLbyte * pc)
45964642e01fSmrg{
459735c4bbdfSmrg    PFNGLFRAMEBUFFERTEXTURE1DPROC FramebufferTexture1D =
459835c4bbdfSmrg        __glGetProcAddress("glFramebufferTexture1D");
459935c4bbdfSmrg    FramebufferTexture1D(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
460035c4bbdfSmrg                         *(GLenum *) (pc + 8), *(GLuint *) (pc + 12),
460135c4bbdfSmrg                         *(GLint *) (pc + 16));
460235c4bbdfSmrg}
46034642e01fSmrg
460435c4bbdfSmrgvoid
460535c4bbdfSmrg__glXDisp_FramebufferTexture2D(GLbyte * pc)
460635c4bbdfSmrg{
460735c4bbdfSmrg    PFNGLFRAMEBUFFERTEXTURE2DPROC FramebufferTexture2D =
460835c4bbdfSmrg        __glGetProcAddress("glFramebufferTexture2D");
460935c4bbdfSmrg    FramebufferTexture2D(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
461035c4bbdfSmrg                         *(GLenum *) (pc + 8), *(GLuint *) (pc + 12),
461135c4bbdfSmrg                         *(GLint *) (pc + 16));
461235c4bbdfSmrg}
46134642e01fSmrg
461435c4bbdfSmrgvoid
461535c4bbdfSmrg__glXDisp_FramebufferTexture3D(GLbyte * pc)
461635c4bbdfSmrg{
461735c4bbdfSmrg    PFNGLFRAMEBUFFERTEXTURE3DPROC FramebufferTexture3D =
461835c4bbdfSmrg        __glGetProcAddress("glFramebufferTexture3D");
461935c4bbdfSmrg    FramebufferTexture3D(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
462035c4bbdfSmrg                         *(GLenum *) (pc + 8), *(GLuint *) (pc + 12),
462135c4bbdfSmrg                         *(GLint *) (pc + 16), *(GLint *) (pc + 20));
462235c4bbdfSmrg}
46234642e01fSmrg
462435c4bbdfSmrgvoid
462535c4bbdfSmrg__glXDisp_FramebufferTextureLayer(GLbyte * pc)
462635c4bbdfSmrg{
462735c4bbdfSmrg    PFNGLFRAMEBUFFERTEXTURELAYERPROC FramebufferTextureLayer =
462835c4bbdfSmrg        __glGetProcAddress("glFramebufferTextureLayer");
462935c4bbdfSmrg    FramebufferTextureLayer(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
463035c4bbdfSmrg                            *(GLuint *) (pc + 8), *(GLint *) (pc + 12),
463135c4bbdfSmrg                            *(GLint *) (pc + 16));
46324642e01fSmrg}
46334642e01fSmrg
463435c4bbdfSmrgint
463535c4bbdfSmrg__glXDisp_GenFramebuffers(__GLXclientState * cl, GLbyte * pc)
46364642e01fSmrg{
463735c4bbdfSmrg    PFNGLGENFRAMEBUFFERSPROC GenFramebuffers =
463835c4bbdfSmrg        __glGetProcAddress("glGenFramebuffers");
463935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
46404642e01fSmrg    int error;
464135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
46424642e01fSmrg
46434642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
464435c4bbdfSmrg    if (cx != NULL) {
464535c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
46464642e01fSmrg
464735c4bbdfSmrg        GLuint answerBuffer[200];
464835c4bbdfSmrg        GLuint *framebuffers =
464935c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
465035c4bbdfSmrg                                 4);
46514642e01fSmrg
465235c4bbdfSmrg        if (framebuffers == NULL)
465335c4bbdfSmrg            return BadAlloc;
46544642e01fSmrg
465535c4bbdfSmrg        GenFramebuffers(n, framebuffers);
465635c4bbdfSmrg        __glXSendReply(cl->client, framebuffers, n, 4, GL_TRUE, 0);
46574642e01fSmrg        error = Success;
46584642e01fSmrg    }
46594642e01fSmrg
46604642e01fSmrg    return error;
46614642e01fSmrg}
46624642e01fSmrg
466335c4bbdfSmrgint
466435c4bbdfSmrg__glXDisp_GenRenderbuffers(__GLXclientState * cl, GLbyte * pc)
46654642e01fSmrg{
466635c4bbdfSmrg    PFNGLGENRENDERBUFFERSPROC GenRenderbuffers =
466735c4bbdfSmrg        __glGetProcAddress("glGenRenderbuffers");
466835c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
46694642e01fSmrg    int error;
467035c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
46714642e01fSmrg
46724642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
467335c4bbdfSmrg    if (cx != NULL) {
467435c4bbdfSmrg        const GLsizei n = *(GLsizei *) (pc + 0);
46754642e01fSmrg
467635c4bbdfSmrg        GLuint answerBuffer[200];
467735c4bbdfSmrg        GLuint *renderbuffers =
467835c4bbdfSmrg            __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer),
467935c4bbdfSmrg                                 4);
46804642e01fSmrg
468135c4bbdfSmrg        if (renderbuffers == NULL)
468235c4bbdfSmrg            return BadAlloc;
468335c4bbdfSmrg        GenRenderbuffers(n, renderbuffers);
468435c4bbdfSmrg        __glXSendReply(cl->client, renderbuffers, n, 4, GL_TRUE, 0);
46854642e01fSmrg        error = Success;
46864642e01fSmrg    }
46874642e01fSmrg
46884642e01fSmrg    return error;
46894642e01fSmrg}
46904642e01fSmrg
469135c4bbdfSmrgvoid
469235c4bbdfSmrg__glXDisp_GenerateMipmap(GLbyte * pc)
46934642e01fSmrg{
469435c4bbdfSmrg    PFNGLGENERATEMIPMAPPROC GenerateMipmap =
469535c4bbdfSmrg        __glGetProcAddress("glGenerateMipmap");
469635c4bbdfSmrg    GenerateMipmap(*(GLenum *) (pc + 0));
46974642e01fSmrg}
46984642e01fSmrg
469935c4bbdfSmrgint
470035c4bbdfSmrg__glXDisp_GetFramebufferAttachmentParameteriv(__GLXclientState * cl,
470135c4bbdfSmrg                                              GLbyte * pc)
47024642e01fSmrg{
470335c4bbdfSmrg    PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC
470435c4bbdfSmrg        GetFramebufferAttachmentParameteriv =
470535c4bbdfSmrg        __glGetProcAddress("glGetFramebufferAttachmentParameteriv");
470635c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
47074642e01fSmrg    int error;
470835c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
47094642e01fSmrg
47104642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
471135c4bbdfSmrg    if (cx != NULL) {
471235c4bbdfSmrg        GLint params[1];
47134642e01fSmrg
471435c4bbdfSmrg        GetFramebufferAttachmentParameteriv(*(GLenum *) (pc + 0),
471535c4bbdfSmrg                                            *(GLenum *) (pc + 4),
471635c4bbdfSmrg                                            *(GLenum *) (pc + 8), params);
471735c4bbdfSmrg        __glXSendReply(cl->client, params, 1, 4, GL_FALSE, 0);
47184642e01fSmrg        error = Success;
47194642e01fSmrg    }
47204642e01fSmrg
47214642e01fSmrg    return error;
47224642e01fSmrg}
47234642e01fSmrg
472435c4bbdfSmrgint
472535c4bbdfSmrg__glXDisp_GetRenderbufferParameteriv(__GLXclientState * cl, GLbyte * pc)
47264642e01fSmrg{
472735c4bbdfSmrg    PFNGLGETRENDERBUFFERPARAMETERIVPROC GetRenderbufferParameteriv =
472835c4bbdfSmrg        __glGetProcAddress("glGetRenderbufferParameteriv");
472935c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
47304642e01fSmrg    int error;
473135c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
47324642e01fSmrg
47334642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
473435c4bbdfSmrg    if (cx != NULL) {
473535c4bbdfSmrg        GLint params[1];
47364642e01fSmrg
473735c4bbdfSmrg        GetRenderbufferParameteriv(*(GLenum *) (pc + 0),
473835c4bbdfSmrg                                   *(GLenum *) (pc + 4), params);
473935c4bbdfSmrg        __glXSendReply(cl->client, params, 1, 4, GL_FALSE, 0);
47404642e01fSmrg        error = Success;
47414642e01fSmrg    }
47424642e01fSmrg
47434642e01fSmrg    return error;
47444642e01fSmrg}
47454642e01fSmrg
474635c4bbdfSmrgint
474735c4bbdfSmrg__glXDisp_IsFramebuffer(__GLXclientState * cl, GLbyte * pc)
47484642e01fSmrg{
474935c4bbdfSmrg    PFNGLISFRAMEBUFFERPROC IsFramebuffer =
475035c4bbdfSmrg        __glGetProcAddress("glIsFramebuffer");
475135c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
47524642e01fSmrg    int error;
475335c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
47544642e01fSmrg
47554642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
475635c4bbdfSmrg    if (cx != NULL) {
475735c4bbdfSmrg        GLboolean retval;
47584642e01fSmrg
475935c4bbdfSmrg        retval = IsFramebuffer(*(GLuint *) (pc + 0));
476035c4bbdfSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
47614642e01fSmrg        error = Success;
47624642e01fSmrg    }
47634642e01fSmrg
47644642e01fSmrg    return error;
47654642e01fSmrg}
47664642e01fSmrg
476735c4bbdfSmrgint
476835c4bbdfSmrg__glXDisp_IsRenderbuffer(__GLXclientState * cl, GLbyte * pc)
47694642e01fSmrg{
477035c4bbdfSmrg    PFNGLISRENDERBUFFERPROC IsRenderbuffer =
477135c4bbdfSmrg        __glGetProcAddress("glIsRenderbuffer");
477235c4bbdfSmrg    xGLXVendorPrivateReq *const req = (xGLXVendorPrivateReq *) pc;
47734642e01fSmrg    int error;
477435c4bbdfSmrg    __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
47754642e01fSmrg
47764642e01fSmrg    pc += __GLX_VENDPRIV_HDR_SIZE;
477735c4bbdfSmrg    if (cx != NULL) {
47784642e01fSmrg        GLboolean retval;
477935c4bbdfSmrg
478035c4bbdfSmrg        retval = IsRenderbuffer(*(GLuint *) (pc + 0));
47814642e01fSmrg        __glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
47824642e01fSmrg        error = Success;
47834642e01fSmrg    }
47844642e01fSmrg
47854642e01fSmrg    return error;
47864642e01fSmrg}
47874642e01fSmrg
478835c4bbdfSmrgvoid
478935c4bbdfSmrg__glXDisp_RenderbufferStorage(GLbyte * pc)
47904642e01fSmrg{
479135c4bbdfSmrg    PFNGLRENDERBUFFERSTORAGEPROC RenderbufferStorage =
479235c4bbdfSmrg        __glGetProcAddress("glRenderbufferStorage");
479335c4bbdfSmrg    RenderbufferStorage(*(GLenum *) (pc + 0), *(GLenum *) (pc + 4),
479435c4bbdfSmrg                        *(GLsizei *) (pc + 8), *(GLsizei *) (pc + 12));
47954642e01fSmrg}
47964642e01fSmrg
479735c4bbdfSmrgvoid
479835c4bbdfSmrg__glXDisp_RenderbufferStorageMultisample(GLbyte * pc)
47994642e01fSmrg{
480035c4bbdfSmrg    PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC RenderbufferStorageMultisample =
480135c4bbdfSmrg        __glGetProcAddress("glRenderbufferStorageMultisample");
480235c4bbdfSmrg    RenderbufferStorageMultisample(*(GLenum *) (pc + 0), *(GLsizei *) (pc + 4),
480335c4bbdfSmrg                                   *(GLenum *) (pc + 8), *(GLsizei *) (pc + 12),
480435c4bbdfSmrg                                   *(GLsizei *) (pc + 16));
48054642e01fSmrg}
48064642e01fSmrg
480735c4bbdfSmrgvoid
480835c4bbdfSmrg__glXDisp_SecondaryColor3fvEXT(GLbyte * pc)
48094642e01fSmrg{
481035c4bbdfSmrg    PFNGLSECONDARYCOLOR3FVEXTPROC SecondaryColor3fvEXT =
481135c4bbdfSmrg        __glGetProcAddress("glSecondaryColor3fvEXT");
481235c4bbdfSmrg    SecondaryColor3fvEXT((const GLfloat *) (pc + 0));
48134642e01fSmrg}
48144642e01fSmrg
481535c4bbdfSmrgvoid
481635c4bbdfSmrg__glXDisp_FogCoordfvEXT(GLbyte * pc)
48174642e01fSmrg{
481835c4bbdfSmrg    PFNGLFOGCOORDFVEXTPROC FogCoordfvEXT =
481935c4bbdfSmrg        __glGetProcAddress("glFogCoordfvEXT");
482035c4bbdfSmrg    FogCoordfvEXT((const GLfloat *) (pc + 0));
48214642e01fSmrg}
48224642e01fSmrg
482335c4bbdfSmrgvoid
482435c4bbdfSmrg__glXDisp_VertexAttrib1dvNV(GLbyte * pc)
48254642e01fSmrg{
482635c4bbdfSmrg    PFNGLVERTEXATTRIB1DVNVPROC VertexAttrib1dvNV =
482735c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1dvNV");
48284642e01fSmrg#ifdef __GLX_ALIGN64
482935c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
483035c4bbdfSmrg        (void) memmove(pc - 4, pc, 12);
48314642e01fSmrg        pc -= 4;
48324642e01fSmrg    }
48334642e01fSmrg#endif
48344642e01fSmrg
483535c4bbdfSmrg    VertexAttrib1dvNV(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
48364642e01fSmrg}
48374642e01fSmrg
483835c4bbdfSmrgvoid
483935c4bbdfSmrg__glXDisp_VertexAttrib1fvNV(GLbyte * pc)
48404642e01fSmrg{
484135c4bbdfSmrg    PFNGLVERTEXATTRIB1FVNVPROC VertexAttrib1fvNV =
484235c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1fvNV");
484335c4bbdfSmrg    VertexAttrib1fvNV(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
48444642e01fSmrg}
48454642e01fSmrg
484635c4bbdfSmrgvoid
484735c4bbdfSmrg__glXDisp_VertexAttrib1svNV(GLbyte * pc)
48484642e01fSmrg{
484935c4bbdfSmrg    PFNGLVERTEXATTRIB1SVNVPROC VertexAttrib1svNV =
485035c4bbdfSmrg        __glGetProcAddress("glVertexAttrib1svNV");
485135c4bbdfSmrg    VertexAttrib1svNV(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
48524642e01fSmrg}
48534642e01fSmrg
485435c4bbdfSmrgvoid
485535c4bbdfSmrg__glXDisp_VertexAttrib2dvNV(GLbyte * pc)
48564642e01fSmrg{
485735c4bbdfSmrg    PFNGLVERTEXATTRIB2DVNVPROC VertexAttrib2dvNV =
485835c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2dvNV");
48594642e01fSmrg#ifdef __GLX_ALIGN64
486035c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
486135c4bbdfSmrg        (void) memmove(pc - 4, pc, 20);
48624642e01fSmrg        pc -= 4;
48634642e01fSmrg    }
48644642e01fSmrg#endif
48654642e01fSmrg
486635c4bbdfSmrg    VertexAttrib2dvNV(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
48674642e01fSmrg}
48684642e01fSmrg
486935c4bbdfSmrgvoid
487035c4bbdfSmrg__glXDisp_VertexAttrib2fvNV(GLbyte * pc)
48714642e01fSmrg{
487235c4bbdfSmrg    PFNGLVERTEXATTRIB2FVNVPROC VertexAttrib2fvNV =
487335c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2fvNV");
487435c4bbdfSmrg    VertexAttrib2fvNV(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
48754642e01fSmrg}
48764642e01fSmrg
487735c4bbdfSmrgvoid
487835c4bbdfSmrg__glXDisp_VertexAttrib2svNV(GLbyte * pc)
48794642e01fSmrg{
488035c4bbdfSmrg    PFNGLVERTEXATTRIB2SVNVPROC VertexAttrib2svNV =
488135c4bbdfSmrg        __glGetProcAddress("glVertexAttrib2svNV");
488235c4bbdfSmrg    VertexAttrib2svNV(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
48834642e01fSmrg}
48844642e01fSmrg
488535c4bbdfSmrgvoid
488635c4bbdfSmrg__glXDisp_VertexAttrib3dvNV(GLbyte * pc)
48874642e01fSmrg{
488835c4bbdfSmrg    PFNGLVERTEXATTRIB3DVNVPROC VertexAttrib3dvNV =
488935c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3dvNV");
48904642e01fSmrg#ifdef __GLX_ALIGN64
489135c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
489235c4bbdfSmrg        (void) memmove(pc - 4, pc, 28);
48934642e01fSmrg        pc -= 4;
48944642e01fSmrg    }
48954642e01fSmrg#endif
48964642e01fSmrg
489735c4bbdfSmrg    VertexAttrib3dvNV(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
48984642e01fSmrg}
48994642e01fSmrg
490035c4bbdfSmrgvoid
490135c4bbdfSmrg__glXDisp_VertexAttrib3fvNV(GLbyte * pc)
49024642e01fSmrg{
490335c4bbdfSmrg    PFNGLVERTEXATTRIB3FVNVPROC VertexAttrib3fvNV =
490435c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3fvNV");
490535c4bbdfSmrg    VertexAttrib3fvNV(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
49064642e01fSmrg}
49074642e01fSmrg
490835c4bbdfSmrgvoid
490935c4bbdfSmrg__glXDisp_VertexAttrib3svNV(GLbyte * pc)
49104642e01fSmrg{
491135c4bbdfSmrg    PFNGLVERTEXATTRIB3SVNVPROC VertexAttrib3svNV =
491235c4bbdfSmrg        __glGetProcAddress("glVertexAttrib3svNV");
491335c4bbdfSmrg    VertexAttrib3svNV(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
49144642e01fSmrg}
49154642e01fSmrg
491635c4bbdfSmrgvoid
491735c4bbdfSmrg__glXDisp_VertexAttrib4dvNV(GLbyte * pc)
49184642e01fSmrg{
491935c4bbdfSmrg    PFNGLVERTEXATTRIB4DVNVPROC VertexAttrib4dvNV =
492035c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4dvNV");
49214642e01fSmrg#ifdef __GLX_ALIGN64
492235c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
492335c4bbdfSmrg        (void) memmove(pc - 4, pc, 36);
49244642e01fSmrg        pc -= 4;
49254642e01fSmrg    }
49264642e01fSmrg#endif
49274642e01fSmrg
492835c4bbdfSmrg    VertexAttrib4dvNV(*(GLuint *) (pc + 0), (const GLdouble *) (pc + 4));
49294642e01fSmrg}
49304642e01fSmrg
493135c4bbdfSmrgvoid
493235c4bbdfSmrg__glXDisp_VertexAttrib4fvNV(GLbyte * pc)
49334642e01fSmrg{
493435c4bbdfSmrg    PFNGLVERTEXATTRIB4FVNVPROC VertexAttrib4fvNV =
493535c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4fvNV");
493635c4bbdfSmrg    VertexAttrib4fvNV(*(GLuint *) (pc + 0), (const GLfloat *) (pc + 4));
49374642e01fSmrg}
49384642e01fSmrg
493935c4bbdfSmrgvoid
494035c4bbdfSmrg__glXDisp_VertexAttrib4svNV(GLbyte * pc)
49414642e01fSmrg{
494235c4bbdfSmrg    PFNGLVERTEXATTRIB4SVNVPROC VertexAttrib4svNV =
494335c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4svNV");
494435c4bbdfSmrg    VertexAttrib4svNV(*(GLuint *) (pc + 0), (const GLshort *) (pc + 4));
49454642e01fSmrg}
49464642e01fSmrg
494735c4bbdfSmrgvoid
494835c4bbdfSmrg__glXDisp_VertexAttrib4ubvNV(GLbyte * pc)
49494642e01fSmrg{
495035c4bbdfSmrg    PFNGLVERTEXATTRIB4UBVNVPROC VertexAttrib4ubvNV =
495135c4bbdfSmrg        __glGetProcAddress("glVertexAttrib4ubvNV");
495235c4bbdfSmrg    VertexAttrib4ubvNV(*(GLuint *) (pc + 0), (const GLubyte *) (pc + 4));
49534642e01fSmrg}
49544642e01fSmrg
495535c4bbdfSmrgvoid
495635c4bbdfSmrg__glXDisp_VertexAttribs1dvNV(GLbyte * pc)
49574642e01fSmrg{
495835c4bbdfSmrg    PFNGLVERTEXATTRIBS1DVNVPROC VertexAttribs1dvNV =
495935c4bbdfSmrg        __glGetProcAddress("glVertexAttribs1dvNV");
496035c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
49614642e01fSmrg
49624642e01fSmrg#ifdef __GLX_ALIGN64
49634642e01fSmrg    const GLuint cmdlen = 12 + __GLX_PAD((n * 8)) - 4;
496435c4bbdfSmrg
496535c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
496635c4bbdfSmrg        (void) memmove(pc - 4, pc, cmdlen);
49674642e01fSmrg        pc -= 4;
49684642e01fSmrg    }
49694642e01fSmrg#endif
49704642e01fSmrg
497135c4bbdfSmrg    VertexAttribs1dvNV(*(GLuint *) (pc + 0), n, (const GLdouble *) (pc + 8));
49724642e01fSmrg}
49734642e01fSmrg
497435c4bbdfSmrgvoid
497535c4bbdfSmrg__glXDisp_VertexAttribs1fvNV(GLbyte * pc)
49764642e01fSmrg{
497735c4bbdfSmrg    PFNGLVERTEXATTRIBS1FVNVPROC VertexAttribs1fvNV =
497835c4bbdfSmrg        __glGetProcAddress("glVertexAttribs1fvNV");
497935c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
49804642e01fSmrg
498135c4bbdfSmrg    VertexAttribs1fvNV(*(GLuint *) (pc + 0), n, (const GLfloat *) (pc + 8));
49824642e01fSmrg}
49834642e01fSmrg
498435c4bbdfSmrgvoid
498535c4bbdfSmrg__glXDisp_VertexAttribs1svNV(GLbyte * pc)
49864642e01fSmrg{
498735c4bbdfSmrg    PFNGLVERTEXATTRIBS1SVNVPROC VertexAttribs1svNV =
498835c4bbdfSmrg        __glGetProcAddress("glVertexAttribs1svNV");
498935c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
49904642e01fSmrg
499135c4bbdfSmrg    VertexAttribs1svNV(*(GLuint *) (pc + 0), n, (const GLshort *) (pc + 8));
49924642e01fSmrg}
49934642e01fSmrg
499435c4bbdfSmrgvoid
499535c4bbdfSmrg__glXDisp_VertexAttribs2dvNV(GLbyte * pc)
49964642e01fSmrg{
499735c4bbdfSmrg    PFNGLVERTEXATTRIBS2DVNVPROC VertexAttribs2dvNV =
499835c4bbdfSmrg        __glGetProcAddress("glVertexAttribs2dvNV");
499935c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50004642e01fSmrg
50014642e01fSmrg#ifdef __GLX_ALIGN64
50024642e01fSmrg    const GLuint cmdlen = 12 + __GLX_PAD((n * 16)) - 4;
500335c4bbdfSmrg
500435c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
500535c4bbdfSmrg        (void) memmove(pc - 4, pc, cmdlen);
50064642e01fSmrg        pc -= 4;
50074642e01fSmrg    }
50084642e01fSmrg#endif
50094642e01fSmrg
501035c4bbdfSmrg    VertexAttribs2dvNV(*(GLuint *) (pc + 0), n, (const GLdouble *) (pc + 8));
50114642e01fSmrg}
50124642e01fSmrg
501335c4bbdfSmrgvoid
501435c4bbdfSmrg__glXDisp_VertexAttribs2fvNV(GLbyte * pc)
50154642e01fSmrg{
501635c4bbdfSmrg    PFNGLVERTEXATTRIBS2FVNVPROC VertexAttribs2fvNV =
501735c4bbdfSmrg        __glGetProcAddress("glVertexAttribs2fvNV");
501835c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50194642e01fSmrg
502035c4bbdfSmrg    VertexAttribs2fvNV(*(GLuint *) (pc + 0), n, (const GLfloat *) (pc + 8));
50214642e01fSmrg}
50224642e01fSmrg
502335c4bbdfSmrgvoid
502435c4bbdfSmrg__glXDisp_VertexAttribs2svNV(GLbyte * pc)
50254642e01fSmrg{
502635c4bbdfSmrg    PFNGLVERTEXATTRIBS2SVNVPROC VertexAttribs2svNV =
502735c4bbdfSmrg        __glGetProcAddress("glVertexAttribs2svNV");
502835c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50294642e01fSmrg
503035c4bbdfSmrg    VertexAttribs2svNV(*(GLuint *) (pc + 0), n, (const GLshort *) (pc + 8));
50314642e01fSmrg}
50324642e01fSmrg
503335c4bbdfSmrgvoid
503435c4bbdfSmrg__glXDisp_VertexAttribs3dvNV(GLbyte * pc)
50354642e01fSmrg{
503635c4bbdfSmrg    PFNGLVERTEXATTRIBS3DVNVPROC VertexAttribs3dvNV =
503735c4bbdfSmrg        __glGetProcAddress("glVertexAttribs3dvNV");
503835c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50394642e01fSmrg
50404642e01fSmrg#ifdef __GLX_ALIGN64
50414642e01fSmrg    const GLuint cmdlen = 12 + __GLX_PAD((n * 24)) - 4;
504235c4bbdfSmrg
504335c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
504435c4bbdfSmrg        (void) memmove(pc - 4, pc, cmdlen);
50454642e01fSmrg        pc -= 4;
50464642e01fSmrg    }
50474642e01fSmrg#endif
50484642e01fSmrg
504935c4bbdfSmrg    VertexAttribs3dvNV(*(GLuint *) (pc + 0), n, (const GLdouble *) (pc + 8));
50504642e01fSmrg}
50514642e01fSmrg
505235c4bbdfSmrgvoid
505335c4bbdfSmrg__glXDisp_VertexAttribs3fvNV(GLbyte * pc)
50544642e01fSmrg{
505535c4bbdfSmrg    PFNGLVERTEXATTRIBS3FVNVPROC VertexAttribs3fvNV =
505635c4bbdfSmrg        __glGetProcAddress("glVertexAttribs3fvNV");
505735c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50584642e01fSmrg
505935c4bbdfSmrg    VertexAttribs3fvNV(*(GLuint *) (pc + 0), n, (const GLfloat *) (pc + 8));
50604642e01fSmrg}
50614642e01fSmrg
506235c4bbdfSmrgvoid
506335c4bbdfSmrg__glXDisp_VertexAttribs3svNV(GLbyte * pc)
50644642e01fSmrg{
506535c4bbdfSmrg    PFNGLVERTEXATTRIBS3SVNVPROC VertexAttribs3svNV =
506635c4bbdfSmrg        __glGetProcAddress("glVertexAttribs3svNV");
506735c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50684642e01fSmrg
506935c4bbdfSmrg    VertexAttribs3svNV(*(GLuint *) (pc + 0), n, (const GLshort *) (pc + 8));
50704642e01fSmrg}
50714642e01fSmrg
507235c4bbdfSmrgvoid
507335c4bbdfSmrg__glXDisp_VertexAttribs4dvNV(GLbyte * pc)
50744642e01fSmrg{
507535c4bbdfSmrg    PFNGLVERTEXATTRIBS4DVNVPROC VertexAttribs4dvNV =
507635c4bbdfSmrg        __glGetProcAddress("glVertexAttribs4dvNV");
507735c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50784642e01fSmrg
50794642e01fSmrg#ifdef __GLX_ALIGN64
50804642e01fSmrg    const GLuint cmdlen = 12 + __GLX_PAD((n * 32)) - 4;
50814642e01fSmrg
508235c4bbdfSmrg    if ((unsigned long) (pc) & 7) {
508335c4bbdfSmrg        (void) memmove(pc - 4, pc, cmdlen);
50844642e01fSmrg        pc -= 4;
50854642e01fSmrg    }
50864642e01fSmrg#endif
50874642e01fSmrg
508835c4bbdfSmrg    VertexAttribs4dvNV(*(GLuint *) (pc + 0), n, (const GLdouble *) (pc + 8));
50894642e01fSmrg}
50904642e01fSmrg
509135c4bbdfSmrgvoid
509235c4bbdfSmrg__glXDisp_VertexAttribs4fvNV(GLbyte * pc)
50934642e01fSmrg{
509435c4bbdfSmrg    PFNGLVERTEXATTRIBS4FVNVPROC VertexAttribs4fvNV =
509535c4bbdfSmrg        __glGetProcAddress("glVertexAttribs4fvNV");
509635c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
50974642e01fSmrg
509835c4bbdfSmrg    VertexAttribs4fvNV(*(GLuint *) (pc + 0), n, (const GLfloat *) (pc + 8));
50994642e01fSmrg}
51004642e01fSmrg
510135c4bbdfSmrgvoid
510235c4bbdfSmrg__glXDisp_VertexAttribs4svNV(GLbyte * pc)
51034642e01fSmrg{
510435c4bbdfSmrg    PFNGLVERTEXATTRIBS4SVNVPROC VertexAttribs4svNV =
510535c4bbdfSmrg        __glGetProcAddress("glVertexAttribs4svNV");
510635c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
51074642e01fSmrg
510835c4bbdfSmrg    VertexAttribs4svNV(*(GLuint *) (pc + 0), n, (const GLshort *) (pc + 8));
51094642e01fSmrg}
51104642e01fSmrg
511135c4bbdfSmrgvoid
511235c4bbdfSmrg__glXDisp_VertexAttribs4ubvNV(GLbyte * pc)
51134642e01fSmrg{
511435c4bbdfSmrg    PFNGLVERTEXATTRIBS4UBVNVPROC VertexAttribs4ubvNV =
511535c4bbdfSmrg        __glGetProcAddress("glVertexAttribs4ubvNV");
511635c4bbdfSmrg    const GLsizei n = *(GLsizei *) (pc + 4);
51174642e01fSmrg
511835c4bbdfSmrg    VertexAttribs4ubvNV(*(GLuint *) (pc + 0), n, (const GLubyte *) (pc + 8));
51194642e01fSmrg}
51204642e01fSmrg
512135c4bbdfSmrgvoid
512235c4bbdfSmrg__glXDisp_ActiveStencilFaceEXT(GLbyte * pc)
51234642e01fSmrg{
512435c4bbdfSmrg    PFNGLACTIVESTENCILFACEEXTPROC ActiveStencilFaceEXT =
512535c4bbdfSmrg        __glGetProcAddress("glActiveStencilFaceEXT");
512635c4bbdfSmrg    ActiveStencilFaceEXT(*(GLenum *) (pc + 0));
51274642e01fSmrg}
5128