Regenerate from Mesa scripts.

Regenerate source files from Mesa scripts.  This causes the generated
files to use glxbyteorder.h.
This commit is contained in:
Ian Romanick 2007-01-04 14:55:51 -08:00
parent 6d603bb47f
commit 45aa26ccb4
4 changed files with 390 additions and 407 deletions

View File

@ -33,6 +33,7 @@
#include "indirect_size_get.h" #include "indirect_size_get.h"
#include "indirect_dispatch.h" #include "indirect_dispatch.h"
#include "glxserver.h" #include "glxserver.h"
#include "glxbyteorder.h"
#include "indirect_util.h" #include "indirect_util.h"
#include "singlesize.h" #include "singlesize.h"
#include "glapitable.h" #include "glapitable.h"

View File

@ -28,24 +28,12 @@
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glxproto.h> #include <GL/glxproto.h>
#if defined(__linux__) || defined (__GLIBC__) || defined(__GNU__)
#include <byteswap.h>
#elif defined(__OpenBSD__)
#include <sys/endian.h>
#define bswap_16 __swap16
#define bswap_32 __swap32
#define bswap_64 __swap64
#else
#include <sys/endian.h>
#define bswap_16 bswap16
#define bswap_32 bswap32
#define bswap_64 bswap64
#endif
#include <inttypes.h> #include <inttypes.h>
#include "indirect_size.h" #include "indirect_size.h"
#include "indirect_size_get.h" #include "indirect_size_get.h"
#include "indirect_dispatch.h" #include "indirect_dispatch.h"
#include "glxserver.h" #include "glxserver.h"
#include "glxbyteorder.h"
#include "indirect_util.h" #include "indirect_util.h"
#include "singlesize.h" #include "singlesize.h"
#include "glapitable.h" #include "glapitable.h"

View File

