1
- /* $XFree86: xc/programs/Xserver/GL/glx/g_render.c,v 1.10 2004/03/10 18:08:01 tsi Exp $ */
1
+ /* $XFree86: xc/programs/Xserver/GL/glx/g_render.c,v 1.8 2004/02/03 21:34:36 alanh Exp $ */
2
2
/* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED */
3
3
/*
4
4
** License Applicability. Except to the extent portions of this file are
@@ -68,21 +68,11 @@ void __glXDisp_Begin(GLbyte *pc)
68
68
#define __GLX_SWAP_GLdouble (ptr ) __GLX_SWAP_DOUBLE(ptr)
69
69
#define __GLX_SWAP_GLfloat (ptr ) __GLX_SWAP_FLOAT(ptr)
70
70
71
- #define __GLX_DECLARE_SWAP_GLbyte_ARRAY
72
- #define __GLX_DECLARE_SWAP_GLshort_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
73
- #define __GLX_DECLARE_SWAP_GLint_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
74
- #define __GLX_DECLARE_SWAP_GLenum_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
75
- #define __GLX_DECLARE_SWAP_GLubyte_ARRAY
76
- #define __GLX_DECLARE_SWAP_GLushort_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
77
- #define __GLX_DECLARE_SWAP_GLuint_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
78
- #define __GLX_DECLARE_SWAP_GLdouble_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
79
- #define __GLX_DECLARE_SWAP_GLfloat_ARRAY __GLX_DECLARE_SWAP_ARRAY_VARIABLES
80
-
81
- #define __GLX_SWAP_GLbyte_ARRAY (ptr ,count )
71
+ #define __GLX_SWAP_GLbyte_ARRAY (ptr ,count ) (void) swapEnd; (void) swapPC; (void) sw;
82
72
#define __GLX_SWAP_GLshort_ARRAY (ptr ,count ) __GLX_SWAP_SHORT_ARRAY(ptr,count)
83
73
#define __GLX_SWAP_GLint_ARRAY (ptr ,count ) __GLX_SWAP_INT_ARRAY(ptr,count)
84
74
#define __GLX_SWAP_GLenum_ARRAY (ptr ,count ) __GLX_SWAP_INT_ARRAY(ptr,count)
85
- #define __GLX_SWAP_GLubyte_ARRAY (ptr ,count )
75
+ #define __GLX_SWAP_GLubyte_ARRAY (ptr ,count ) (void) swapEnd; (void) swapPC; (void) sw;
86
76
#define __GLX_SWAP_GLushort_ARRAY (ptr ,count ) __GLX_SWAP_SHORT_ARRAY(ptr,count)
87
77
#define __GLX_SWAP_GLuint_ARRAY (ptr ,count ) __GLX_SWAP_INT_ARRAY(ptr,count)
88
78
#define __GLX_SWAP_GLdouble_ARRAY (ptr ,count ) __GLX_SWAP_DOUBLE_ARRAY(ptr,count)
@@ -125,12 +115,28 @@ void __glXDisp_Begin(GLbyte *pc)
125
115
} \
126
116
void __glXDispSwap_ ## name ( GLbyte * pc ) \
127
117
{ \
128
- __GLX_DECLARE_SWAP_ ## type ## _ARRAY; \
118
+ __GLX_DECLARE_SWAP_VARIABLES; \
119
+ __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
129
120
GLX_DO_ALIGN_MAGIC( 3, type ); \
130
121
__GLX_SWAP_ ## type ## _ARRAY(pc, 3); \
131
122
gl ## name ( (type *) pc ); \
132
123
}
133
124
125
+ #define dispatch_template_4 ( name , type ) \
126
+ void __glXDisp_ ## name ( GLbyte * pc ) \
127
+ { \
128
+ GLX_DO_ALIGN_MAGIC( 4, type ); \
129
+ gl ## name ( (type *) pc ); \
130
+ } \
131
+ void __glXDispSwap_ ## name ( GLbyte * pc ) \
132
+ { \
133
+ __GLX_DECLARE_SWAP_VARIABLES; \
134
+ __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
135
+ GLX_DO_ALIGN_MAGIC( 4, type ); \
136
+ __GLX_SWAP_ ## type ## _ARRAY(pc, 4); \
137
+ gl ## name ( (type *) pc ); \
138
+ }
139
+
134
140
#define dispatch_template_4s ( name , type ) \
135
141
void __glXDisp_ ## name ( GLbyte * pc ) \
136
142
{ \
@@ -140,7 +146,8 @@ void __glXDisp_Begin(GLbyte *pc)
140
146
} \
141
147
void __glXDispSwap_ ## name ( GLbyte * pc ) \
142
148
{ \
143
- __GLX_DECLARE_SWAP_ ##type ## _ARRAY; \
149
+ __GLX_DECLARE_SWAP_VARIABLES; \
150
+ __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
144
151
GLX_DO_ALIGN_MAGIC( 4, type ); \
145
152
__GLX_SWAP_ ## type ## _ARRAY(pc, 4); \
146
153
gl ## name ( ((type *) pc)[0], ((type *) pc)[1], \
@@ -177,7 +184,8 @@ void __glXDisp_Begin(GLbyte *pc)
177
184
void __glXDispSwap_ ## name ( GLbyte * pc ) \
178
185
{ \
179
186
GLenum pname; GLint compsize; \
180
- __GLX_DECLARE_SWAP_ ## type ## _ARRAY; \
187
+ __GLX_DECLARE_SWAP_VARIABLES; \
188
+ __GLX_DECLARE_SWAP_ARRAY_VARIABLES; \
181
189
__GLX_SWAP_INT(pc + 0); \
182
190
pname = *(GLenum *)(pc + 0); \
183
191
compsize = __gl ## name ## _size(pname); \
0 commit comments