summaryrefslogtreecommitdiff
path: root/GL/glx
diff options
context:
space:
mode:
Diffstat (limited to 'GL/glx')
-rw-r--r--GL/glx/g_disptab.c14
-rw-r--r--GL/glx/g_disptab.h4
-rw-r--r--GL/glx/g_disptab_EXT.c130
-rw-r--r--GL/glx/g_disptab_EXT.h42
-rw-r--r--GL/glx/g_render.c177
-rw-r--r--GL/glx/g_renderswap.c22
-rw-r--r--GL/glx/g_single.c6
-rw-r--r--GL/glx/g_singleswap.c2
-rw-r--r--GL/glx/global.c2
-rw-r--r--GL/glx/glxbuf.c2
-rw-r--r--GL/glx/glxbuf.h2
-rw-r--r--GL/glx/glxcmds.c16
-rw-r--r--GL/glx/glxcmdsswap.c21
-rw-r--r--GL/glx/glxerror.h2
-rw-r--r--GL/glx/glxext.c5
-rw-r--r--GL/glx/glxext.h9
-rw-r--r--GL/glx/glxfb.c2
-rw-r--r--GL/glx/glxfb.h2
-rw-r--r--GL/glx/glxmem.c2
-rw-r--r--GL/glx/glxmem.h2
-rw-r--r--GL/glx/glxpix.c2
-rw-r--r--GL/glx/glxpix.h2
-rw-r--r--GL/glx/glxscreens.c11
-rw-r--r--GL/glx/glxscreens.h2
-rw-r--r--GL/glx/glxserver.h3
-rw-r--r--GL/glx/impsize.h5
-rw-r--r--GL/glx/render2.c35
-rw-r--r--GL/glx/render2swap.c3
-rw-r--r--GL/glx/renderpix.c2
-rw-r--r--GL/glx/renderpixswap.c2
-rw-r--r--GL/glx/rensize.c10
-rw-r--r--GL/glx/rensizetab.c30
-rw-r--r--GL/glx/single2.c38
-rw-r--r--GL/glx/single2swap.c53
-rw-r--r--GL/glx/singlepix.c2
-rw-r--r--GL/glx/singlepixswap.c2
-rw-r--r--GL/glx/singlesize.c258
-rw-r--r--GL/glx/singlesize.h2
-rw-r--r--GL/glx/unpack.h2
-rw-r--r--GL/glx/xfont.c2
40 files changed, 182 insertions, 748 deletions
diff --git a/GL/glx/g_disptab.c b/GL/glx/g_disptab.c
index 12d1abe56..b85d5d844 100644
--- a/GL/glx/g_disptab.c
+++ b/GL/glx/g_disptab.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab.c,v 1.5 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab.c,v 1.3 2001/03/21 16:29:35 dawes Exp $ */
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
/*
** License Applicability. Except to the extent portions of this file are
@@ -425,12 +425,8 @@ __GLXdispatchRenderProcPtr __glXRenderTable[] = {
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
- __glXDisp_SampleCoverageARB,
-#ifndef MISSING_GL_EXTS
+ __glXNoSuchRenderOpcode,
__glXDisp_WindowPos3fARB /* 230 */
-#else
- __glXNoSuchRenderOpcode
-#endif
};
__GLXdispatchSingleProcPtr __glXSwapSingleTable[__GLX_SINGLE_TABLE_SIZE] = {
@@ -826,10 +822,6 @@ __GLXdispatchRenderProcPtr __glXSwapRenderTable[__GLX_RENDER_TABLE_SIZE] = {
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
- __glXDispSwap_SampleCoverageARB,
-#ifndef MISSING_GL_EXTS
+ __glXNoSuchRenderOpcode,
__glXDispSwap_WindowPos3fARB /* 230 */
-#else
- __glXNoSuchRenderOpcode
-#endif
};
diff --git a/GL/glx/g_disptab.h b/GL/glx/g_disptab.h
index 25c233ac7..65a594d3e 100644
--- a/GL/glx/g_disptab.h
+++ b/GL/glx/g_disptab.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab.h,v 1.4 2003/09/28 20:15:42 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab.h,v 1.3 2001/03/21 16:29:35 dawes Exp $ */
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
#ifndef _GLX_g_disptab_h_
#define _GLX_g_disptab_h_
@@ -325,7 +325,6 @@ extern void __glXDisp_MultiTexCoord4dvARB(GLbyte*);
extern void __glXDisp_MultiTexCoord4fvARB(GLbyte*);
extern void __glXDisp_MultiTexCoord4ivARB(GLbyte*);
extern void __glXDisp_MultiTexCoord4svARB(GLbyte*);
-extern void __glXDisp_SampleCoverageARB(GLbyte *);
extern void __glXDisp_WindowPos3fARB(GLbyte *);
extern int __glXSwapRender(__GLXclientState*, GLbyte*);
@@ -622,7 +621,6 @@ extern void __glXDispSwap_MultiTexCoord4dvARB(GLbyte*);
extern void __glXDispSwap_MultiTexCoord4fvARB(GLbyte*);
extern void __glXDispSwap_MultiTexCoord4ivARB(GLbyte*);
extern void __glXDispSwap_MultiTexCoord4svARB(GLbyte*);
-extern void __glXDispSwap_SampleCoverageARB(GLbyte *);
extern void __glXDispSwap_WindowPos3fARB(GLbyte *);
#define __GLX_MIN_GLXCMD_OPCODE 1
diff --git a/GL/glx/g_disptab_EXT.c b/GL/glx/g_disptab_EXT.c
index 1fe07f40e..be82264a4 100644
--- a/GL/glx/g_disptab_EXT.c
+++ b/GL/glx/g_disptab_EXT.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab_EXT.c,v 1.5 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab_EXT.c,v 1.3 2001/03/21 16:29:35 dawes Exp $ */
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
/*
** License Applicability. Except to the extent portions of this file are
@@ -45,13 +45,8 @@ __GLXdispatchRenderProcPtr __glXRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT - __
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
-#ifndef MISSING_GL_EXTS
__glXDisp_PointParameterfARB, /* 2065 */
__glXDisp_PointParameterfvARB, /* 2066 */
-#else
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
-#endif
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
@@ -2109,36 +2104,22 @@ __GLXdispatchRenderProcPtr __glXRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT - __
__glXDisp_CopyTexSubImage1D, /* 4121 */
__glXDisp_CopyTexSubImage2D, /* 4122 */
__glXDisp_CopyTexSubImage3D, /* 4123 */
-#ifndef MISSING_GL_EXTS
- __glXDisp_FogCoordfv, /* 4124 */
- __glXDisp_FogCoorddv, /* 4125 */
- __glXDisp_SecondaryColor3bv, /* 4126 */
- __glXDisp_SecondaryColor3sv, /* 4127 */
- __glXDisp_SecondaryColor3iv, /* 4128 */
- __glXDisp_SecondaryColor3fv, /* 4129 */
- __glXDisp_SecondaryColor3dv, /* 4130 */
- __glXDisp_SecondaryColor3ubv, /* 4131 */
- __glXDisp_SecondaryColor3usv, /* 4132 */
- __glXDisp_SecondaryColor3uiv, /* 4133 */
- __glXDisp_BlendFuncSeparate, /* 4134 */
-#else
- __glXNoSuchRenderOpcode, /* 4124 */
- __glXNoSuchRenderOpcode, /* 4125 */
- __glXNoSuchRenderOpcode, /* 4126 */
- __glXNoSuchRenderOpcode, /* 4127 */
- __glXNoSuchRenderOpcode, /* 4128 */
- __glXNoSuchRenderOpcode, /* 4129 */
- __glXNoSuchRenderOpcode, /* 4130 */
- __glXNoSuchRenderOpcode, /* 4131 */
- __glXNoSuchRenderOpcode, /* 4132 */
- __glXNoSuchRenderOpcode, /* 4133 */
- __glXNoSuchRenderOpcode, /* 4134 */
-#endif
- __glXNoSuchRenderOpcode, /* 4135 */
- __glXNoSuchRenderOpcode, /* 4136 */
- __glXNoSuchRenderOpcode, /* 4137 */
- __glXNoSuchRenderOpcode, /* 4138 */
- __glXNoSuchRenderOpcode, /* 4139 */
+ __glXNoSuchRenderOpcode, /* 4124 */
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode, /* 4130 */
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode, /* 4140 */
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
@@ -2219,20 +2200,7 @@ __GLXdispatchRenderProcPtr __glXRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT - __
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode, /* 4219 */
-#ifndef MISSING_GL_EXTS
__glXDisp_ActiveStencilFaceEXT, /* 4220 */
-# ifndef __DARWIN__
- __glXDisp_PointParameteri, /* 4221 */
- __glXDisp_PointParameteriv, /* 4222 */
-# else
- __glXDisp_PointParameteriNV, /* 4221 */
- __glXDisp_PointParameterivNV, /* 4222 */
-# endif
-#else
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
-#endif
};
__GLXdispatchVendorPrivProcPtr __glXVendorPrivTable_EXT[__GLX_MAX_VENDPRIV_OPCODE_EXT - __GLX_MIN_VENDPRIV_OPCODE_EXT + 1] = {
__glXDisp_AreTexturesResidentEXT, /* 11 */
@@ -2255,13 +2223,8 @@ __GLXdispatchRenderProcPtr __glXSwapRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
-#ifndef MISSING_GL_EXTS
__glXDispSwap_PointParameterfARB, /* 2065 */
__glXDispSwap_PointParameterfvARB, /* 2066 */
-#else
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
-#endif
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
@@ -4319,36 +4282,22 @@ __GLXdispatchRenderProcPtr __glXSwapRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT
__glXDispSwap_CopyTexSubImage1D, /* 4121 */
__glXDispSwap_CopyTexSubImage2D, /* 4122 */
__glXDispSwap_CopyTexSubImage3D, /* 4123 */
-#ifndef MISSING_GL_EXTS
- __glXDispSwap_FogCoordfv, /* 4124 */
- __glXDispSwap_FogCoorddv, /* 4125 */
- __glXDispSwap_SecondaryColor3bv, /* 4126 */
- __glXDispSwap_SecondaryColor3sv, /* 4127 */
- __glXDispSwap_SecondaryColor3iv, /* 4128 */
- __glXDispSwap_SecondaryColor3fv, /* 4129 */
- __glXDispSwap_SecondaryColor3dv, /* 4130 */
- __glXDispSwap_SecondaryColor3ubv, /* 4131 */
- __glXDispSwap_SecondaryColor3usv, /* 4132 */
- __glXDispSwap_SecondaryColor3uiv, /* 4133 */
- __glXDisp_BlendFuncSeparate, /* 4134 */
-#else
- __glXNoSuchRenderOpcode, /* 4124 */
- __glXNoSuchRenderOpcode, /* 4125 */
- __glXNoSuchRenderOpcode, /* 4126 */
- __glXNoSuchRenderOpcode, /* 4127 */
- __glXNoSuchRenderOpcode, /* 4128 */
- __glXNoSuchRenderOpcode, /* 4129 */
- __glXNoSuchRenderOpcode, /* 4130 */
- __glXNoSuchRenderOpcode, /* 4131 */
- __glXNoSuchRenderOpcode, /* 4132 */
- __glXNoSuchRenderOpcode, /* 4133 */
- __glXNoSuchRenderOpcode, /* 4134 */
-#endif
- __glXNoSuchRenderOpcode, /* 4135 */
- __glXNoSuchRenderOpcode, /* 4136 */
- __glXNoSuchRenderOpcode, /* 4137 */
- __glXNoSuchRenderOpcode, /* 4138 */
- __glXNoSuchRenderOpcode, /* 4139 */
+ __glXNoSuchRenderOpcode, /* 4124 */
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode, /* 4130 */
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
+ __glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode, /* 4140 */
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
@@ -4429,20 +4378,7 @@ __GLXdispatchRenderProcPtr __glXSwapRenderTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode,
__glXNoSuchRenderOpcode, /* 4219 */
-#ifndef MISSING_GL_EXTS
__glXDispSwap_ActiveStencilFaceEXT, /* 4220 */
-# ifndef __DARWIN__
- __glXDispSwap_PointParameteri, /* 4221 */
- __glXDispSwap_PointParameteriv, /* 4222 */
-# else
- __glXDispSwap_PointParameteriNV, /* 4221 */
- __glXDispSwap_PointParameterivNV, /* 4222 */
-# endif
-#else
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
- __glXNoSuchRenderOpcode,
-#endif
};
__GLXdispatchVendorPrivProcPtr __glXSwapVendorPrivTable_EXT[__GLX_MAX_VENDPRIV_OPCODE_EXT - __GLX_MIN_VENDPRIV_OPCODE_EXT + 1] = {
__glXDispSwap_AreTexturesResidentEXT, /* 11 */
diff --git a/GL/glx/g_disptab_EXT.h b/GL/glx/g_disptab_EXT.h
index 89184c1b6..0d118c5c4 100644
--- a/GL/glx/g_disptab_EXT.h
+++ b/GL/glx/g_disptab_EXT.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab_EXT.h,v 1.5 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_disptab_EXT.h,v 1.3 2001/03/21 16:29:35 dawes Exp $ */
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
#ifndef _GLX_g_disptab_EXT_h_
#define _GLX_g_disptab_EXT_h_
@@ -69,44 +69,6 @@ extern void __glXDisp_CopyTexSubImage2D(GLbyte*);
extern void __glXDisp_CopyTexSubImage3D(GLbyte*);
extern void __glXDisp_PointParameterfARB(GLbyte*);
extern void __glXDisp_PointParameterfvARB(GLbyte*);
-
-extern void __glXDisp_FogCoordfv(GLbyte *);
-extern void __glXDisp_FogCoorddv(GLbyte *);
-extern void __glXDispSwap_FogCoordfv(GLbyte *);
-extern void __glXDispSwap_FogCoorddv(GLbyte *);
-
-extern void __glXDisp_SecondaryColor3bv(GLbyte *);
-extern void __glXDisp_SecondaryColor3sv(GLbyte *);
-extern void __glXDisp_SecondaryColor3iv(GLbyte *);
-extern void __glXDisp_SecondaryColor3ubv(GLbyte *);
-extern void __glXDisp_SecondaryColor3usv(GLbyte *);
-extern void __glXDisp_SecondaryColor3uiv(GLbyte *);
-extern void __glXDisp_SecondaryColor3fv(GLbyte *);
-extern void __glXDisp_SecondaryColor3dv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3bv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3sv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3iv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3ubv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3usv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3uiv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3fv(GLbyte *);
-extern void __glXDispSwap_SecondaryColor3dv(GLbyte *);
-
-extern void __glXDisp_BlendFuncSeparate(GLbyte *);
-extern void __glXDispSwap_BlendFuncSeparate(GLbyte *);
-
-#ifdef __DARWIN__
-extern void __glXDisp_PointParameteriNV(GLbyte *);
-extern void __glXDisp_PointParameterivNV(GLbyte *);
-extern void __glXDispSwap_PointParameteriNV(GLbyte *);
-extern void __glXDispSwap_PointParameterivNV(GLbyte *);
-#else
-extern void __glXDisp_PointParameteri(GLbyte *);
-extern void __glXDisp_PointParameteriv(GLbyte *);
-extern void __glXDispSwap_PointParameteri(GLbyte *);
-extern void __glXDispSwap_PointParameteriv(GLbyte *);
-#endif
-
extern void __glXDisp_ActiveStencilFaceEXT(GLbyte*);
extern int __glXDispSwap_AreTexturesResidentEXT(__GLXclientState*, GLbyte*);
@@ -150,7 +112,7 @@ extern void __glXDispSwap_PointParameterfvARB(GLbyte*);
extern void __glXDispSwap_ActiveStencilFaceEXT(GLbyte*);
#define __GLX_MIN_RENDER_OPCODE_EXT 2053
-#define __GLX_MAX_RENDER_OPCODE_EXT 4222
+#define __GLX_MAX_RENDER_OPCODE_EXT 4220
#define __GLX_MIN_VENDPRIV_OPCODE_EXT 11
#define __GLX_MAX_VENDPRIV_OPCODE_EXT 14
#define __GLX_VENDPRIV_TABLE_SIZE_EXT (__GLX_MAX_VENDPRIV_OPCODE_EXT - __GLX_MIN_VENDPRIV_OPCODE_EXT + 1)
diff --git a/GL/glx/g_render.c b/GL/glx/g_render.c
index a599423cc..35e083399 100644
--- a/GL/glx/g_render.c
+++ b/GL/glx/g_render.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_render.c,v 1.8 2004/02/03 21:34:36 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_render.c,v 1.4 2001/03/21 16:29:35 dawes Exp $ */
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
/*
** License Applicability. Except to the extent portions of this file are
@@ -59,157 +59,6 @@ void __glXDisp_Begin(GLbyte *pc)
);
}
-#define __GLX_SWAP_GLbyte(ptr)
-#define __GLX_SWAP_GLshort(ptr) __GLX_SWAP_SHORT(ptr)
-#define __GLX_SWAP_GLint(ptr) __GLX_SWAP_INT(ptr)
-#define __GLX_SWAP_GLubyte(ptr)
-#define __GLX_SWAP_GLushort(ptr) __GLX_SWAP_SHORT(ptr)
-#define __GLX_SWAP_GLuint(ptr) __GLX_SWAP_INT(ptr)
-#define __GLX_SWAP_GLdouble(ptr) __GLX_SWAP_DOUBLE(ptr)
-#define __GLX_SWAP_GLfloat(ptr) __GLX_SWAP_FLOAT(ptr)
-
-#define __GLX_SWAP_GLbyte_ARRAY(ptr,count) (void) swapEnd; (void) swapPC; (void) sw;
-#define __GLX_SWAP_GLshort_ARRAY(ptr,count) __GLX_SWAP_SHORT_ARRAY(ptr,count)
-#define __GLX_SWAP_GLint_ARRAY(ptr,count) __GLX_SWAP_INT_ARRAY(ptr,count)
-#define __GLX_SWAP_GLenum_ARRAY(ptr,count) __GLX_SWAP_INT_ARRAY(ptr,count)
-#define __GLX_SWAP_GLubyte_ARRAY(ptr,count) (void) swapEnd; (void) swapPC; (void) sw;
-#define __GLX_SWAP_GLushort_ARRAY(ptr,count) __GLX_SWAP_SHORT_ARRAY(ptr,count)
-#define __GLX_SWAP_GLuint_ARRAY(ptr,count) __GLX_SWAP_INT_ARRAY(ptr,count)
-#define __GLX_SWAP_GLdouble_ARRAY(ptr,count) __GLX_SWAP_DOUBLE_ARRAY(ptr,count)
-#define __GLX_SWAP_GLfloat_ARRAY(ptr,count) __GLX_SWAP_FLOAT_ARRAY(ptr,count)
-
-#ifdef __GLX_ALIGN64
-/* If type is not GLdouble, the compiler should optimize this away.
- */
-# define GLX_DO_ALIGN_MAGIC(count, type) \
- do { \
- if ( (sizeof(type) == 8) && ((unsigned long)(pc) & 7)) \
- { \
- __GLX_MEM_COPY(pc-4, pc, (count * sizeof( type ) )); \
- pc -= 4; \
- } \
- } while( 0 )
-#else
-# define GLX_DO_ALIGN_MAGIC(count, type)
-#endif
-
-#define dispatch_template_1( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- GLX_DO_ALIGN_MAGIC( 1, type ); \
- gl ## name ( (type *) pc ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- __GLX_DECLARE_SWAP_VARIABLES; \
- GLX_DO_ALIGN_MAGIC( 1, type ); \
- __GLX_SWAP_ ## type ( pc ); \
- gl ## name ( (type *) pc ); \
- }
-
-#define dispatch_template_3( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- GLX_DO_ALIGN_MAGIC( 3, type ); \
- gl ## name ( (type *) pc ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- __GLX_DECLARE_SWAP_VARIABLES; \
- __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
- GLX_DO_ALIGN_MAGIC( 3, type ); \
- __GLX_SWAP_ ## type ## _ARRAY(pc, 3); \
- gl ## name ( (type *) pc ); \
- }
-
-#define dispatch_template_4( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- GLX_DO_ALIGN_MAGIC( 4, type ); \
- gl ## name ( (type *) pc ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- __GLX_DECLARE_SWAP_VARIABLES; \
- __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
- GLX_DO_ALIGN_MAGIC( 4, type ); \
- __GLX_SWAP_ ## type ## _ARRAY(pc, 4); \
- gl ## name ( (type *) pc ); \
- }
-
-#define dispatch_template_4s( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- GLX_DO_ALIGN_MAGIC( 4, type ); \
- gl ## name ( ((type *) pc)[0], ((type *) pc)[1], \
- ((type *) pc)[2], ((type *) pc)[3] ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- __GLX_DECLARE_SWAP_VARIABLES; \
- __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
- GLX_DO_ALIGN_MAGIC( 4, type ); \
- __GLX_SWAP_ ## type ## _ARRAY(pc, 4); \
- gl ## name ( ((type *) pc)[0], ((type *) pc)[1], \
- ((type *) pc)[2], ((type *) pc)[3] ); \
- }
-
-/**
- * \bug All of the enum1 templates need to be updated to handle the case where
- * \c type is \c GLdouble. When the type is a double, the data comes before
- * the enum. This is also the reason the invocation of the
- * \c GLX_DO_ALIGN_MAGIC macro was removed.
- */
-#define dispatch_template_enum1_1s( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- gl ## name ( *(GLenum *) (pc + 0), \
- *(type *) (pc + 4) ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- __GLX_DECLARE_SWAP_VARIABLES; \
- __GLX_SWAP_INT (pc + 0); \
- __GLX_SWAP_ ## type (pc + 4); \
- gl ## name ( *(GLenum *) (pc + 0), \
- *(type *) (pc + 4) ); \
- }
-
-#define dispatch_template_enum1_Vv( name, type ) \
- void __glXDisp_ ## name ( GLbyte * pc ) \
- { \
- gl ## name ( *(GLenum *) (pc + 0), \
- (type *) (pc + 4) ); \
- } \
- void __glXDispSwap_ ## name ( GLbyte * pc ) \
- { \
- GLenum pname; GLint compsize; \
- __GLX_DECLARE_SWAP_VARIABLES; \
- __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
- __GLX_SWAP_INT(pc + 0); \
- pname = *(GLenum *)(pc + 0); \
- compsize = __gl ## name ## _size(pname); \
- if (compsize < 0) compsize = 0; \
- __GLX_SWAP_ ## type ## _ARRAY(pc + 4, compsize); \
- gl ## name ( *(GLenum *) (pc + 0), \
- (type *) (pc + 4) ); \
- }
-
-#ifndef MISSING_GL_EXTS
-dispatch_template_1( FogCoordfv, GLfloat )
-dispatch_template_1( FogCoorddv, GLdouble )
-dispatch_template_3( SecondaryColor3bv, GLbyte )
-dispatch_template_3( SecondaryColor3sv, GLshort )
-dispatch_template_3( SecondaryColor3iv, GLint )
-dispatch_template_3( SecondaryColor3ubv, GLubyte )
-dispatch_template_3( SecondaryColor3usv, GLushort )
-dispatch_template_3( SecondaryColor3uiv, GLuint )
-dispatch_template_3( SecondaryColor3fv, GLfloat )
-dispatch_template_3( SecondaryColor3dv, GLdouble )
-
-dispatch_template_4s( BlendFuncSeparate, GLenum )
-#endif /* !MISSING_GL_EXTS */
-
void __glXDisp_Color3bv(GLbyte *pc)
{
glColor3bv(
@@ -1133,7 +982,6 @@ void __glXDisp_TexGend(GLbyte *pc)
void __glXDisp_TexGendv(GLbyte *pc)
{
-#ifdef __GLX_ALIGN64
GLenum pname;
GLint cmdlen;
GLint compsize;
@@ -1142,6 +990,8 @@ void __glXDisp_TexGendv(GLbyte *pc)
compsize = __glTexGendv_size(pname);
if (compsize < 0) compsize = 0;
cmdlen = __GLX_PAD(8+compsize*8);
+
+#ifdef __GLX_ALIGN64
if ((unsigned long)(pc) & 7) {
__GLX_MEM_COPY(pc-4, pc, cmdlen);
pc -= 4;
@@ -2230,8 +2080,6 @@ void __glXDisp_MultiTexCoord4svARB(GLbyte *pc)
* Extensions
*/
-#ifndef MISSING_GL_EXTS
-
void __glXDisp_PointParameterfARB(GLbyte *pc)
{
glPointParameterfARB(
@@ -2249,15 +2097,6 @@ void __glXDisp_PointParameterfvARB(GLbyte *pc)
);
}
-#ifdef __DARWIN__
-#define __glPointParameterivNV_size __glPointParameteriv_size
-dispatch_template_enum1_1s(PointParameteriNV, GLint)
-dispatch_template_enum1_Vv(PointParameterivNV, GLint)
-#else
-dispatch_template_enum1_1s(PointParameteri, GLint)
-dispatch_template_enum1_Vv(PointParameteriv, GLint)
-#endif
-
void __glXDisp_ActiveStencilFaceEXT(GLbyte *pc)
{
glActiveStencilFaceEXT(
@@ -2273,13 +2112,3 @@ void __glXDisp_WindowPos3fARB(GLbyte *pc)
*(GLfloat *)(pc + 8)
);
}
-
-#endif /* !MISSING_GL_EXTS */
-
-void __glXDisp_SampleCoverageARB(GLbyte *pc)
-{
- glSampleCoverageARB(
- *(GLfloat *)(pc + 0),
- *(GLboolean *)(pc + 4)
- );
-}
diff --git a/GL/glx/g_renderswap.c b/GL/glx/g_renderswap.c
index 2a8d0c02f..6a199d8c7 100644
--- a/GL/glx/g_renderswap.c
+++ b/GL/glx/g_renderswap.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_renderswap.c,v 1.8 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_renderswap.c,v 1.5 2002/01/14 22:47:08 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -1570,9 +1570,7 @@ void __glXDispSwap_TexGend(GLbyte *pc)
void __glXDispSwap_TexGendv(GLbyte *pc)
{
GLenum pname;
-#ifdef __GLX_ALIGN64
GLint cmdlen;
-#endif
GLint compsize;
__GLX_DECLARE_SWAP_VARIABLES;
__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
@@ -1581,9 +1579,9 @@ void __glXDispSwap_TexGendv(GLbyte *pc)
pname = *(GLenum *)(pc + 4);
compsize = __glTexGendv_size(pname);
if (compsize < 0) compsize = 0;
+ cmdlen = __GLX_PAD(8+compsize*8);
#ifdef __GLX_ALIGN64
- cmdlen = __GLX_PAD(8+compsize*8);
if ((unsigned long)(pc) & 7) {
__GLX_MEM_COPY(pc-4, pc, cmdlen);
pc -= 4;
@@ -3313,8 +3311,6 @@ void __glXDispSwap_MultiTexCoord4svARB(GLbyte *pc)
* Extensions
*/
-#ifndef MISSING_GL_EXTS
-
void __glXDispSwap_PointParameterfARB(GLbyte *pc)
{
__GLX_DECLARE_SWAP_VARIABLES;
@@ -3368,17 +3364,3 @@ void __glXDispSwap_WindowPos3fARB(GLbyte *pc)
*(GLfloat *)(pc + 8)
);
}
-
-#endif /* !MISSING_GL_EXTS */
-
-void __glXDispSwap_SampleCoverageARB(GLbyte *pc)
-{
- __GLX_DECLARE_SWAP_VARIABLES;
- __GLX_SWAP_FLOAT(pc + 0);
- __GLX_SWAP_INT(pc + 4);
-
- glSampleCoverageARB(
- *(GLfloat *)(pc + 0),
- *(GLboolean *)(pc + 4)
- );
-}
diff --git a/GL/glx/g_single.c b/GL/glx/g_single.c
index ce446470f..06529e8c5 100644
--- a/GL/glx/g_single.c
+++ b/GL/glx/g_single.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_single.c,v 1.5tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_single.c,v 1.5 2002/01/14 22:47:08 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -1264,6 +1264,7 @@ int __glXDisp_AreTexturesResident(__GLXclientState *cl, GLbyte *pc)
int __glXDisp_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
{
+ GLsizei n;
__GLXcontext *cx;
int error;
@@ -1272,6 +1273,7 @@ int __glXDisp_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
return error;
}
pc += __GLX_SINGLE_HDR_SIZE;
+ n = *(GLsizei *)(pc + 0);
glDeleteTextures(
*(GLsizei *)(pc + 0),
@@ -1715,6 +1717,7 @@ int __glXDisp_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
int __glXDisp_DeleteTexturesEXT(__GLXclientState *cl, GLbyte *pc)
{
+ GLsizei n;
__GLXcontext *cx;
int error;
@@ -1723,6 +1726,7 @@ int __glXDisp_DeleteTexturesEXT(__GLXclientState *cl, GLbyte *pc)
return error;
}
pc += __GLX_VENDPRIV_HDR_SIZE;
+ n = *(GLsizei *)(pc + 0);
glDeleteTexturesEXT(
*(GLsizei *)(pc + 0),
diff --git a/GL/glx/g_singleswap.c b/GL/glx/g_singleswap.c
index 71722e57f..34515997e 100644
--- a/GL/glx/g_singleswap.c
+++ b/GL/glx/g_singleswap.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/g_singleswap.c,v 1.4tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/g_singleswap.c,v 1.5 2002/01/14 22:47:08 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/global.c b/GL/glx/global.c
index 73c2e8f3f..9cd011ec9 100644
--- a/GL/glx/global.c
+++ b/GL/glx/global.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/global.c,v 1.3 2001/03/21 16:29:35 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxbuf.c b/GL/glx/glxbuf.c
index 3488476c9..6e6f6142b 100644
--- a/GL/glx/glxbuf.c
+++ b/GL/glx/glxbuf.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxbuf.c,v 1.6 2001/03/25 05:32:01 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxbuf.c,v 1.7 2001/10/31 22:50:26 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxbuf.h b/GL/glx/glxbuf.h
index 611602f38..a298b3471 100644
--- a/GL/glx/glxbuf.h
+++ b/GL/glx/glxbuf.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxbuf.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _glxbuf_h_
#define _glxbuf_h_
diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c
index df4154991..b6f358f2e 100644
--- a/GL/glx/glxcmds.c
+++ b/GL/glx/glxcmds.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxcmds.c,v 1.12 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxcmds.c,v 1.9 2002/12/14 01:36:09 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -747,8 +747,6 @@ int __glXQueryVersion(__GLXclientState *cl, GLbyte *pc)
major = req->majorVersion;
minor = req->minorVersion;
- (void)major;
- (void)minor;
/*
** Server should take into consideration the version numbers sent by the
@@ -1554,18 +1552,6 @@ int __glXVendorPrivate(__GLXclientState *cl, GLbyte *pc)
req = (xGLXVendorPrivateReq *) pc;
vendorcode = req->vendorCode;
-#ifndef __DARWIN__
- switch( vendorcode ) {
- case X_GLvop_SampleMaskSGIS:
- glSampleMaskSGIS(*(GLfloat *)(pc + 4),
- *(GLboolean *)(pc + 8));
- return Success;
- case X_GLvop_SamplePatternSGIS:
- glSamplePatternSGIS( *(GLenum *)(pc + 4));
- return Success;
- }
-#endif
-
if ((vendorcode >= __GLX_MIN_VENDPRIV_OPCODE_EXT) &&
(vendorcode <= __GLX_MAX_VENDPRIV_OPCODE_EXT)) {
(*__glXVendorPrivTable_EXT[vendorcode-__GLX_MIN_VENDPRIV_OPCODE_EXT])
diff --git a/GL/glx/glxcmdsswap.c b/GL/glx/glxcmdsswap.c
index 8c0f1f091..c6623db2f 100644
--- a/GL/glx/glxcmdsswap.c
+++ b/GL/glx/glxcmdsswap.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxcmdsswap.c,v 1.10 2004/01/28 18:11:50 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxcmdsswap.c,v 1.7 2002/01/14 22:47:08 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -357,7 +357,7 @@ int __glXSwapClientInfo(__GLXclientState *cl, GLbyte *pc)
return __glXClientInfo(cl, pc);
}
-int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc)
+int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc)
{
xGLXQueryContextInfoEXTReq *req = (xGLXQueryContextInfoEXTReq *) pc;
__GLX_DECLARE_SWAP_VARIABLES;
@@ -365,7 +365,7 @@ int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc)
__GLX_SWAP_SHORT(&req->length);
__GLX_SWAP_INT(&req->context);
- return __glXQueryContextInfoEXT(cl, pc);
+ return __glXQueryContextInfoEXT(cl, (GLbyte *)pc);
}
/************************************************************************/
@@ -791,21 +791,6 @@ int __glXSwapVendorPrivate(__GLXclientState *cl, GLbyte *pc)
vendorcode = req->vendorCode;
-#ifndef __DARWIN__
- switch( vendorcode ) {
- case X_GLvop_SampleMaskSGIS:
- __GLX_SWAP_FLOAT(pc + 4);
- __GLX_SWAP_INT(pc + 8);
- glSampleMaskSGIS(*(GLfloat *)(pc + 4),
- *(GLboolean *)(pc + 8));
- return Success;
- case X_GLvop_SamplePatternSGIS:
- __GLX_SWAP_INT(pc + 4);
- glSamplePatternSGIS( *(GLenum *)(pc + 4));
- return Success;
- }
-#endif
-
if ((vendorcode >= __GLX_MIN_VENDPRIV_OPCODE_EXT) &&
(vendorcode <= __GLX_MAX_VENDPRIV_OPCODE_EXT)) {
(*__glXSwapVendorPrivTable_EXT[vendorcode-__GLX_MIN_VENDPRIV_OPCODE_EXT])(cl, (GLbyte*)req);
diff --git a/GL/glx/glxerror.h b/GL/glx/glxerror.h
index 5aad9c3e7..3c1e93c61 100644
--- a/GL/glx/glxerror.h
+++ b/GL/glx/glxerror.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxerror.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _GLX_error_h_
#define _GLX_error_h_
diff --git a/GL/glx/glxext.c b/GL/glx/glxext.c
index 796663e9b..4515c702c 100644
--- a/GL/glx/glxext.c
+++ b/GL/glx/glxext.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxext.c,v 1.9 2003/09/28 20:15:43 alanh Exp $
+/* $XFree86: xc/programs/Xserver/GL/glx/glxext.c,v 1.8 2001/08/23 18:25:40 alanh Exp $
** The contents of this file are subject to the GLX Public License Version 1.0
** (the "License"). You may not use this file except in compliance with the
** License. You may obtain a copy of the License at Silicon Graphics, Inc.,
@@ -31,9 +31,6 @@
extern __GLXextensionInfo __glDDXExtensionInfo;
-void GlxWrapInitVisuals(miInitVisualsProcPtr *);
-void GlxSetVisualConfigs(int nconfigs,
- __GLXvisualConfig *configs, void **privates);
__GLXextensionInfo *__glXExt = &__glDDXExtensionInfo;
diff --git a/GL/glx/glxext.h b/GL/glx/glxext.h
index 210fbb88c..7d0383d8d 100644
--- a/GL/glx/glxext.h
+++ b/GL/glx/glxext.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxext.h,v 1.7 2003/11/17 22:20:26 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxext.h,v 1.4 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _glxext_h_
#define _glxext_h_
@@ -71,7 +71,7 @@ extern GLboolean __glXErrorOccured(void);
extern void __glXResetLargeCommandStatus(__GLXclientState*);
extern int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc);
-extern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc);
+extern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc);
extern int __glXMakeCurrentReadSGI(__GLXclientState *cl, GLbyte *pc);
extern int __glXSwapMakeCurrentReadSGI(__GLXclientState *cl, GLbyte *pc);
@@ -80,10 +80,8 @@ extern void GlxExtensionInit(void);
extern Bool __glXCoreType(void);
-extern const char GLServerVersion[];
-extern int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap);
-
extern int GlxInitVisuals(
+#if NeedFunctionPrototypes
VisualPtr * visualp,
DepthPtr * depthp,
int * nvisualp,
@@ -93,6 +91,7 @@ extern int GlxInitVisuals(
unsigned long sizes,
int bitsPerRGB,
int preferredVis
+#endif
);
#endif /* _glxext_h_ */
diff --git a/GL/glx/glxfb.c b/GL/glx/glxfb.c
index 789eda52b..4ce952d51 100644
--- a/GL/glx/glxfb.c
+++ b/GL/glx/glxfb.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxfb.c,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxfb.h b/GL/glx/glxfb.h
index a0011a9ce..44a72a3e2 100644
--- a/GL/glx/glxfb.h
+++ b/GL/glx/glxfb.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxfb.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _glxfb_h_
#define _glxfb_h_
diff --git a/GL/glx/glxmem.c b/GL/glx/glxmem.c
index a38909922..0c3ea25a7 100644
--- a/GL/glx/glxmem.c
+++ b/GL/glx/glxmem.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxmem.c,v 1.6 2001/10/31 22:50:27 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxmem.c,v 1.7 2002/08/28 06:41:26 torrey Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxmem.h b/GL/glx/glxmem.h
index 889046721..93a277559 100644
--- a/GL/glx/glxmem.h
+++ b/GL/glx/glxmem.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxmem.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _glxmem_h_
#define _glxmem_h_
diff --git a/GL/glx/glxpix.c b/GL/glx/glxpix.c
index cca2105ba..b21d4ade9 100644
--- a/GL/glx/glxpix.c
+++ b/GL/glx/glxpix.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxpix.c,v 1.3 2000/09/26 15:57:02 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxpix.c,v 1.4 2001/03/21 16:29:36 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxpix.h b/GL/glx/glxpix.h
index 2147a6d03..d7a9afab0 100644
--- a/GL/glx/glxpix.h
+++ b/GL/glx/glxpix.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxpix.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
#ifndef _glxpix_h_
#define _glxpix_h_
diff --git a/GL/glx/glxscreens.c b/GL/glx/glxscreens.c
index f78b4a284..aea774105 100644
--- a/GL/glx/glxscreens.c
+++ b/GL/glx/glxscreens.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxscreens.c,v 1.14 2004/02/09 23:46:31 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxscreens.c,v 1.10 2002/04/04 14:05:36 eich Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -46,13 +46,11 @@
#include "glxserver.h"
#include "glxutil.h"
-const char GLServerVersion[] = "1.2";
static const char GLServerExtensions[] =
"GL_ARB_depth_texture "
"GL_ARB_imaging "
"GL_ARB_multitexture "
"GL_ARB_point_parameters "
- "GL_ARB_point_sprite "
"GL_ARB_shadow "
"GL_ARB_shadow_ambient "
"GL_ARB_texture_border_clamp "
@@ -110,7 +108,6 @@ static const char GLServerExtensions[] =
"GL_MESA_pack_invert "
"GL_MESA_ycbcr_texture "
"GL_NV_blend_square "
- "GL_NV_point_sprite "
"GL_NV_texgen_reflection "
"GL_NV_texture_rectangle "
"GL_SGIS_generate_mipmap "
@@ -128,15 +125,11 @@ static const char GLServerExtensions[] =
*/
static char GLXServerVendorName[] = "SGI";
static char GLXServerVersion[] = "1.2";
-static char GLXServerExtensions[] =
- "GLX_ARB_multisample "
+static char GLXServerExtensions[] =
"GLX_EXT_visual_info "
"GLX_EXT_visual_rating "
"GLX_EXT_import_context "
"GLX_SGI_make_current_read "
-#ifndef __DARWIN__
- "GLX_SGIS_multisample "
-#endif
;
/*
diff --git a/GL/glx/glxscreens.h b/GL/glx/glxscreens.h
index 42dc66e08..99f76dc38 100644
--- a/GL/glx/glxscreens.h
+++ b/GL/glx/glxscreens.h
@@ -1,7 +1,7 @@
#ifndef _GLX_screens_h_
#define _GLX_screens_h_
-/* $XFree86: xc/programs/Xserver/GL/glx/glxscreens.h,v 1.4 2001/03/21 16:29:37 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxscreens.h,v 1.5 2002/02/22 21:45:07 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/glxserver.h b/GL/glx/glxserver.h
index be9e40f5a..cfefd4096 100644
--- a/GL/glx/glxserver.h
+++ b/GL/glx/glxserver.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/glxserver.h,v 1.5 2003/09/28 20:15:43 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/glxserver.h,v 1.4 2001/08/23 18:25:40 alanh Exp $ */
#ifndef _GLX_server_h_
#define _GLX_server_h_
@@ -280,6 +280,5 @@ extern int __glXColorTableParameterfvSize(GLenum pname);
extern int __glXColorTableParameterivSize(GLenum pname);
extern int __glXPointParameterfvARBReqSize(GLbyte *pc, Bool swap);
-extern int __glXPointParameterivReqSize(GLbyte *pc, Bool swap);
#endif /* !__GLX_server_h__ */
diff --git a/GL/glx/impsize.h b/GL/glx/impsize.h
index 894391003..63fdcef20 100644
--- a/GL/glx/impsize.h
+++ b/GL/glx/impsize.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/impsize.h,v 1.4 2003/09/28 20:15:43 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/impsize.h,v 1.3 2001/03/21 16:29:37 dawes Exp $ */
#ifndef _impsize_h_
#define _impsize_h_
@@ -67,7 +67,6 @@ extern int __glTexParameterfv_size(GLenum e);
extern int __glTexParameteriv_size(GLenum e);
extern int __glEvalComputeK(GLenum target);
-extern int __glPointParameterfvARB_size(GLenum e);
-extern int __glPointParameteriv_size(GLenum e);
+extern int __glPointParameterfvARB_size(GLenum pname);
#endif /* _impsize_h_ */
diff --git a/GL/glx/render2.c b/GL/glx/render2.c
index d4c523fea..04bef0e8c 100644
--- a/GL/glx/render2.c
+++ b/GL/glx/render2.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/render2.c,v 1.8 2004/02/03 23:04:08 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/render2.c,v 1.5 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -82,25 +82,18 @@ void __glXDisp_Map2f(GLbyte *pc)
void __glXDisp_Map1d(GLbyte *pc)
{
- GLint order, k;
-#ifdef __GLX_ALIGN64
- GLint compsize;
-#endif
+ GLint order, k, compsize;
GLenum target;
GLdouble u1, u2, *points;
target = *(GLenum*) (pc + 16);
order = *(GLint*) (pc + 20);
k = __glEvalComputeK(target);
-
-#ifdef __GLX_ALIGN64
if (order < 0 || k < 0) {
compsize = 0;
} else {
compsize = order * k;
}
-#endif
-
__GLX_GET_DOUBLE(u1,pc);
__GLX_GET_DOUBLE(u2,pc+8);
pc += 24;
@@ -125,25 +118,18 @@ void __glXDisp_Map1d(GLbyte *pc)
void __glXDisp_Map2d(GLbyte *pc)
{
GLdouble u1, u2, v1, v2, *points;
- GLint uorder, vorder, ustride, vstride, k;
-#ifdef __GLX_ALIGN64
- GLint compsize;
-#endif
+ GLint uorder, vorder, ustride, vstride, k, compsize;
GLenum target;
target = *(GLenum *)(pc + 32);
uorder = *(GLint *)(pc + 36);
vorder = *(GLint *)(pc + 40);
k = __glEvalComputeK(target);
-
-#ifdef __GLX_ALIGN64
if (vorder < 0 || uorder < 0 || k < 0) {
compsize = 0;
} else {
compsize = uorder * vorder * k;
}
-#endif
-
__GLX_GET_DOUBLE(u1,pc);
__GLX_GET_DOUBLE(u2,pc+8);
__GLX_GET_DOUBLE(v1,pc+16);
@@ -234,16 +220,6 @@ void __glXDisp_DrawArrays(GLbyte *pc)
glEnableClientState(GL_EDGE_FLAG_ARRAY);
glEdgeFlagPointer(stride, (const GLboolean *)pc);
break;
-#ifndef MISSING_GL_EXTS
- case GL_SECONDARY_COLOR_ARRAY:
- glEnableClientState(GL_SECONDARY_COLOR_ARRAY);
- glSecondaryColorPointer(numVals, datatype, stride, pc);
- break;
- case GL_FOG_COORDINATE_ARRAY:
- glEnableClientState(GL_FOG_COORDINATE_ARRAY);
- glFogCoordPointer(datatype, stride, pc);
- break;
-#endif
default:
break;
}
@@ -260,11 +236,10 @@ void __glXDisp_DrawArrays(GLbyte *pc)
glDisableClientState(GL_INDEX_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_EDGE_FLAG_ARRAY);
- glDisableClientState(GL_SECONDARY_COLOR_ARRAY);
- glDisableClientState(GL_FOG_COORDINATE_ARRAY);
}
void __glXDisp_DrawArraysEXT(GLbyte *pc)
{
- __glXDisp_DrawArrays(pc);
+#ifdef XXX_STUB
+#endif /*XXX_STUB*/
}
diff --git a/GL/glx/render2swap.c b/GL/glx/render2swap.c
index 7c94b5268..e873d88aa 100644
--- a/GL/glx/render2swap.c
+++ b/GL/glx/render2swap.c
@@ -386,5 +386,6 @@ void __glXDispSwap_DrawArrays(GLbyte *pc)
void __glXDispSwap_DrawArraysEXT(GLbyte *pc)
{
- __glXDispSwap_DrawArrays(pc);
+#ifdef XXX_STUB
+#endif /*XXX_STUB*/
}
diff --git a/GL/glx/renderpix.c b/GL/glx/renderpix.c
index 5ffa47ddb..ad5625dd6 100644
--- a/GL/glx/renderpix.c
+++ b/GL/glx/renderpix.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/renderpix.c,v 1.5 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/renderpixswap.c b/GL/glx/renderpixswap.c
index 81d4e375f..3b0e1f6b7 100644
--- a/GL/glx/renderpixswap.c
+++ b/GL/glx/renderpixswap.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/renderpixswap.c,v 1.5 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/rensize.c b/GL/glx/rensize.c
index aa784b5fc..95a10e2e2 100644
--- a/GL/glx/rensize.c
+++ b/GL/glx/rensize.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/rensize.c,v 1.6 2003/09/28 20:15:43 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/rensize.c,v 1.5 2002/02/22 21:45:07 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -551,14 +551,12 @@ int __glXDrawArraysSize( GLbyte *pc, Bool swap )
case GL_COLOR_ARRAY:
case GL_TEXTURE_COORD_ARRAY:
break;
- case GL_SECONDARY_COLOR_ARRAY:
case GL_NORMAL_ARRAY:
if (numVals != 3) {
/* bad size */
return -1;
}
break;
- case GL_FOG_COORDINATE_ARRAY:
case GL_INDEX_ARRAY:
if (numVals != 1) {
/* bad size */
@@ -920,9 +918,3 @@ int __glXPointParameterfvARBReqSize(GLbyte *pc, Bool swap )
}
return 4 * __glPointParameterfvARB_size( pname );
}
-
-int __glXPointParameterivReqSize(GLbyte *pc, Bool swap )
-{
- /* no difference between fv and iv versions */
- return __glXPointParameterfvARBReqSize(pc, swap);
-}
diff --git a/GL/glx/rensizetab.c b/GL/glx/rensizetab.c
index f402bb217..feaac9869 100644
--- a/GL/glx/rensizetab.c
+++ b/GL/glx/rensizetab.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/rensizetab.c,v 1.5 2004/01/28 18:11:53 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/rensizetab.c,v 1.3 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -231,9 +231,9 @@ __GLXrenderSizeData __glXRenderSizeTable[__GLX_MAX_RENDER_OPCODE_EXT - __GLX_MIN
/* Translatef */ { 16, 0 },
/* Viewport */ { 20, 0 },
/* PolygonOffset */ { 12, 0 },
- /* DrawArrays */ { 16, __glXDrawArraysSize },
+ /* no such opcode */ { 0, 0 },
/* Indexubv */ { 8, 0 },
- /* ColorSubTable */ { 44, __glXColorSubTableReqSize },
+ /* ColorSubTable */ { 44, __glXColorSubTableReqSize },
/* CopyColorSubTable */ { 24, 0 },
/* ActiveTextureARB */ { 8, 0 },
/* MultiTexCoord1dvARB */ { 16, 0 },
@@ -2342,17 +2342,17 @@ __GLXrenderSizeData __glXRenderSizeTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT - __GLX
/* CopyTexSubImage1D */ { 28, 0 },
/* CopyTexSubImage2D */ { 36, 0 },
/* CopyTexSubImage3D 4123 */ { 40, 0 },
- /* FogCoordfv 4124 */ { 8, 0 },
- /* FogCoorddv 4125 */ { 12, 0 },
- /* SecondaryColor3bv 4126 */ { 8, 0 },
- /* SecondaryColor3sv 4127 */ { 12, 0 },
- /* SecondaryColor3iv 4128 */ { 16, 0 },
- /* SecondaryColor3fv 4129 */ { 16, 0 },
- /* SecondaryColor3dv 4130 */ { 28, 0 },
- /* SecondaryColor3ubv 4131 */ { 8, 0 },
- /* SecondaryColor3usv 4132 */ { 12, 0 },
- /* SecondaryColor3uiv 4133 */ { 16, 0 },
- /* BlendFuncSeparate 4134 */ { 20, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
+ /* no such opcode */ { 0, 0 },
/* no such opcode */ { 0, 0 },
/* no such opcode */ { 0, 0 },
/* no such opcode */ { 0, 0 },
@@ -2439,6 +2439,4 @@ __GLXrenderSizeData __glXRenderSizeTable_EXT[__GLX_MAX_RENDER_OPCODE_EXT - __GLX
/* no such opcode */ { 0, 0 },
/* no such opcode */ { 0, 0 },
/* ActiveStencilFaceEXT 4220 */ { 8, 0 },
- /* PointParameteri 4221 */ { 12, 0 },
- /* PointParameteriv 4222 */ { 8, __glXPointParameterivReqSize },
};
diff --git a/GL/glx/single2.c b/GL/glx/single2.c
index 5869e8f50..286f63d70 100644
--- a/GL/glx/single2.c
+++ b/GL/glx/single2.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/single2.c,v 1.8 2004/02/10 22:54:15 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/single2.c,v 1.6 2001/06/06 19:00:15 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -296,25 +296,16 @@ char *__glXcombine_strings(const char *cext_string, const char *sext_string)
return combo_string;
}
-int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap)
+int __glXDisp_GetString(__GLXclientState *cl, GLbyte *pc)
{
ClientPtr client;
__GLXcontext *cx;
GLenum name;
const char *string;
- __GLX_DECLARE_SWAP_VARIABLES;
int error;
char *buf = NULL, *buf1 = NULL;
GLint length = 0;
- /* If the client has the opposite byte order, swap the contextTag and
- * the name.
- */
- if ( need_swap ) {
- __GLX_SWAP_INT(pc + 4);
- __GLX_SWAP_INT(pc + __GLX_SINGLE_HDR_SIZE);
- }
-
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
if (!cx) {
return error;
@@ -340,32 +331,12 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap)
}
string = buf;
}
- else if ( name == GL_VERSION ) {
- if ( atof( string ) > atof( GLServerVersion ) ) {
- buf = __glXMalloc( __glXStrlen( string )
- + __glXStrlen( GLServerVersion )
- + 4 );
- if ( buf == NULL ) {
- string = GLServerVersion;
- }
- else {
- __glXSprintf( buf, "%s (%s)", GLServerVersion, string );
- string = buf;
- }
- }
- }
if (string) {
length = __glXStrlen((const char *) string) + 1;
}
__GLX_BEGIN_REPLY(length);
__GLX_PUT_SIZE(length);
-
- if ( need_swap ) {
- __GLX_SWAP_REPLY_SIZE();
- __GLX_SWAP_REPLY_HEADER();
- }
-
__GLX_SEND_HEADER();
WriteToClient(client, length, (char *) string);
if (buf != NULL) {
@@ -374,11 +345,6 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap)
return Success;
}
-int __glXDisp_GetString(__GLXclientState *cl, GLbyte *pc)
-{
- return DoGetString(cl, pc, GL_FALSE);
-}
-
int __glXDisp_GetClipPlane(__GLXclientState *cl, GLbyte *pc)
{
__GLXcontext *cx;
diff --git a/GL/glx/single2swap.c b/GL/glx/single2swap.c
index c8c496871..96db415f9 100644
--- a/GL/glx/single2swap.c
+++ b/GL/glx/single2swap.c
@@ -262,7 +262,58 @@ int __glXDispSwap_Finish(__GLXclientState *cl, GLbyte *pc)
int __glXDispSwap_GetString(__GLXclientState *cl, GLbyte *pc)
{
- return DoGetString(cl, pc, GL_TRUE);
+ ClientPtr client;
+ __GLXcontext *cx;
+ GLenum name;
+ const char *string;
+ __GLX_DECLARE_SWAP_VARIABLES;
+ int error;
+ char *buf = NULL, *buf1 = NULL;
+ GLint length = 0;
+
+ __GLX_SWAP_INT(&((xGLXSingleReq *)pc)->contextTag);
+ cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
+ if (!cx) {
+ return error;
+ }
+
+ pc += __GLX_SINGLE_HDR_SIZE;
+ __GLX_SWAP_INT(pc + 0);
+ name = *(GLenum *)(pc + 0);
+ string = (const char *)glGetString(name);
+ client = cl->client;
+
+ /*
+ ** Restrict extensions to those that are supported by both the
+ ** implementation and the connection. That is, return the
+ ** intersection of client, server, and core extension strings.
+ */
+ if (name == GL_EXTENSIONS) {
+ buf1 = __glXcombine_strings(string,
+ cl->GLClientextensions);
+ buf = __glXcombine_strings(buf1,
+ cx->pGlxScreen->GLextensions);
+ if (buf1 != NULL) {
+ __glXFree(buf1);
+ }
+ string = buf;
+ }
+ if (string) {
+ length = __glXStrlen((const char *) string) + 1;
+ }
+
+ __GLX_BEGIN_REPLY(length);
+ __GLX_PUT_SIZE(length);
+
+ __GLX_SWAP_REPLY_SIZE();
+ __GLX_SWAP_REPLY_HEADER();
+ __GLX_SEND_HEADER();
+ WriteToClient(client, length, (char *) string);
+ if (buf != NULL) {
+ __glXFree(buf);
+ }
+
+ return Success;
}
int __glXDispSwap_GetClipPlane(__GLXclientState *cl, GLbyte *pc)
diff --git a/GL/glx/singlepix.c b/GL/glx/singlepix.c
index 4459d81b1..85be77d85 100644
--- a/GL/glx/singlepix.c
+++ b/GL/glx/singlepix.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/singlepix.c,v 1.5 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/singlepixswap.c b/GL/glx/singlepixswap.c
index b4370a229..2b488312e 100644
--- a/GL/glx/singlepixswap.c
+++ b/GL/glx/singlepixswap.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/singlepixswap.c,v 1.5 2001/03/21 16:29:37 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/singlepixswap.c,v 1.6 2001/10/31 22:50:27 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
diff --git a/GL/glx/singlesize.c b/GL/glx/singlesize.c
index 448fa1aef..7f59816e9 100644
--- a/GL/glx/singlesize.c
+++ b/GL/glx/singlesize.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/singlesize.c,v 1.7tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/singlesize.c,v 1.4 2002/02/22 21:45:07 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -35,7 +35,6 @@
*/
#include <GL/gl.h>
-#include "glxserver.h"
#include "singlesize.h"
/*
@@ -50,48 +49,32 @@ GLint __glReadPixels_size(GLenum format, GLenum type, GLint w, GLint h)
return __glXImage3DSize( format, type, w, h, 1, 0, 0, 0, 0, 4 );
}
-/**
- * Determine the number of data elements that go with the specified \c pname
- * to a \c glGetTexEnvfv or \c glGetTexEnviv call.
- *
- * \todo
- * Replace this function with a call to \c __glTexEnvfv_size. Make that there
- * aren't any values of \c pname that are valid for one but not the other.
- */
GLint __glGetTexEnvfv_size(GLenum pname)
{
switch (pname) {
case GL_TEXTURE_ENV_MODE:
- case GL_TEXTURE_LOD_BIAS:
- case GL_COMBINE_RGB:
- case GL_COMBINE_ALPHA:
- case GL_SOURCE0_RGB:
- case GL_SOURCE1_RGB:
- case GL_SOURCE2_RGB:
- case GL_SOURCE0_ALPHA:
- case GL_SOURCE1_ALPHA:
- case GL_SOURCE2_ALPHA:
- case GL_OPERAND0_RGB:
- case GL_OPERAND1_RGB:
- case GL_OPERAND2_RGB:
- case GL_OPERAND0_ALPHA:
- case GL_OPERAND1_ALPHA:
- case GL_OPERAND2_ALPHA:
- case GL_RGB_SCALE:
- case GL_ALPHA_SCALE:
-
- /* GL_ARB_point_sprite / GL_NV_point_sprite */
- case GL_COORD_REPLACE_NV:
-
- /* GL_NV_texture_env_combine4 */
- case GL_SOURCE3_RGB_NV:
- case GL_SOURCE3_ALPHA_NV:
- case GL_OPERAND3_RGB_NV:
- case GL_OPERAND3_ALPHA_NV:
return 1;
-
case GL_TEXTURE_ENV_COLOR:
return 4;
+ case GL_TEXTURE_LOD_BIAS_EXT:
+ return 1;
+ case GL_COMBINE_RGB_ARB:
+ case GL_COMBINE_ALPHA_ARB:
+ case GL_SOURCE0_RGB_ARB:
+ case GL_SOURCE1_RGB_ARB:
+ case GL_SOURCE2_RGB_ARB:
+ case GL_SOURCE0_ALPHA_ARB:
+ case GL_SOURCE1_ALPHA_ARB:
+ case GL_SOURCE2_ALPHA_ARB:
+ case GL_OPERAND0_RGB_ARB:
+ case GL_OPERAND1_RGB_ARB:
+ case GL_OPERAND2_RGB_ARB:
+ case GL_OPERAND0_ALPHA_ARB:
+ case GL_OPERAND1_ALPHA_ARB:
+ case GL_OPERAND2_ALPHA_ARB:
+ case GL_RGB_SCALE_ARB:
+ case GL_ALPHA_SCALE:
+ return 1;
default:
return -1;
}
@@ -156,15 +139,6 @@ GLint __glGetTexParameterfv_size(GLenum pname)
case GL_TEXTURE_COMPARE_MODE:
case GL_TEXTURE_COMPARE_FUNC:
- /* GL_SGIS_generate_mipmap / GL 1.4 */
- case GL_GENERATE_MIPMAP:
-
- /* GL_ARB_depth_texture / GL 1.4 */
- case GL_DEPTH_TEXTURE_MODE:
-
- /* GL_EXT_texture_lod_bias / GL 1.4 */
- case GL_TEXTURE_LOD_BIAS:
-
/* GL_SGIX_shadow_ambient / GL_ARB_shadow_ambient */
case GL_TEXTURE_COMPARE_FAIL_VALUE_ARB:
@@ -176,9 +150,6 @@ GLint __glGetTexParameterfv_size(GLenum pname)
case GL_TEXTURE_MAX_CLAMP_S_SGIX:
case GL_TEXTURE_MAX_CLAMP_T_SGIX:
case GL_TEXTURE_MAX_CLAMP_R_SGIX:
-
- /* GL_EXT_texture_filter_anisotropic */
- case GL_TEXTURE_MAX_ANISOTROPY_EXT:
return 1;
default:
@@ -862,6 +833,10 @@ GLint __glGet_size(GLenum sq)
case GL_MAX_CONVOLUTION_WIDTH:
case GL_MAX_CONVOLUTION_HEIGHT:
return 1;
+ case GL_TEXTURE_CUBE_MAP_ARB:
+ case GL_TEXTURE_BINDING_CUBE_MAP_ARB:
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB:
+ return 1;
case GL_OCCLUSION_TEST_RESULT_HP:
case GL_OCCLUSION_TEST_HP:
return 1;
@@ -871,183 +846,6 @@ GLint __glGet_size(GLenum sq)
return 1;
case GL_RASTER_POSITION_UNCLIPPED_IBM:
return 1;
-
- /* GL_ARB_texture_cube_map / GL 1.3 */
- case GL_TEXTURE_CUBE_MAP:
- case GL_TEXTURE_BINDING_CUBE_MAP:
- case GL_MAX_CUBE_MAP_TEXTURE_SIZE:
-
- /* GL_ARB_multisample / GL 1.3 */
- case GL_MULTISAMPLE:
- case GL_SAMPLE_ALPHA_TO_COVERAGE:
- case GL_SAMPLE_ALPHA_TO_ONE:
- case GL_SAMPLE_COVERAGE:
- case GL_SAMPLE_BUFFERS:
- case GL_SAMPLES:
- case GL_SAMPLE_COVERAGE_VALUE:
- case GL_SAMPLE_COVERAGE_INVERT:
-
- /* GL_ARB_texture_comrpession / GL 1.3 */
- case GL_TEXTURE_COMPRESSION_HINT:
- case GL_NUM_COMPRESSED_TEXTURE_FORMATS:
-
- /* GL_EXT_blend_func_separate / GL 1.4 */
- case GL_BLEND_DST_RGB:
- case GL_BLEND_SRC_RGB:
- case GL_BLEND_DST_ALPHA:
- case GL_BLEND_SRC_ALPHA:
-
- /* GL_EXT_fog_coord / GL 1.4 */
- case GL_CURRENT_FOG_COORDINATE:
- case GL_FOG_COORDINATE_ARRAY_TYPE:
- case GL_FOG_COORDINATE_ARRAY_STRIDE:
- case GL_FOG_COORDINATE_ARRAY:
- case GL_FOG_COORDINATE_SOURCE:
-
- /* GL_EXT_secondary_color / GL 1.4 */
- case GL_COLOR_SUM:
- case GL_SECONDARY_COLOR_ARRAY_SIZE:
- case GL_SECONDARY_COLOR_ARRAY_TYPE:
- case GL_SECONDARY_COLOR_ARRAY_STRIDE:
- case GL_SECONDARY_COLOR_ARRAY:
-
- /* GL_EXT_texture_lod_bias / GL 1.4 */
- case GL_MAX_TEXTURE_LOD_BIAS:
-
- /* GL_ARB_point_sprite */
- case GL_POINT_SPRITE_NV:
-
- /* GL_ARB_vertex_blend */
- case GL_MAX_VERTEX_UNITS_ARB:
- case GL_ACTIVE_VERTEX_UNITS_ARB:
- case GL_WEIGHT_SUM_UNITY_ARB:
- case GL_VERTEX_BLEND_ARB:
- case GL_CURRENT_WEIGHT_ARB:
- case GL_WEIGHT_ARRAY_ARB:
- case GL_WEIGHT_ARRAY_TYPE_ARB:
- case GL_WEIGHT_ARRAY_STRIDE_ARB:
- case GL_WEIGHT_ARRAY_SIZE_ARB:
-
- /* GL_ARB_matrix_palette */
- case GL_MATRIX_PALETTE_ARB:
- case GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB:
- case GL_MAX_PALETTE_MATRICES_ARB:
- case GL_CURRENT_PALETTE_MATRIX_ARB:
- case GL_CURRENT_MATRIX_INDEX_ARB:
- case GL_MATRIX_INDEX_ARRAY_ARB:
- case GL_MATRIX_INDEX_ARRAY_SIZE_ARB:
- case GL_MATRIX_INDEX_ARRAY_TYPE_ARB:
- case GL_MATRIX_INDEX_ARRAY_STRIDE_ARB:
-
- /* GL_EXT_clip_volume_hint */
- case GL_CLIP_VOLUME_CLIPPING_HINT_EXT:
-
- /* GL_EXT_stencil_two_size */
- case GL_STENCIL_TEST_TWO_SIDE_EXT:
- case GL_ACTIVE_STENCIL_FACE_EXT:
-
- /* GL_EXT_vertex_weighting */
- case GL_VERTEX_WEIGHTING_EXT:
- case GL_MODELVIEW0_EXT:
- case GL_MODELVIEW1_EXT:
- case GL_CURRENT_VERTEX_WEIGHT_EXT:
- case GL_VERTEX_WEIGHT_ARRAY_EXT:
- case GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT:
- case GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT:
- case GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT:
- /* case GL_MODELVIEW0_STACK_DEPTH_EXT: */ /* alias */
- case GL_MODELVIEW1_STACK_DEPTH_EXT:
-
- /* GL_ATI_vertex_streams */
- case GL_MAX_VERTEX_STREAMS_ATI:
-
- /* GL_NV_depth_clamp */
- case GL_DEPTH_CLAMP_NV:
-
- /* GL_NV_fog_distance */
- case GL_FOG_DISTANCE_MODE_NV:
-
- /* GL_NV_light_max_exponent */
- case GL_MAX_SHININESS_NV:
- case GL_MAX_SPOT_EXPONENT_NV:
-
- /* GL_NV_multisample_filter_hint */
- case GL_MULTISAMPLE_FILTER_HINT_NV:
-
- /* GL_NV_point_sprite */
- /* case GL_POINT_SPRITE_NV: */ /* alias */
- case GL_POINT_SPRITE_R_MODE_NV:
-
- /* GL_NV_register_combiners */
- case GL_REGISTER_COMBINERS_NV:
- case GL_NUM_GENERAL_COMBINERS_NV:
- case GL_COLOR_SUM_CLAMP_NV:
- case GL_MAX_GENERAL_COMBINERS_NV:
-
- /* GL_NV_register_combiners2 */
- case GL_PER_STAGE_CONSTANTS_NV:
-
- /* GL_NV_texture_rectangle */
- case GL_TEXTURE_RECTANGLE_NV:
- case GL_TEXTURE_BINDING_RECTANGLE_NV:
- case GL_MAX_RECTANGLE_TEXTURE_SIZE_NV:
- return 1;
-
- /* GL_EXT_secondary_color / GL 1.4 */
- case GL_CURRENT_SECONDARY_COLOR:
-
- /* GL_NV_register_combiners */
- case GL_CONSTANT_COLOR0_NV:
- case GL_CONSTANT_COLOR1_NV:
- return 4;
-
- /* GL_ARB_vertex_blend */
- /* case GL_MODELVIEW0_ARB: */ /* alias */
- /* case GL_MODELVIEW1_ARB: */ /* alias */
- case GL_MODELVIEW2_ARB:
- case GL_MODELVIEW3_ARB:
- case GL_MODELVIEW4_ARB:
- case GL_MODELVIEW5_ARB:
- case GL_MODELVIEW6_ARB:
- case GL_MODELVIEW7_ARB:
- case GL_MODELVIEW8_ARB:
- case GL_MODELVIEW9_ARB:
- case GL_MODELVIEW10_ARB:
- case GL_MODELVIEW11_ARB:
- case GL_MODELVIEW12_ARB:
- case GL_MODELVIEW13_ARB:
- case GL_MODELVIEW14_ARB:
- case GL_MODELVIEW15_ARB:
- case GL_MODELVIEW16_ARB:
- case GL_MODELVIEW17_ARB:
- case GL_MODELVIEW18_ARB:
- case GL_MODELVIEW19_ARB:
- case GL_MODELVIEW20_ARB:
- case GL_MODELVIEW21_ARB:
- case GL_MODELVIEW22_ARB:
- case GL_MODELVIEW23_ARB:
- case GL_MODELVIEW24_ARB:
- case GL_MODELVIEW25_ARB:
- case GL_MODELVIEW26_ARB:
- case GL_MODELVIEW27_ARB:
- case GL_MODELVIEW28_ARB:
- case GL_MODELVIEW29_ARB:
- case GL_MODELVIEW30_ARB:
- case GL_MODELVIEW31_ARB:
-
- /* GL_EXT_vertex_weighting */
- /* case GL_MODELVIEW0_MATRIX_EXT: */ /* alias */
- case GL_MODELVIEW1_MATRIX_EXT:
- return 32;
-
- /* GL_ARB_texture_comrpession / GL 1.3 */
- case GL_COMPRESSED_TEXTURE_FORMATS: {
- GLint temp;
-
- glGetIntegerv( GL_NUM_COMPRESSED_TEXTURE_FORMATS, & temp );
- return temp;
- }
-
default:
return -1;
}
@@ -1087,15 +885,7 @@ GLint __glGetTexLevelParameterfv_size(GLenum pname)
case GL_TEXTURE_ALPHA_SIZE:
case GL_TEXTURE_LUMINANCE_SIZE:
case GL_TEXTURE_INTENSITY_SIZE:
-
- /* GL_ARB_texture_compression / GL 1.3 */
- case GL_TEXTURE_COMPRESSED_IMAGE_SIZE:
- case GL_TEXTURE_COMPRESSED:
-
- /* GL_ARB_depth_texture / GL 1.4 */
- case GL_TEXTURE_DEPTH_SIZE:
return 1;
-
default:
return -1;
}
diff --git a/GL/glx/singlesize.h b/GL/glx/singlesize.h
index 15941ec4b..829338094 100644
--- a/GL/glx/singlesize.h
+++ b/GL/glx/singlesize.h
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/singlesize.h,v 1.3 2001/03/21 16:29:37 dawes Exp $ */
#ifndef _singlesize_h_
#define _singlesize_h_
diff --git a/GL/glx/unpack.h b/GL/glx/unpack.h
index 6984b45ab..62fc43761 100644
--- a/GL/glx/unpack.h
+++ b/GL/glx/unpack.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/GL/glx/unpack.h,v 1.4 2002/01/14 22:47:08 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/GL/glx/unpack.h,v 1.5 2002/10/30 12:52:03 alanh Exp $ */
#ifndef __GLX_unpack_h__
#define __GLX_unpack_h__
diff --git a/GL/glx/xfont.c b/GL/glx/xfont.c
index cb87d552d..3ea767d2b 100644
--- a/GL/glx/xfont.c
+++ b/GL/glx/xfont.c
@@ -1,4 +1,4 @@
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/GL/glx/xfont.c,v 1.3 2001/03/21 16:29:37 dawes Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free