@ -28,16 +28,10 @@
#include <GL/gl.h> #include <GL/gl.h>
#include "glxserver.h" #include "glxserver.h"
#include "glxbyteorder.h"
#include "indirect_size.h" #include "indirect_size.h"
#include "indirect_reqsize.h" #include "indirect_reqsize.h"
#if defined(__linux__) || defined (__GLIBC__) || defined(__GNU__)
# include <byteswap.h>
# define SWAP_32(v) do { (v) = bswap_32(v); } while(0)
#else
# define SWAP_32(v) do { char tmp; swapl(&v, tmp); } while(0)
#endif
#define __GLX_PAD(x) (((x) + 3) & ~3) #define __GLX_PAD(x) (((x) + 3) & ~3)
#if defined(__CYGWIN__) || defined(__MINGW32__) #if defined(__CYGWIN__) || defined(__MINGW32__)
@ -63,8 +57,8 @@ __glXCallListsReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
SWAP_32( type ); type = bswap_32(type);
} }
compsize = __glCallLists_size(type); compsize = __glCallLists_size(type);
@ -83,11 +77,11 @@ __glXBitmapReqSize( const GLbyte * pc, Bool swap )
GLsizei height = *(GLsizei *) (pc + 24); GLsizei height = *(GLsizei *) (pc + 24);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
} }
return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, width, height, 1, return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, width, height, 1,
@ -102,7 +96,7 @@ __glXFogfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glFogfv_size(pname); compsize = __glFogfv_size(pname);
@ -116,7 +110,7 @@ __glXLightfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glLightfv_size(pname); compsize = __glLightfv_size(pname);
@ -130,7 +124,7 @@ __glXLightModelfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glLightModelfv_size(pname); compsize = __glLightModelfv_size(pname);
@ -144,7 +138,7 @@ __glXMaterialfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glMaterialfv_size(pname); compsize = __glMaterialfv_size(pname);
@ -161,9 +155,9 @@ __glXPolygonStippleReqSize( const GLbyte * pc, Bool swap )
GLint alignment = *(GLint *) (pc + 16); GLint alignment = *(GLint *) (pc + 16);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
} }
return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, 32, 32, 1, return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, 32, 32, 1,
@ -178,7 +172,7 @@ __glXTexParameterfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glTexParameterfv_size(pname); compsize = __glTexParameterfv_size(pname);
@ -199,13 +193,13 @@ __glXTexImage1DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 48); GLenum type = *(GLenum *) (pc + 48);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, 1, 1, return __glXImageSize(format, type, target, width, 1, 1,
@ -228,14 +222,14 @@ __glXTexImage2DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 48); GLenum type = *(GLenum *) (pc + 48);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, height, 1, return __glXImageSize(format, type, target, width, height, 1,
@ -250,7 +244,7 @@ __glXTexEnvfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glTexEnvfv_size(pname); compsize = __glTexEnvfv_size(pname);
@ -264,7 +258,7 @@ __glXTexGendvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glTexGendv_size(pname); compsize = __glTexGendv_size(pname);
@ -278,7 +272,7 @@ __glXTexGenfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glTexGenfv_size(pname); compsize = __glTexGenfv_size(pname);
@ -291,7 +285,7 @@ __glXPixelMapfvReqSize( const GLbyte * pc, Bool swap )
GLsizei mapsize = *(GLsizei *) (pc + 4); GLsizei mapsize = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( mapsize ); mapsize = bswap_32(mapsize);
} }
return __GLX_PAD((mapsize * 4)); return __GLX_PAD((mapsize * 4));
@ -303,7 +297,7 @@ __glXPixelMapusvReqSize( const GLbyte * pc, Bool swap )
GLsizei mapsize = *(GLsizei *) (pc + 4); GLsizei mapsize = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( mapsize ); mapsize = bswap_32(mapsize);
} }
return __GLX_PAD((mapsize * 2)); return __GLX_PAD((mapsize * 2));
@ -323,13 +317,13 @@ __glXDrawPixelsReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 32); GLenum type = *(GLenum *) (pc + 32);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, 0, width, height, 1, return __glXImageSize(format, type, 0, width, height, 1,
@ -343,7 +337,7 @@ __glXPrioritizeTexturesReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 0); GLsizei n = *(GLsizei *) (pc + 0);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 4) + (n * 4)); return __GLX_PAD((n * 4) + (n * 4));
@ -363,13 +357,13 @@ __glXTexSubImage1DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 48); GLenum type = *(GLenum *) (pc + 48);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, 1, 1, return __glXImageSize(format, type, target, width, 1, 1,
@ -392,14 +386,14 @@ __glXTexSubImage2DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 48); GLenum type = *(GLenum *) (pc + 48);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, height, 1, return __glXImageSize(format, type, target, width, height, 1,
@ -421,13 +415,13 @@ __glXColorTableReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 36); GLenum type = *(GLenum *) (pc + 36);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, 1, 1, return __glXImageSize(format, type, target, width, 1, 1,
@ -442,7 +436,7 @@ __glXColorTableParameterfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glColorTableParameterfv_size(pname); compsize = __glColorTableParameterfv_size(pname);
@ -463,13 +457,13 @@ __glXColorSubTableReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 36); GLenum type = *(GLenum *) (pc + 36);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( count ); count = bswap_32(count);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, count, 1, 1, return __glXImageSize(format, type, target, count, 1, 1,
@ -491,13 +485,13 @@ __glXConvolutionFilter1DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 40); GLenum type = *(GLenum *) (pc + 40);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, 1, 1, return __glXImageSize(format, type, target, width, 1, 1,
@ -520,14 +514,14 @@ __glXConvolutionFilter2DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 40); GLenum type = *(GLenum *) (pc + 40);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, height, 1, return __glXImageSize(format, type, target, width, height, 1,
@ -542,7 +536,7 @@ __glXConvolutionParameterfvReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glConvolutionParameterfv_size(pname); compsize = __glConvolutionParameterfv_size(pname);
@ -565,17 +559,17 @@ __glXTexImage3DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 72); GLenum type = *(GLenum *) (pc + 72);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( image_height ); image_height = bswap_32(image_height);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( skip_images ); skip_images = bswap_32(skip_images);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( depth ); depth = bswap_32(depth);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, height, depth, return __glXImageSize(format, type, target, width, height, depth,
@ -599,17 +593,17 @@ __glXTexSubImage3DReqSize( const GLbyte * pc, Bool swap )
GLenum type = *(GLenum *) (pc + 80); GLenum type = *(GLenum *) (pc + 80);
if (swap) { if (swap) {
SWAP_32( row_length ); row_length = bswap_32(row_length);
SWAP_32( image_height ); image_height = bswap_32(image_height);
SWAP_32( skip_rows ); skip_rows = bswap_32(skip_rows);
SWAP_32( skip_images ); skip_images = bswap_32(skip_images);
SWAP_32( alignment ); alignment = bswap_32(alignment);
SWAP_32( target ); target = bswap_32(target);
SWAP_32( width ); width = bswap_32(width);
SWAP_32( height ); height = bswap_32(height);
SWAP_32( depth ); depth = bswap_32(depth);
SWAP_32( format ); format = bswap_32(format);
SWAP_32( type ); type = bswap_32(type);
} }
return __glXImageSize(format, type, target, width, height, depth, return __glXImageSize(format, type, target, width, height, depth,
@ -617,13 +611,73 @@ __glXTexSubImage3DReqSize( const GLbyte * pc, Bool swap )
skip_rows, alignment); skip_rows, alignment);
} }
int
__glXCompressedTexImage1DARBReqSize(const GLbyte *pc, Bool swap)
{
GLsizei imageSize = *(GLsizei *) (pc + 20);
if (swap) {
imageSize = bswap_32(imageSize);
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexImage2DARBReqSize(const GLbyte *pc, Bool swap)
{
GLsizei imageSize = *(GLsizei *) (pc + 24);
if (swap) {
imageSize = bswap_32(imageSize);
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexImage3DARBReqSize(const GLbyte *pc, Bool swap)
{
GLsizei imageSize = *(GLsizei *) (pc + 28);
if (swap) {
imageSize = bswap_32(imageSize);
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexSubImage3DARBReqSize(const GLbyte *pc, Bool swap)
{
GLsizei imageSize = *(GLsizei *) (pc + 36);
if (swap) {
imageSize = bswap_32(imageSize);
}
return __GLX_PAD(imageSize);
}
int
__glXProgramStringARBReqSize(const GLbyte *pc, Bool swap)
{
GLsizei len = *(GLsizei *) (pc + 8);
if (swap) {
len = bswap_32(len);
}
return __GLX_PAD(len);
}
int int
__glXDrawBuffersARBReqSize(const GLbyte *pc, Bool swap) __glXDrawBuffersARBReqSize(const GLbyte *pc, Bool swap)
{ {
GLsizei n = *(GLsizei *) (pc + 0); GLsizei n = *(GLsizei *) (pc + 0);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 4)); return __GLX_PAD((n * 4));
@ -636,80 +690,20 @@ __glXPointParameterfvEXTReqSize( const GLbyte * pc, Bool swap )
GLsizei compsize; GLsizei compsize;
if (swap) { if (swap) {
SWAP_32( pname ); pname = bswap_32(pname);
} }
compsize = __glPointParameterfvEXT_size(pname); compsize = __glPointParameterfvEXT_size(pname);
return __GLX_PAD((compsize * 4)); return __GLX_PAD((compsize * 4));
} }
int
__glXCompressedTexImage3DARBReqSize( const GLbyte * pc, Bool swap )
{
GLsizei imageSize = *(GLsizei *)(pc + 28);
if (swap) {
SWAP_32( imageSize );
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexImage2DARBReqSize( const GLbyte * pc, Bool swap )
{
GLsizei imageSize = *(GLsizei *)(pc + 24);
if (swap) {
SWAP_32( imageSize );
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexImage1DARBReqSize( const GLbyte * pc, Bool swap )
{
GLsizei imageSize = *(GLsizei *)(pc + 20);
if (swap) {
SWAP_32( imageSize );
}
return __GLX_PAD(imageSize);
}
int
__glXCompressedTexSubImage3DARBReqSize( const GLbyte * pc, Bool swap )
{
GLsizei imageSize = *(GLsizei *)(pc + 36);
if (swap) {
SWAP_32( imageSize );
}
return __GLX_PAD(imageSize);
}
int
__glXLoadProgramNVReqSize( const GLbyte * pc, Bool swap )
{
GLsizei len = *(GLsizei *)(pc + 8);
if (swap) {
SWAP_32( len );
}
return __GLX_PAD(len);
}
int int
__glXProgramParameters4dvNVReqSize(const GLbyte *pc, Bool swap) __glXProgramParameters4dvNVReqSize(const GLbyte *pc, Bool swap)
{ {
GLuint num = *(GLuint *) (pc + 8); GLuint num = *(GLuint *) (pc + 8);
if (swap) { if (swap) {
SWAP_32( num ); num = bswap_32(num);
} }
return __GLX_PAD((num * 32)); return __GLX_PAD((num * 32));
@ -721,7 +715,7 @@ __glXProgramParameters4fvNVReqSize( const GLbyte * pc, Bool swap )
GLuint num = *(GLuint *) (pc + 8); GLuint num = *(GLuint *) (pc + 8);
if (swap) { if (swap) {
SWAP_32( num ); num = bswap_32(num);
} }
return __GLX_PAD((num * 16)); return __GLX_PAD((num * 16));
@ -733,7 +727,7 @@ __glXVertexAttribs1dvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 8)); return __GLX_PAD((n * 8));
@ -745,7 +739,7 @@ __glXVertexAttribs2dvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 16)); return __GLX_PAD((n * 16));
@ -757,7 +751,7 @@ __glXVertexAttribs3dvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 24)); return __GLX_PAD((n * 24));
@ -769,7 +763,7 @@ __glXVertexAttribs3fvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 12)); return __GLX_PAD((n * 12));
@ -781,7 +775,7 @@ __glXVertexAttribs3svNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 6)); return __GLX_PAD((n * 6));
@ -793,7 +787,7 @@ __glXVertexAttribs4dvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei n = *(GLsizei *) (pc + 4); GLsizei n = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( n ); n = bswap_32(n);
} }
return __GLX_PAD((n * 32)); return __GLX_PAD((n * 32));
@ -805,7 +799,7 @@ __glXProgramNamedParameter4fvNVReqSize( const GLbyte * pc, Bool swap )
GLsizei len = *(GLsizei *) (pc + 4); GLsizei len = *(GLsizei *) (pc + 4);
if (swap) { if (swap) {
SWAP_32( len ); len = bswap_32(len);
} }
return __GLX_PAD(len); return __GLX_PAD(len);
@ -821,8 +815,9 @@ ALIAS( TexGeniv, TexGenfv )
ALIAS(PixelMapuiv, PixelMapfv) ALIAS(PixelMapuiv, PixelMapfv)
ALIAS(ColorTableParameteriv, ColorTableParameterfv) ALIAS(ColorTableParameteriv, ColorTableParameterfv)
ALIAS(ConvolutionParameteriv, ConvolutionParameterfv) ALIAS(ConvolutionParameteriv, ConvolutionParameterfv)
ALIAS( CompressedTexSubImage2DARB, CompressedTexImage3DARB )
ALIAS(CompressedTexSubImage1DARB, CompressedTexImage1DARB) ALIAS(CompressedTexSubImage1DARB, CompressedTexImage1DARB)
ALIAS(CompressedTexSubImage2DARB, CompressedTexImage3DARB)
ALIAS(LoadProgramNV, ProgramStringARB)
ALIAS(RequestResidentProgramsNV, DrawBuffersARB) ALIAS(RequestResidentProgramsNV, DrawBuffersARB)
ALIAS(VertexAttribs1fvNV, PixelMapfv) ALIAS(VertexAttribs1fvNV, PixelMapfv)
ALIAS(VertexAttribs1svNV, PixelMapusv) ALIAS(VertexAttribs1svNV, PixelMapusv)
@ -832,7 +827,6 @@ ALIAS( VertexAttribs4fvNV, VertexAttribs2dvNV )
ALIAS(VertexAttribs4svNV, VertexAttribs1dvNV) ALIAS(VertexAttribs4svNV, VertexAttribs1dvNV)
ALIAS(VertexAttribs4ubvNV, PixelMapfv) ALIAS(VertexAttribs4ubvNV, PixelMapfv)
ALIAS(PointParameterivNV, PointParameterfvEXT) ALIAS(PointParameterivNV, PointParameterfvEXT)
ALIAS( ProgramStringARB, LoadProgramNV )
ALIAS(ProgramNamedParameter4dvNV, CompressedTexSubImage3DARB) ALIAS(ProgramNamedParameter4dvNV, CompressedTexSubImage3DARB)
ALIAS( DeleteRenderbuffersEXT, DrawBuffersARB )
ALIAS(DeleteFramebuffersEXT, DrawBuffersARB) ALIAS(DeleteFramebuffersEXT, DrawBuffersARB)
ALIAS(DeleteRenderbuffersEXT, DrawBuffersARB)

