2006-11-26 11:13:41 -07:00
|
|
|
/* DO NOT EDIT - This file generated automatically by glX_proto_size.py (from Mesa) script */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* (C) Copyright IBM Corporation 2005
|
|
|
|
* All Rights Reserved.
|
2015-09-16 13:10:19 -06:00
|
|
|
*
|
2006-11-26 11:13:41 -07:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sub license,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
2015-09-16 13:10:19 -06:00
|
|
|
*
|
2006-11-26 11:13:41 -07:00
|
|
|
* The above copyright notice and this permission notice (including the next
|
|
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
* Software.
|
2015-09-16 13:10:19 -06:00
|
|
|
*
|
2006-11-26 11:13:41 -07:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* IBM,
|
|
|
|
* AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
* SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include "glxserver.h"
|
2007-11-24 10:55:21 -07:00
|
|
|
#include "glxbyteorder.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
#include "indirect_size.h"
|
|
|
|
#include "indirect_reqsize.h"
|
|
|
|
|
|
|
|
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
2012-06-10 07:21:05 -06:00
|
|
|
#undef HAVE_ALIAS
|
2006-11-26 11:13:41 -07:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ALIAS
|
2012-06-10 07:21:05 -06:00
|
|
|
#define ALIAS2(from,to) \
|
2014-12-09 10:58:52 -07:00
|
|
|
GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap, int reqlen ) \
|
2006-11-26 11:13:41 -07:00
|
|
|
__attribute__ ((alias( # to )));
|
2012-06-10 07:21:05 -06:00
|
|
|
#define ALIAS(from,to) ALIAS2( from, __glX ## to ## ReqSize )
|
2006-11-26 11:13:41 -07:00
|
|
|
#else
|
2012-06-10 07:21:05 -06:00
|
|
|
#define ALIAS(from,to) \
|
2014-12-09 10:58:52 -07:00
|
|
|
GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap, int reqlen ) \
|
|
|
|
{ return __glX ## to ## ReqSize( pc, swap, reqlen ); }
|
2006-11-26 11:13:41 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXCallListsReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 0);
|
|
|
|
GLenum type = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glCallLists_size(type);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, n));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXBitmapReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 20);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 24);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, width, height, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXFogfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 0);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glFogfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXLightfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glLightfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXLightModelfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 0);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glLightModelfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXMaterialfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glMaterialfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXPolygonStippleReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(GL_COLOR_INDEX, GL_BITMAP, 0, 32, 32, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexParameterfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glTexParameterfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexImage1DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 32);
|
|
|
|
GLenum format = *(GLenum *) (pc + 44);
|
|
|
|
GLenum type = *(GLenum *) (pc + 48);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, 1, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexImage2DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 32);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 36);
|
|
|
|
GLenum format = *(GLenum *) (pc + 44);
|
|
|
|
GLenum type = *(GLenum *) (pc + 48);
|
|
|
|
|
|
|
|
if (swap) {
|
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, height, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexEnvfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glTexEnvfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexGendvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glTexGendv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 8));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexGenfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glTexGenfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXPixelMapfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei mapsize = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
mapsize = bswap_32(mapsize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(mapsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXPixelMapusvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei mapsize = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
mapsize = bswap_32(mapsize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(mapsize, 2));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXDrawPixelsReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 20);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 24);
|
|
|
|
GLenum format = *(GLenum *) (pc + 28);
|
|
|
|
GLenum type = *(GLenum *) (pc + 32);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, 0, width, height, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXPrioritizeTexturesReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 0);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_add(safe_mul(n, 4), safe_mul(n, 4)));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexSubImage1DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 36);
|
|
|
|
GLenum format = *(GLenum *) (pc + 44);
|
|
|
|
GLenum type = *(GLenum *) (pc + 48);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, 1, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexSubImage2DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 36);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 40);
|
|
|
|
GLenum format = *(GLenum *) (pc + 44);
|
|
|
|
GLenum type = *(GLenum *) (pc + 48);
|
|
|
|
|
|
|
|
if (swap) {
|
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, height, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXColorTableReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 28);
|
|
|
|
GLenum format = *(GLenum *) (pc + 32);
|
|
|
|
GLenum type = *(GLenum *) (pc + 36);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, 1, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXColorTableParameterfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glColorTableParameterfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXColorSubTableReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei count = *(GLsizei *) (pc + 28);
|
|
|
|
GLenum format = *(GLenum *) (pc + 32);
|
|
|
|
GLenum type = *(GLenum *) (pc + 36);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
count = bswap_32(count);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, count, 1, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXConvolutionFilter1DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 28);
|
|
|
|
GLenum format = *(GLenum *) (pc + 36);
|
|
|
|
GLenum type = *(GLenum *) (pc + 40);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, 1, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXConvolutionFilter2DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLint image_height = 0;
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint skip_images = 0;
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 8);
|
|
|
|
GLint alignment = *(GLint *) (pc + 16);
|
|
|
|
GLenum target = *(GLenum *) (pc + 20);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 28);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 32);
|
|
|
|
GLenum format = *(GLenum *) (pc + 36);
|
|
|
|
GLenum type = *(GLenum *) (pc + 40);
|
|
|
|
|
|
|
|
if (swap) {
|
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, height, 1,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXConvolutionParameterfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
GLsizei compsize;
|
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
compsize = __glConvolutionParameterfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexImage3DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
|
|
|
GLint image_height = *(GLint *) (pc + 8);
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 16);
|
|
|
|
GLint skip_images = *(GLint *) (pc + 20);
|
|
|
|
GLint alignment = *(GLint *) (pc + 32);
|
|
|
|
GLenum target = *(GLenum *) (pc + 36);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 48);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 52);
|
|
|
|
GLsizei depth = *(GLsizei *) (pc + 56);
|
|
|
|
GLenum format = *(GLenum *) (pc + 68);
|
|
|
|
GLenum type = *(GLenum *) (pc + 72);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
image_height = bswap_32(image_height);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
skip_images = bswap_32(skip_images);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
depth = bswap_32(depth);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
if (*(CARD32 *) (pc + 76))
|
|
|
|
return 0;
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
return __glXImageSize(format, type, target, width, height, depth,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXTexSubImage3DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLint row_length = *(GLint *) (pc + 4);
|
|
|
|
GLint image_height = *(GLint *) (pc + 8);
|
|
|
|
GLint skip_rows = *(GLint *) (pc + 16);
|
|
|
|
GLint skip_images = *(GLint *) (pc + 20);
|
|
|
|
GLint alignment = *(GLint *) (pc + 32);
|
|
|
|
GLenum target = *(GLenum *) (pc + 36);
|
|
|
|
GLsizei width = *(GLsizei *) (pc + 60);
|
|
|
|
GLsizei height = *(GLsizei *) (pc + 64);
|
|
|
|
GLsizei depth = *(GLsizei *) (pc + 68);
|
|
|
|
GLenum format = *(GLenum *) (pc + 76);
|
|
|
|
GLenum type = *(GLenum *) (pc + 80);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
row_length = bswap_32(row_length);
|
|
|
|
image_height = bswap_32(image_height);
|
|
|
|
skip_rows = bswap_32(skip_rows);
|
|
|
|
skip_images = bswap_32(skip_images);
|
|
|
|
alignment = bswap_32(alignment);
|
|
|
|
target = bswap_32(target);
|
|
|
|
width = bswap_32(width);
|
|
|
|
height = bswap_32(height);
|
|
|
|
depth = bswap_32(depth);
|
|
|
|
format = bswap_32(format);
|
|
|
|
type = bswap_32(type);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return __glXImageSize(format, type, target, width, height, depth,
|
|
|
|
image_height, row_length, skip_images,
|
|
|
|
skip_rows, alignment);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXCompressedTexImage1DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei imageSize = *(GLsizei *) (pc + 20);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
imageSize = bswap_32(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXCompressedTexImage2DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei imageSize = *(GLsizei *) (pc + 24);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
imageSize = bswap_32(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXCompressedTexImage3DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei imageSize = *(GLsizei *) (pc + 28);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
imageSize = bswap_32(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXCompressedTexSubImage3DReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei imageSize = *(GLsizei *) (pc + 36);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
imageSize = bswap_32(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(imageSize);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXPointParameterfvReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLenum pname = *(GLenum *) (pc + 0);
|
|
|
|
GLsizei compsize;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
pname = bswap_32(pname);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
compsize = __glPointParameterfv_size(pname);
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(compsize, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXDrawBuffersReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2014-05-02 13:27:46 -06:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 0);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2014-05-02 13:27:46 -06:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 4));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXProgramStringARBReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2014-05-02 13:27:46 -06:00
|
|
|
GLsizei len = *(GLsizei *) (pc + 8);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2014-05-02 13:27:46 -06:00
|
|
|
len = bswap_32(len);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(len);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs1dvNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 8));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs2dvNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 16));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs3dvNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 24));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs3fvNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 12));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs3svNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 6));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2014-12-09 10:58:52 -07:00
|
|
|
__glXVertexAttribs4dvNVReqSize(const GLbyte * pc, Bool swap, int reqlen)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2007-11-24 10:55:21 -07:00
|
|
|
GLsizei n = *(GLsizei *) (pc + 4);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if (swap) {
|
2007-11-24 10:55:21 -07:00
|
|
|
n = bswap_32(n);
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2014-12-09 10:58:52 -07:00
|
|
|
return safe_pad(safe_mul(n, 32));
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
ALIAS(Fogiv, Fogfv)
|
|
|
|
ALIAS(Lightiv, Lightfv)
|
|
|
|
ALIAS(LightModeliv, LightModelfv)
|
|
|
|
ALIAS(Materialiv, Materialfv)
|
|
|
|
ALIAS(TexParameteriv, TexParameterfv)
|
|
|
|
ALIAS(TexEnviv, TexEnvfv)
|
|
|
|
ALIAS(TexGeniv, TexGenfv)
|
|
|
|
ALIAS(PixelMapuiv, PixelMapfv)
|
|
|
|
ALIAS(ColorTableParameteriv, ColorTableParameterfv)
|
|
|
|
ALIAS(ConvolutionParameteriv, ConvolutionParameterfv)
|
2014-05-02 13:27:46 -06:00
|
|
|
ALIAS(CompressedTexSubImage1D, CompressedTexImage1D)
|
|
|
|
ALIAS(CompressedTexSubImage2D, CompressedTexImage3D)
|
|
|
|
ALIAS(PointParameteriv, PointParameterfv)
|
|
|
|
ALIAS(DeleteFramebuffers, DrawBuffers)
|
|
|
|
ALIAS(DeleteRenderbuffers, DrawBuffers)
|
2007-11-24 10:55:21 -07:00
|
|
|
ALIAS(VertexAttribs1fvNV, PixelMapfv)
|
|
|
|
ALIAS(VertexAttribs1svNV, PixelMapusv)
|
|
|
|
ALIAS(VertexAttribs2fvNV, VertexAttribs1dvNV)
|
|
|
|
ALIAS(VertexAttribs2svNV, PixelMapfv)
|
|
|
|
ALIAS(VertexAttribs4fvNV, VertexAttribs2dvNV)
|
|
|
|
ALIAS(VertexAttribs4svNV, VertexAttribs1dvNV)
|
|
|
|
ALIAS(VertexAttribs4ubvNV, PixelMapfv)
|