View File

@ -83,14 +83,15 @@ extern PURE HIDDEN int __glXConvolutionParameterivReqSize(const GLbyte *pc, Bool
extern PURE HIDDEN int __glXSeparableFilter2DReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXSeparableFilter2DReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXTexImage3DReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXTexImage3DReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXTexSubImage3DReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXTexSubImage3DReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage1DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage2DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage3DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage1DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage2DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage3DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramStringARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXDrawBuffersARBReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXDrawBuffersARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXPointParameterfvEXTReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXPointParameterfvEXTReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage3DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage2DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexImage1DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage3DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage2DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXCompressedTexSubImage1DARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXLoadProgramNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXLoadProgramNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramParameters4dvNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXProgramParameters4dvNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramParameters4fvNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXProgramParameters4fvNVReqSize(const GLbyte *pc, Bool swap);
@ -109,11 +110,10 @@ extern PURE HIDDEN int __glXVertexAttribs4fvNVReqSize(const GLbyte *pc, Bool swa
extern PURE HIDDEN int __glXVertexAttribs4svNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXVertexAttribs4svNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXVertexAttribs4ubvNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXVertexAttribs4ubvNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXPointParameterivNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXPointParameterivNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramStringARBReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramNamedParameter4fvNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXProgramNamedParameter4dvNVReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXProgramNamedParameter4dvNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXDeleteRenderbuffersEXTReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXProgramNamedParameter4fvNVReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXDeleteFramebuffersEXTReqSize(const GLbyte *pc, Bool swap); extern PURE HIDDEN int __glXDeleteFramebuffersEXTReqSize(const GLbyte *pc, Bool swap);
extern PURE HIDDEN int __glXDeleteRenderbuffersEXTReqSize(const GLbyte *pc, Bool swap);
# undef HIDDEN # undef HIDDEN
# undef PURE # undef PURE