1706f2543Smrg/*
2706f2543Smrg * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
3706f2543Smrg * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4706f2543Smrg *
5706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a
6706f2543Smrg * copy of this software and associated documentation files (the "Software"),
7706f2543Smrg * to deal in the Software without restriction, including without limitation
8706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the
10706f2543Smrg * Software is furnished to do so, subject to the following conditions:
11706f2543Smrg *
12706f2543Smrg * The above copyright notice including the dates of first publication and
13706f2543Smrg * either this permission notice or a reference to
14706f2543Smrg * http://oss.sgi.com/projects/FreeB/
15706f2543Smrg * shall be included in all copies or substantial portions of the Software.
16706f2543Smrg *
17706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18706f2543Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20706f2543Smrg * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21706f2543Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22706f2543Smrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23706f2543Smrg * SOFTWARE.
24706f2543Smrg *
25706f2543Smrg * Except as contained in this notice, the name of Silicon Graphics, Inc.
26706f2543Smrg * shall not be used in advertising or otherwise to promote the sale, use or
27706f2543Smrg * other dealings in this Software without prior written authorization from
28706f2543Smrg * Silicon Graphics, Inc.
29706f2543Smrg */
30706f2543Smrg
31706f2543Smrg#include "glxserver.h"
32706f2543Smrg#include "glxext.h"
33706f2543Smrg#include "g_disptab.h"
34706f2543Smrg#include "unpack.h"
35706f2543Smrg#include "compsize.h"
36706f2543Smrg
37706f2543Smrgvoid __glXDispSwap_CallList(GLbyte *pc)
38706f2543Smrg{
39706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
40706f2543Smrg
41706f2543Smrg	__GLX_SWAP_INT(pc + 0);
42706f2543Smrg
43706f2543Smrg}
44706f2543Smrg
45706f2543Smrgvoid __glXDispSwap_ListBase(GLbyte *pc)
46706f2543Smrg{
47706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
48706f2543Smrg
49706f2543Smrg	__GLX_SWAP_INT(pc + 0);
50706f2543Smrg
51706f2543Smrg}
52706f2543Smrg
53706f2543Smrgvoid __glXDispSwap_Begin(GLbyte *pc)
54706f2543Smrg{
55706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
56706f2543Smrg
57706f2543Smrg	__GLX_SWAP_INT(pc + 0);
58706f2543Smrg
59706f2543Smrg}
60706f2543Smrg
61706f2543Smrgvoid __glXDispSwap_Color3bv(GLbyte *pc)
62706f2543Smrg{
63706f2543Smrg}
64706f2543Smrg
65706f2543Smrgvoid __glXDispSwap_Color3dv(GLbyte *pc)
66706f2543Smrg{
67706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
68706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
69706f2543Smrg
70706f2543Smrg
71706f2543Smrg#ifdef __GLX_ALIGN64
72706f2543Smrg	if ((unsigned long)(pc) & 7) {
73706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
74706f2543Smrg	    pc -= 4;
75706f2543Smrg	}
76706f2543Smrg#endif
77706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
78706f2543Smrg
79706f2543Smrg}
80706f2543Smrg
81706f2543Smrgvoid __glXDispSwap_Color3fv(GLbyte *pc)
82706f2543Smrg{
83706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
84706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
85706f2543Smrg
86706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
87706f2543Smrg}
88706f2543Smrg
89706f2543Smrgvoid __glXDispSwap_Color3iv(GLbyte *pc)
90706f2543Smrg{
91706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
92706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
93706f2543Smrg
94706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
95706f2543Smrg
96706f2543Smrg}
97706f2543Smrg
98706f2543Smrgvoid __glXDispSwap_Color3sv(GLbyte *pc)
99706f2543Smrg{
100706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
101706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
102706f2543Smrg
103706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
104706f2543Smrg
105706f2543Smrg}
106706f2543Smrg
107706f2543Smrgvoid __glXDispSwap_Color3ubv(GLbyte *pc)
108706f2543Smrg{
109706f2543Smrg}
110706f2543Smrg
111706f2543Smrgvoid __glXDispSwap_Color3uiv(GLbyte *pc)
112706f2543Smrg{
113706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
114706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
115706f2543Smrg
116706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
117706f2543Smrg}
118706f2543Smrg
119706f2543Smrgvoid __glXDispSwap_Color3usv(GLbyte *pc)
120706f2543Smrg{
121706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
122706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
123706f2543Smrg
124706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
125706f2543Smrg}
126706f2543Smrg
127706f2543Smrgvoid __glXDispSwap_Color4bv(GLbyte *pc)
128706f2543Smrg{
129706f2543Smrg}
130706f2543Smrg
131706f2543Smrgvoid __glXDispSwap_Color4dv(GLbyte *pc)
132706f2543Smrg{
133706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
134706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
135706f2543Smrg
136706f2543Smrg
137706f2543Smrg#ifdef __GLX_ALIGN64
138706f2543Smrg	if ((unsigned long)(pc) & 7) {
139706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
140706f2543Smrg	    pc -= 4;
141706f2543Smrg	}
142706f2543Smrg#endif
143706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
144706f2543Smrg}
145706f2543Smrg
146706f2543Smrgvoid __glXDispSwap_Color4fv(GLbyte *pc)
147706f2543Smrg{
148706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
149706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
150706f2543Smrg
151706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
152706f2543Smrg
153706f2543Smrg}
154706f2543Smrg
155706f2543Smrgvoid __glXDispSwap_Color4iv(GLbyte *pc)
156706f2543Smrg{
157706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
158706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
159706f2543Smrg
160706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 4);
161706f2543Smrg
162706f2543Smrg}
163706f2543Smrg
164706f2543Smrgvoid __glXDispSwap_Color4sv(GLbyte *pc)
165706f2543Smrg{
166706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
167706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
168706f2543Smrg
169706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
170706f2543Smrg
171706f2543Smrg}
172706f2543Smrg
173706f2543Smrgvoid __glXDispSwap_Color4ubv(GLbyte *pc)
174706f2543Smrg{
175706f2543Smrg
176706f2543Smrg}
177706f2543Smrg
178706f2543Smrgvoid __glXDispSwap_Color4uiv(GLbyte *pc)
179706f2543Smrg{
180706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
181706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
182706f2543Smrg
183706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 4);
184706f2543Smrg
185706f2543Smrg}
186706f2543Smrg
187706f2543Smrgvoid __glXDispSwap_Color4usv(GLbyte *pc)
188706f2543Smrg{
189706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
190706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
191706f2543Smrg
192706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
193706f2543Smrg
194706f2543Smrg}
195706f2543Smrg
196706f2543Smrgvoid __glXDispSwap_EdgeFlagv(GLbyte *pc)
197706f2543Smrg{
198706f2543Smrg}
199706f2543Smrg
200706f2543Smrgvoid __glXDispSwap_End(GLbyte *pc)
201706f2543Smrg{
202706f2543Smrg}
203706f2543Smrg
204706f2543Smrgvoid __glXDispSwap_Indexdv(GLbyte *pc)
205706f2543Smrg{
206706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
207706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
208706f2543Smrg
209706f2543Smrg
210706f2543Smrg#ifdef __GLX_ALIGN64
211706f2543Smrg	if ((unsigned long)(pc) & 7) {
212706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 8);
213706f2543Smrg	    pc -= 4;
214706f2543Smrg	}
215706f2543Smrg#endif
216706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
217706f2543Smrg
218706f2543Smrg}
219706f2543Smrg
220706f2543Smrgvoid __glXDispSwap_Indexfv(GLbyte *pc)
221706f2543Smrg{
222706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
223706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
224706f2543Smrg
225706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
226706f2543Smrg
227706f2543Smrg}
228706f2543Smrg
229706f2543Smrgvoid __glXDispSwap_Indexiv(GLbyte *pc)
230706f2543Smrg{
231706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
232706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
233706f2543Smrg
234706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 1);
235706f2543Smrg
236706f2543Smrg}
237706f2543Smrg
238706f2543Smrgvoid __glXDispSwap_Indexsv(GLbyte *pc)
239706f2543Smrg{
240706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
241706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
242706f2543Smrg
243706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 1);
244706f2543Smrg
245706f2543Smrg}
246706f2543Smrg
247706f2543Smrgvoid __glXDispSwap_Normal3bv(GLbyte *pc)
248706f2543Smrg{
249706f2543Smrg}
250706f2543Smrg
251706f2543Smrgvoid __glXDispSwap_Normal3dv(GLbyte *pc)
252706f2543Smrg{
253706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
254706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
255706f2543Smrg
256706f2543Smrg
257706f2543Smrg#ifdef __GLX_ALIGN64
258706f2543Smrg	if ((unsigned long)(pc) & 7) {
259706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
260706f2543Smrg	    pc -= 4;
261706f2543Smrg	}
262706f2543Smrg#endif
263706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
264706f2543Smrg
265706f2543Smrg}
266706f2543Smrg
267706f2543Smrgvoid __glXDispSwap_Normal3fv(GLbyte *pc)
268706f2543Smrg{
269706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
270706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
271706f2543Smrg
272706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
273706f2543Smrg
274706f2543Smrg}
275706f2543Smrg
276706f2543Smrgvoid __glXDispSwap_Normal3iv(GLbyte *pc)
277706f2543Smrg{
278706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
279706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
280706f2543Smrg
281706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
282706f2543Smrg
283706f2543Smrg}
284706f2543Smrg
285706f2543Smrgvoid __glXDispSwap_Normal3sv(GLbyte *pc)
286706f2543Smrg{
287706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
288706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
289706f2543Smrg
290706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
291706f2543Smrg
292706f2543Smrg}
293706f2543Smrg
294706f2543Smrgvoid __glXDispSwap_RasterPos2dv(GLbyte *pc)
295706f2543Smrg{
296706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
297706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
298706f2543Smrg
299706f2543Smrg
300706f2543Smrg#ifdef __GLX_ALIGN64
301706f2543Smrg	if ((unsigned long)(pc) & 7) {
302706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
303706f2543Smrg	    pc -= 4;
304706f2543Smrg	}
305706f2543Smrg#endif
306706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
307706f2543Smrg
308706f2543Smrg}
309706f2543Smrg
310706f2543Smrgvoid __glXDispSwap_RasterPos2fv(GLbyte *pc)
311706f2543Smrg{
312706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
313706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
314706f2543Smrg
315706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
316706f2543Smrg
317706f2543Smrg}
318706f2543Smrg
319706f2543Smrgvoid __glXDispSwap_RasterPos2iv(GLbyte *pc)
320706f2543Smrg{
321706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
322706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
323706f2543Smrg
324706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 2);
325706f2543Smrg
326706f2543Smrg}
327706f2543Smrg
328706f2543Smrgvoid __glXDispSwap_RasterPos2sv(GLbyte *pc)
329706f2543Smrg{
330706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
331706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
332706f2543Smrg
333706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
334706f2543Smrg
335706f2543Smrg}
336706f2543Smrg
337706f2543Smrgvoid __glXDispSwap_RasterPos3dv(GLbyte *pc)
338706f2543Smrg{
339706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
340706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
341706f2543Smrg
342706f2543Smrg
343706f2543Smrg#ifdef __GLX_ALIGN64
344706f2543Smrg	if ((unsigned long)(pc) & 7) {
345706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
346706f2543Smrg	    pc -= 4;
347706f2543Smrg	}
348706f2543Smrg#endif
349706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
350706f2543Smrg
351706f2543Smrg}
352706f2543Smrg
353706f2543Smrgvoid __glXDispSwap_RasterPos3fv(GLbyte *pc)
354706f2543Smrg{
355706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
356706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
357706f2543Smrg
358706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
359706f2543Smrg
360706f2543Smrg}
361706f2543Smrg
362706f2543Smrgvoid __glXDispSwap_RasterPos3iv(GLbyte *pc)
363706f2543Smrg{
364706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
365706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
366706f2543Smrg
367706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
368706f2543Smrg
369706f2543Smrg}
370706f2543Smrg
371706f2543Smrgvoid __glXDispSwap_RasterPos3sv(GLbyte *pc)
372706f2543Smrg{
373706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
374706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
375706f2543Smrg
376706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
377706f2543Smrg
378706f2543Smrg}
379706f2543Smrg
380706f2543Smrgvoid __glXDispSwap_RasterPos4dv(GLbyte *pc)
381706f2543Smrg{
382706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
383706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
384706f2543Smrg
385706f2543Smrg
386706f2543Smrg#ifdef __GLX_ALIGN64
387706f2543Smrg	if ((unsigned long)(pc) & 7) {
388706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
389706f2543Smrg	    pc -= 4;
390706f2543Smrg	}
391706f2543Smrg#endif
392706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
393706f2543Smrg
394706f2543Smrg}
395706f2543Smrg
396706f2543Smrgvoid __glXDispSwap_RasterPos4fv(GLbyte *pc)
397706f2543Smrg{
398706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
399706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
400706f2543Smrg
401706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
402706f2543Smrg
403706f2543Smrg}
404706f2543Smrg
405706f2543Smrgvoid __glXDispSwap_RasterPos4iv(GLbyte *pc)
406706f2543Smrg{
407706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
408706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
409706f2543Smrg
410706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 4);
411706f2543Smrg
412706f2543Smrg}
413706f2543Smrg
414706f2543Smrgvoid __glXDispSwap_RasterPos4sv(GLbyte *pc)
415706f2543Smrg{
416706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
417706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
418706f2543Smrg
419706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
420706f2543Smrg
421706f2543Smrg}
422706f2543Smrg
423706f2543Smrgvoid __glXDispSwap_Rectdv(GLbyte *pc)
424706f2543Smrg{
425706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
426706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
427706f2543Smrg
428706f2543Smrg
429706f2543Smrg#ifdef __GLX_ALIGN64
430706f2543Smrg	if ((unsigned long)(pc) & 7) {
431706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
432706f2543Smrg	    pc -= 4;
433706f2543Smrg	}
434706f2543Smrg#endif
435706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
436706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 16, 2);
437706f2543Smrg
438706f2543Smrg}
439706f2543Smrg
440706f2543Smrgvoid __glXDispSwap_Rectfv(GLbyte *pc)
441706f2543Smrg{
442706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
443706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
444706f2543Smrg
445706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
446706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, 2);
447706f2543Smrg
448706f2543Smrg}
449706f2543Smrg
450706f2543Smrgvoid __glXDispSwap_Rectiv(GLbyte *pc)
451706f2543Smrg{
452706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
453706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
454706f2543Smrg
455706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 2);
456706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, 2);
457706f2543Smrg
458706f2543Smrg}
459706f2543Smrg
460706f2543Smrgvoid __glXDispSwap_Rectsv(GLbyte *pc)
461706f2543Smrg{
462706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
463706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
464706f2543Smrg
465706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
466706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 4, 2);
467706f2543Smrg
468706f2543Smrg}
469706f2543Smrg
470706f2543Smrgvoid __glXDispSwap_TexCoord1dv(GLbyte *pc)
471706f2543Smrg{
472706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
473706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
474706f2543Smrg
475706f2543Smrg
476706f2543Smrg#ifdef __GLX_ALIGN64
477706f2543Smrg	if ((unsigned long)(pc) & 7) {
478706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 8);
479706f2543Smrg	    pc -= 4;
480706f2543Smrg	}
481706f2543Smrg#endif
482706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
483706f2543Smrg
484706f2543Smrg}
485706f2543Smrg
486706f2543Smrgvoid __glXDispSwap_TexCoord1fv(GLbyte *pc)
487706f2543Smrg{
488706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
489706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
490706f2543Smrg
491706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
492706f2543Smrg
493706f2543Smrg}
494706f2543Smrg
495706f2543Smrgvoid __glXDispSwap_TexCoord1iv(GLbyte *pc)
496706f2543Smrg{
497706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
498706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
499706f2543Smrg
500706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 1);
501706f2543Smrg
502706f2543Smrg}
503706f2543Smrg
504706f2543Smrgvoid __glXDispSwap_TexCoord1sv(GLbyte *pc)
505706f2543Smrg{
506706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
507706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
508706f2543Smrg
509706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 1);
510706f2543Smrg
511706f2543Smrg}
512706f2543Smrg
513706f2543Smrgvoid __glXDispSwap_TexCoord2dv(GLbyte *pc)
514706f2543Smrg{
515706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
516706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
517706f2543Smrg
518706f2543Smrg
519706f2543Smrg#ifdef __GLX_ALIGN64
520706f2543Smrg	if ((unsigned long)(pc) & 7) {
521706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
522706f2543Smrg	    pc -= 4;
523706f2543Smrg	}
524706f2543Smrg#endif
525706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
526706f2543Smrg
527706f2543Smrg}
528706f2543Smrg
529706f2543Smrgvoid __glXDispSwap_TexCoord2fv(GLbyte *pc)
530706f2543Smrg{
531706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
532706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
533706f2543Smrg
534706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
535706f2543Smrg
536706f2543Smrg}
537706f2543Smrg
538706f2543Smrgvoid __glXDispSwap_TexCoord2iv(GLbyte *pc)
539706f2543Smrg{
540706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
541706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
542706f2543Smrg
543706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 2);
544706f2543Smrg
545706f2543Smrg}
546706f2543Smrg
547706f2543Smrgvoid __glXDispSwap_TexCoord2sv(GLbyte *pc)
548706f2543Smrg{
549706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
550706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
551706f2543Smrg
552706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
553706f2543Smrg
554706f2543Smrg}
555706f2543Smrg
556706f2543Smrgvoid __glXDispSwap_TexCoord3dv(GLbyte *pc)
557706f2543Smrg{
558706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
559706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
560706f2543Smrg
561706f2543Smrg
562706f2543Smrg#ifdef __GLX_ALIGN64
563706f2543Smrg	if ((unsigned long)(pc) & 7) {
564706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
565706f2543Smrg	    pc -= 4;
566706f2543Smrg	}
567706f2543Smrg#endif
568706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
569706f2543Smrg
570706f2543Smrg}
571706f2543Smrg
572706f2543Smrgvoid __glXDispSwap_TexCoord3fv(GLbyte *pc)
573706f2543Smrg{
574706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
575706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
576706f2543Smrg
577706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
578706f2543Smrg
579706f2543Smrg}
580706f2543Smrg
581706f2543Smrgvoid __glXDispSwap_TexCoord3iv(GLbyte *pc)
582706f2543Smrg{
583706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
584706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
585706f2543Smrg
586706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
587706f2543Smrg
588706f2543Smrg}
589706f2543Smrg
590706f2543Smrgvoid __glXDispSwap_TexCoord3sv(GLbyte *pc)
591706f2543Smrg{
592706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
593706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
594706f2543Smrg
595706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
596706f2543Smrg
597706f2543Smrg}
598706f2543Smrg
599706f2543Smrgvoid __glXDispSwap_TexCoord4dv(GLbyte *pc)
600706f2543Smrg{
601706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
602706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
603706f2543Smrg
604706f2543Smrg
605706f2543Smrg#ifdef __GLX_ALIGN64
606706f2543Smrg	if ((unsigned long)(pc) & 7) {
607706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
608706f2543Smrg	    pc -= 4;
609706f2543Smrg	}
610706f2543Smrg#endif
611706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
612706f2543Smrg
613706f2543Smrg}
614706f2543Smrg
615706f2543Smrgvoid __glXDispSwap_TexCoord4fv(GLbyte *pc)
616706f2543Smrg{
617706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
618706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
619706f2543Smrg
620706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
621706f2543Smrg
622706f2543Smrg}
623706f2543Smrg
624706f2543Smrgvoid __glXDispSwap_TexCoord4iv(GLbyte *pc)
625706f2543Smrg{
626706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
627706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
628706f2543Smrg
629706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 4);
630706f2543Smrg
631706f2543Smrg}
632706f2543Smrg
633706f2543Smrgvoid __glXDispSwap_TexCoord4sv(GLbyte *pc)
634706f2543Smrg{
635706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
636706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
637706f2543Smrg
638706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
639706f2543Smrg
640706f2543Smrg}
641706f2543Smrg
642706f2543Smrgvoid __glXDispSwap_Vertex2dv(GLbyte *pc)
643706f2543Smrg{
644706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
645706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
646706f2543Smrg
647706f2543Smrg
648706f2543Smrg#ifdef __GLX_ALIGN64
649706f2543Smrg	if ((unsigned long)(pc) & 7) {
650706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
651706f2543Smrg	    pc -= 4;
652706f2543Smrg	}
653706f2543Smrg#endif
654706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
655706f2543Smrg
656706f2543Smrg}
657706f2543Smrg
658706f2543Smrgvoid __glXDispSwap_Vertex2fv(GLbyte *pc)
659706f2543Smrg{
660706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
661706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
662706f2543Smrg
663706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
664706f2543Smrg
665706f2543Smrg}
666706f2543Smrg
667706f2543Smrgvoid __glXDispSwap_Vertex2iv(GLbyte *pc)
668706f2543Smrg{
669706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
670706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
671706f2543Smrg
672706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 2);
673706f2543Smrg
674706f2543Smrg}
675706f2543Smrg
676706f2543Smrgvoid __glXDispSwap_Vertex2sv(GLbyte *pc)
677706f2543Smrg{
678706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
679706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
680706f2543Smrg
681706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
682706f2543Smrg
683706f2543Smrg}
684706f2543Smrg
685706f2543Smrgvoid __glXDispSwap_Vertex3dv(GLbyte *pc)
686706f2543Smrg{
687706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
688706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
689706f2543Smrg
690706f2543Smrg
691706f2543Smrg#ifdef __GLX_ALIGN64
692706f2543Smrg	if ((unsigned long)(pc) & 7) {
693706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
694706f2543Smrg	    pc -= 4;
695706f2543Smrg	}
696706f2543Smrg#endif
697706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
698706f2543Smrg
699706f2543Smrg}
700706f2543Smrg
701706f2543Smrgvoid __glXDispSwap_Vertex3fv(GLbyte *pc)
702706f2543Smrg{
703706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
704706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
705706f2543Smrg
706706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
707706f2543Smrg
708706f2543Smrg}
709706f2543Smrg
710706f2543Smrgvoid __glXDispSwap_Vertex3iv(GLbyte *pc)
711706f2543Smrg{
712706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
713706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
714706f2543Smrg
715706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 3);
716706f2543Smrg
717706f2543Smrg}
718706f2543Smrg
719706f2543Smrgvoid __glXDispSwap_Vertex3sv(GLbyte *pc)
720706f2543Smrg{
721706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
722706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
723706f2543Smrg
724706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
725706f2543Smrg
726706f2543Smrg}
727706f2543Smrg
728706f2543Smrgvoid __glXDispSwap_Vertex4dv(GLbyte *pc)
729706f2543Smrg{
730706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
731706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
732706f2543Smrg
733706f2543Smrg
734706f2543Smrg#ifdef __GLX_ALIGN64
735706f2543Smrg	if ((unsigned long)(pc) & 7) {
736706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
737706f2543Smrg	    pc -= 4;
738706f2543Smrg	}
739706f2543Smrg#endif
740706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
741706f2543Smrg
742706f2543Smrg}
743706f2543Smrg
744706f2543Smrgvoid __glXDispSwap_Vertex4fv(GLbyte *pc)
745706f2543Smrg{
746706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
747706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
748706f2543Smrg
749706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
750706f2543Smrg
751706f2543Smrg}
752706f2543Smrg
753706f2543Smrgvoid __glXDispSwap_Vertex4iv(GLbyte *pc)
754706f2543Smrg{
755706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
756706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
757706f2543Smrg
758706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 0, 4);
759706f2543Smrg
760706f2543Smrg}
761706f2543Smrg
762706f2543Smrgvoid __glXDispSwap_Vertex4sv(GLbyte *pc)
763706f2543Smrg{
764706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
765706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
766706f2543Smrg
767706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
768706f2543Smrg
769706f2543Smrg}
770706f2543Smrg
771706f2543Smrgvoid __glXDispSwap_ClipPlane(GLbyte *pc)
772706f2543Smrg{
773706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
774706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
775706f2543Smrg
776706f2543Smrg
777706f2543Smrg#ifdef __GLX_ALIGN64
778706f2543Smrg	if ((unsigned long)(pc) & 7) {
779706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 36);
780706f2543Smrg	    pc -= 4;
781706f2543Smrg	}
782706f2543Smrg#endif
783706f2543Smrg	__GLX_SWAP_INT(pc + 32);
784706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
785706f2543Smrg
786706f2543Smrg}
787706f2543Smrg
788706f2543Smrgvoid __glXDispSwap_ColorMaterial(GLbyte *pc)
789706f2543Smrg{
790706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
791706f2543Smrg
792706f2543Smrg	__GLX_SWAP_INT(pc + 0);
793706f2543Smrg	__GLX_SWAP_INT(pc + 4);
794706f2543Smrg
795706f2543Smrg}
796706f2543Smrg
797706f2543Smrgvoid __glXDispSwap_CullFace(GLbyte *pc)
798706f2543Smrg{
799706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
800706f2543Smrg
801706f2543Smrg	__GLX_SWAP_INT(pc + 0);
802706f2543Smrg
803706f2543Smrg}
804706f2543Smrg
805706f2543Smrgvoid __glXDispSwap_Fogf(GLbyte *pc)
806706f2543Smrg{
807706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
808706f2543Smrg
809706f2543Smrg	__GLX_SWAP_INT(pc + 0);
810706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
811706f2543Smrg
812706f2543Smrg}
813706f2543Smrg
814706f2543Smrgvoid __glXDispSwap_Fogfv(GLbyte *pc)
815706f2543Smrg{
816706f2543Smrg	GLenum pname;
817706f2543Smrg	GLint compsize;
818706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
819706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
820706f2543Smrg
821706f2543Smrg	__GLX_SWAP_INT(pc + 0);
822706f2543Smrg	pname = *(GLenum *)(pc + 0);
823706f2543Smrg	compsize = __glFogfv_size(pname);
824706f2543Smrg	if (compsize < 0) compsize = 0;
825706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, compsize);
826706f2543Smrg
827706f2543Smrg}
828706f2543Smrg
829706f2543Smrgvoid __glXDispSwap_Fogi(GLbyte *pc)
830706f2543Smrg{
831706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
832706f2543Smrg
833706f2543Smrg	__GLX_SWAP_INT(pc + 0);
834706f2543Smrg	__GLX_SWAP_INT(pc + 4);
835706f2543Smrg
836706f2543Smrg}
837706f2543Smrg
838706f2543Smrgvoid __glXDispSwap_Fogiv(GLbyte *pc)
839706f2543Smrg{
840706f2543Smrg	GLenum pname;
841706f2543Smrg	GLint compsize;
842706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
843706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
844706f2543Smrg
845706f2543Smrg	__GLX_SWAP_INT(pc + 0);
846706f2543Smrg	pname = *(GLenum *)(pc + 0);
847706f2543Smrg	compsize = __glFogiv_size(pname);
848706f2543Smrg	if (compsize < 0) compsize = 0;
849706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, compsize);
850706f2543Smrg
851706f2543Smrg}
852706f2543Smrg
853706f2543Smrgvoid __glXDispSwap_FrontFace(GLbyte *pc)
854706f2543Smrg{
855706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
856706f2543Smrg
857706f2543Smrg	__GLX_SWAP_INT(pc + 0);
858706f2543Smrg
859706f2543Smrg}
860706f2543Smrg
861706f2543Smrgvoid __glXDispSwap_Hint(GLbyte *pc)
862706f2543Smrg{
863706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
864706f2543Smrg
865706f2543Smrg	__GLX_SWAP_INT(pc + 0);
866706f2543Smrg	__GLX_SWAP_INT(pc + 4);
867706f2543Smrg
868706f2543Smrg}
869706f2543Smrg
870706f2543Smrgvoid __glXDispSwap_Lightf(GLbyte *pc)
871706f2543Smrg{
872706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
873706f2543Smrg
874706f2543Smrg	__GLX_SWAP_INT(pc + 0);
875706f2543Smrg	__GLX_SWAP_INT(pc + 4);
876706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
877706f2543Smrg
878706f2543Smrg}
879706f2543Smrg
880706f2543Smrgvoid __glXDispSwap_Lightfv(GLbyte *pc)
881706f2543Smrg{
882706f2543Smrg	GLenum pname;
883706f2543Smrg	GLint compsize;
884706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
885706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
886706f2543Smrg
887706f2543Smrg	__GLX_SWAP_INT(pc + 4);
888706f2543Smrg	pname = *(GLenum *)(pc + 4);
889706f2543Smrg	compsize = __glLightfv_size(pname);
890706f2543Smrg	if (compsize < 0) compsize = 0;
891706f2543Smrg	__GLX_SWAP_INT(pc + 0);
892706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
893706f2543Smrg
894706f2543Smrg}
895706f2543Smrg
896706f2543Smrgvoid __glXDispSwap_Lighti(GLbyte *pc)
897706f2543Smrg{
898706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
899706f2543Smrg
900706f2543Smrg	__GLX_SWAP_INT(pc + 0);
901706f2543Smrg	__GLX_SWAP_INT(pc + 4);
902706f2543Smrg	__GLX_SWAP_INT(pc + 8);
903706f2543Smrg
904706f2543Smrg}
905706f2543Smrg
906706f2543Smrgvoid __glXDispSwap_Lightiv(GLbyte *pc)
907706f2543Smrg{
908706f2543Smrg	GLenum pname;
909706f2543Smrg	GLint compsize;
910706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
911706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
912706f2543Smrg
913706f2543Smrg	__GLX_SWAP_INT(pc + 4);
914706f2543Smrg	pname = *(GLenum *)(pc + 4);
915706f2543Smrg	compsize = __glLightiv_size(pname);
916706f2543Smrg	if (compsize < 0) compsize = 0;
917706f2543Smrg	__GLX_SWAP_INT(pc + 0);
918706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
919706f2543Smrg
920706f2543Smrg}
921706f2543Smrg
922706f2543Smrgvoid __glXDispSwap_LightModelf(GLbyte *pc)
923706f2543Smrg{
924706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
925706f2543Smrg
926706f2543Smrg	__GLX_SWAP_INT(pc + 0);
927706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
928706f2543Smrg
929706f2543Smrg}
930706f2543Smrg
931706f2543Smrgvoid __glXDispSwap_LightModelfv(GLbyte *pc)
932706f2543Smrg{
933706f2543Smrg	GLenum pname;
934706f2543Smrg	GLint compsize;
935706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
936706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
937706f2543Smrg
938706f2543Smrg	__GLX_SWAP_INT(pc + 0);
939706f2543Smrg	pname = *(GLenum *)(pc + 0);
940706f2543Smrg	compsize = __glLightModelfv_size(pname);
941706f2543Smrg	if (compsize < 0) compsize = 0;
942706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, compsize);
943706f2543Smrg
944706f2543Smrg}
945706f2543Smrg
946706f2543Smrgvoid __glXDispSwap_LightModeli(GLbyte *pc)
947706f2543Smrg{
948706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
949706f2543Smrg
950706f2543Smrg	__GLX_SWAP_INT(pc + 0);
951706f2543Smrg	__GLX_SWAP_INT(pc + 4);
952706f2543Smrg
953706f2543Smrg}
954706f2543Smrg
955706f2543Smrgvoid __glXDispSwap_LightModeliv(GLbyte *pc)
956706f2543Smrg{
957706f2543Smrg	GLenum pname;
958706f2543Smrg	GLint compsize;
959706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
960706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
961706f2543Smrg
962706f2543Smrg	__GLX_SWAP_INT(pc + 0);
963706f2543Smrg	pname = *(GLenum *)(pc + 0);
964706f2543Smrg	compsize = __glLightModeliv_size(pname);
965706f2543Smrg	if (compsize < 0) compsize = 0;
966706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, compsize);
967706f2543Smrg
968706f2543Smrg}
969706f2543Smrg
970706f2543Smrgvoid __glXDispSwap_LineStipple(GLbyte *pc)
971706f2543Smrg{
972706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
973706f2543Smrg
974706f2543Smrg	__GLX_SWAP_INT(pc + 0);
975706f2543Smrg	__GLX_SWAP_SHORT(pc + 4);
976706f2543Smrg
977706f2543Smrg}
978706f2543Smrg
979706f2543Smrgvoid __glXDispSwap_LineWidth(GLbyte *pc)
980706f2543Smrg{
981706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
982706f2543Smrg
983706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
984706f2543Smrg
985706f2543Smrg}
986706f2543Smrg
987706f2543Smrgvoid __glXDispSwap_Materialf(GLbyte *pc)
988706f2543Smrg{
989706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
990706f2543Smrg
991706f2543Smrg	__GLX_SWAP_INT(pc + 0);
992706f2543Smrg	__GLX_SWAP_INT(pc + 4);
993706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
994706f2543Smrg
995706f2543Smrg}
996706f2543Smrg
997706f2543Smrgvoid __glXDispSwap_Materialfv(GLbyte *pc)
998706f2543Smrg{
999706f2543Smrg	GLenum pname;
1000706f2543Smrg	GLint compsize;
1001706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1002706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1003706f2543Smrg
1004706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1005706f2543Smrg	pname = *(GLenum *)(pc + 4);
1006706f2543Smrg	compsize = __glMaterialfv_size(pname);
1007706f2543Smrg	if (compsize < 0) compsize = 0;
1008706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1009706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
1010706f2543Smrg
1011706f2543Smrg}
1012706f2543Smrg
1013706f2543Smrgvoid __glXDispSwap_Materiali(GLbyte *pc)
1014706f2543Smrg{
1015706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1016706f2543Smrg
1017706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1018706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1019706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1020706f2543Smrg
1021706f2543Smrg}
1022706f2543Smrg
1023706f2543Smrgvoid __glXDispSwap_Materialiv(GLbyte *pc)
1024706f2543Smrg{
1025706f2543Smrg	GLenum pname;
1026706f2543Smrg	GLint compsize;
1027706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1028706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1029706f2543Smrg
1030706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1031706f2543Smrg	pname = *(GLenum *)(pc + 4);
1032706f2543Smrg	compsize = __glMaterialiv_size(pname);
1033706f2543Smrg	if (compsize < 0) compsize = 0;
1034706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1035706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
1036706f2543Smrg
1037706f2543Smrg}
1038706f2543Smrg
1039706f2543Smrgvoid __glXDispSwap_PointSize(GLbyte *pc)
1040706f2543Smrg{
1041706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1042706f2543Smrg
1043706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1044706f2543Smrg
1045706f2543Smrg}
1046706f2543Smrg
1047706f2543Smrgvoid __glXDispSwap_PolygonMode(GLbyte *pc)
1048706f2543Smrg{
1049706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1050706f2543Smrg
1051706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1052706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1053706f2543Smrg
1054706f2543Smrg}
1055706f2543Smrg
1056706f2543Smrgvoid __glXDispSwap_Scissor(GLbyte *pc)
1057706f2543Smrg{
1058706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1059706f2543Smrg
1060706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1061706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1062706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1063706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1064706f2543Smrg
1065706f2543Smrg}
1066706f2543Smrg
1067706f2543Smrgvoid __glXDispSwap_ShadeModel(GLbyte *pc)
1068706f2543Smrg{
1069706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1070706f2543Smrg
1071706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1072706f2543Smrg
1073706f2543Smrg}
1074706f2543Smrg
1075706f2543Smrgvoid __glXDispSwap_TexParameterf(GLbyte *pc)
1076706f2543Smrg{
1077706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1078706f2543Smrg
1079706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1080706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1081706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1082706f2543Smrg
1083706f2543Smrg}
1084706f2543Smrg
1085706f2543Smrgvoid __glXDispSwap_TexParameterfv(GLbyte *pc)
1086706f2543Smrg{
1087706f2543Smrg	GLenum pname;
1088706f2543Smrg	GLint compsize;
1089706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1090706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1091706f2543Smrg
1092706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1093706f2543Smrg	pname = *(GLenum *)(pc + 4);
1094706f2543Smrg	compsize = __glTexParameterfv_size(pname);
1095706f2543Smrg	if (compsize < 0) compsize = 0;
1096706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1097706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
1098706f2543Smrg
1099706f2543Smrg}
1100706f2543Smrg
1101706f2543Smrgvoid __glXDispSwap_TexParameteri(GLbyte *pc)
1102706f2543Smrg{
1103706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1104706f2543Smrg
1105706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1106706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1107706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1108706f2543Smrg
1109706f2543Smrg}
1110706f2543Smrg
1111706f2543Smrgvoid __glXDispSwap_TexParameteriv(GLbyte *pc)
1112706f2543Smrg{
1113706f2543Smrg	GLenum pname;
1114706f2543Smrg	GLint compsize;
1115706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1116706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1117706f2543Smrg
1118706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1119706f2543Smrg	pname = *(GLenum *)(pc + 4);
1120706f2543Smrg	compsize = __glTexParameteriv_size(pname);
1121706f2543Smrg	if (compsize < 0) compsize = 0;
1122706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1123706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
1124706f2543Smrg
1125706f2543Smrg}
1126706f2543Smrg
1127706f2543Smrgvoid __glXDispSwap_TexEnvf(GLbyte *pc)
1128706f2543Smrg{
1129706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1130706f2543Smrg
1131706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1132706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1133706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1134706f2543Smrg
1135706f2543Smrg}
1136706f2543Smrg
1137706f2543Smrgvoid __glXDispSwap_TexEnvfv(GLbyte *pc)
1138706f2543Smrg{
1139706f2543Smrg	GLenum pname;
1140706f2543Smrg	GLint compsize;
1141706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1142706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1143706f2543Smrg
1144706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1145706f2543Smrg	pname = *(GLenum *)(pc + 4);
1146706f2543Smrg	compsize = __glTexEnvfv_size(pname);
1147706f2543Smrg	if (compsize < 0) compsize = 0;
1148706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1149706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
1150706f2543Smrg
1151706f2543Smrg}
1152706f2543Smrg
1153706f2543Smrgvoid __glXDispSwap_TexEnvi(GLbyte *pc)
1154706f2543Smrg{
1155706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1156706f2543Smrg
1157706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1158706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1159706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1160706f2543Smrg
1161706f2543Smrg}
1162706f2543Smrg
1163706f2543Smrgvoid __glXDispSwap_TexEnviv(GLbyte *pc)
1164706f2543Smrg{
1165706f2543Smrg	GLenum pname;
1166706f2543Smrg	GLint compsize;
1167706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1168706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1169706f2543Smrg
1170706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1171706f2543Smrg	pname = *(GLenum *)(pc + 4);
1172706f2543Smrg	compsize = __glTexEnviv_size(pname);
1173706f2543Smrg	if (compsize < 0) compsize = 0;
1174706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1175706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
1176706f2543Smrg
1177706f2543Smrg}
1178706f2543Smrg
1179706f2543Smrgvoid __glXDispSwap_TexGend(GLbyte *pc)
1180706f2543Smrg{
1181706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1182706f2543Smrg
1183706f2543Smrg
1184706f2543Smrg#ifdef __GLX_ALIGN64
1185706f2543Smrg	if ((unsigned long)(pc) & 7) {
1186706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
1187706f2543Smrg	    pc -= 4;
1188706f2543Smrg	}
1189706f2543Smrg#endif
1190706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1191706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1192706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1193706f2543Smrg
1194706f2543Smrg}
1195706f2543Smrg
1196706f2543Smrgvoid __glXDispSwap_TexGendv(GLbyte *pc)
1197706f2543Smrg{
1198706f2543Smrg	GLenum pname;
1199706f2543Smrg	GLint cmdlen;
1200706f2543Smrg	GLint compsize;
1201706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1202706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1203706f2543Smrg
1204706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1205706f2543Smrg	pname = *(GLenum *)(pc + 4);
1206706f2543Smrg	compsize = __glTexGendv_size(pname);
1207706f2543Smrg	if (compsize < 0) compsize = 0;
1208706f2543Smrg	cmdlen = __GLX_PAD(8+compsize*8);
1209706f2543Smrg
1210706f2543Smrg#ifdef __GLX_ALIGN64
1211706f2543Smrg	if ((unsigned long)(pc) & 7) {
1212706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, cmdlen);
1213706f2543Smrg	    pc -= 4;
1214706f2543Smrg	}
1215706f2543Smrg#endif
1216706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1217706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 8, compsize);
1218706f2543Smrg
1219706f2543Smrg}
1220706f2543Smrg
1221706f2543Smrgvoid __glXDispSwap_TexGenf(GLbyte *pc)
1222706f2543Smrg{
1223706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1224706f2543Smrg
1225706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1226706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1227706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1228706f2543Smrg
1229706f2543Smrg}
1230706f2543Smrg
1231706f2543Smrgvoid __glXDispSwap_TexGenfv(GLbyte *pc)
1232706f2543Smrg{
1233706f2543Smrg	GLenum pname;
1234706f2543Smrg	GLint compsize;
1235706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1236706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1237706f2543Smrg
1238706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1239706f2543Smrg	pname = *(GLenum *)(pc + 4);
1240706f2543Smrg	compsize = __glTexGenfv_size(pname);
1241706f2543Smrg	if (compsize < 0) compsize = 0;
1242706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1243706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
1244706f2543Smrg
1245706f2543Smrg}
1246706f2543Smrg
1247706f2543Smrgvoid __glXDispSwap_TexGeni(GLbyte *pc)
1248706f2543Smrg{
1249706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1250706f2543Smrg
1251706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1252706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1253706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1254706f2543Smrg
1255706f2543Smrg}
1256706f2543Smrg
1257706f2543Smrgvoid __glXDispSwap_TexGeniv(GLbyte *pc)
1258706f2543Smrg{
1259706f2543Smrg	GLenum pname;
1260706f2543Smrg	GLint compsize;
1261706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1262706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1263706f2543Smrg
1264706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1265706f2543Smrg	pname = *(GLenum *)(pc + 4);
1266706f2543Smrg	compsize = __glTexGeniv_size(pname);
1267706f2543Smrg	if (compsize < 0) compsize = 0;
1268706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1269706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
1270706f2543Smrg
1271706f2543Smrg}
1272706f2543Smrg
1273706f2543Smrgvoid __glXDispSwap_InitNames(GLbyte *pc)
1274706f2543Smrg{
1275706f2543Smrg}
1276706f2543Smrg
1277706f2543Smrgvoid __glXDispSwap_LoadName(GLbyte *pc)
1278706f2543Smrg{
1279706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1280706f2543Smrg
1281706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1282706f2543Smrg
1283706f2543Smrg}
1284706f2543Smrg
1285706f2543Smrgvoid __glXDispSwap_PassThrough(GLbyte *pc)
1286706f2543Smrg{
1287706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1288706f2543Smrg
1289706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1290706f2543Smrg
1291706f2543Smrg}
1292706f2543Smrg
1293706f2543Smrgvoid __glXDispSwap_PopName(GLbyte *pc)
1294706f2543Smrg{
1295706f2543Smrg}
1296706f2543Smrg
1297706f2543Smrgvoid __glXDispSwap_PushName(GLbyte *pc)
1298706f2543Smrg{
1299706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1300706f2543Smrg
1301706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1302706f2543Smrg
1303706f2543Smrg}
1304706f2543Smrg
1305706f2543Smrgvoid __glXDispSwap_DrawBuffer(GLbyte *pc)
1306706f2543Smrg{
1307706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1308706f2543Smrg
1309706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1310706f2543Smrg
1311706f2543Smrg}
1312706f2543Smrg
1313706f2543Smrgvoid __glXDispSwap_Clear(GLbyte *pc)
1314706f2543Smrg{
1315706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1316706f2543Smrg
1317706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1318706f2543Smrg
1319706f2543Smrg}
1320706f2543Smrg
1321706f2543Smrgvoid __glXDispSwap_ClearAccum(GLbyte *pc)
1322706f2543Smrg{
1323706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1324706f2543Smrg
1325706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1326706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1327706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1328706f2543Smrg	__GLX_SWAP_FLOAT(pc + 12);
1329706f2543Smrg
1330706f2543Smrg}
1331706f2543Smrg
1332706f2543Smrgvoid __glXDispSwap_ClearIndex(GLbyte *pc)
1333706f2543Smrg{
1334706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1335706f2543Smrg
1336706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1337706f2543Smrg
1338706f2543Smrg}
1339706f2543Smrg
1340706f2543Smrgvoid __glXDispSwap_ClearColor(GLbyte *pc)
1341706f2543Smrg{
1342706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1343706f2543Smrg
1344706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1345706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1346706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1347706f2543Smrg	__GLX_SWAP_FLOAT(pc + 12);
1348706f2543Smrg
1349706f2543Smrg}
1350706f2543Smrg
1351706f2543Smrgvoid __glXDispSwap_ClearStencil(GLbyte *pc)
1352706f2543Smrg{
1353706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1354706f2543Smrg
1355706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1356706f2543Smrg
1357706f2543Smrg}
1358706f2543Smrg
1359706f2543Smrgvoid __glXDispSwap_ClearDepth(GLbyte *pc)
1360706f2543Smrg{
1361706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1362706f2543Smrg
1363706f2543Smrg
1364706f2543Smrg#ifdef __GLX_ALIGN64
1365706f2543Smrg	if ((unsigned long)(pc) & 7) {
1366706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 8);
1367706f2543Smrg	    pc -= 4;
1368706f2543Smrg	}
1369706f2543Smrg#endif
1370706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1371706f2543Smrg
1372706f2543Smrg}
1373706f2543Smrg
1374706f2543Smrgvoid __glXDispSwap_StencilMask(GLbyte *pc)
1375706f2543Smrg{
1376706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1377706f2543Smrg
1378706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1379706f2543Smrg
1380706f2543Smrg}
1381706f2543Smrg
1382706f2543Smrgvoid __glXDispSwap_ColorMask(GLbyte *pc)
1383706f2543Smrg{
1384706f2543Smrg}
1385706f2543Smrg
1386706f2543Smrgvoid __glXDispSwap_DepthMask(GLbyte *pc)
1387706f2543Smrg{
1388706f2543Smrg}
1389706f2543Smrg
1390706f2543Smrgvoid __glXDispSwap_IndexMask(GLbyte *pc)
1391706f2543Smrg{
1392706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1393706f2543Smrg
1394706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1395706f2543Smrg
1396706f2543Smrg}
1397706f2543Smrg
1398706f2543Smrgvoid __glXDispSwap_Accum(GLbyte *pc)
1399706f2543Smrg{
1400706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1401706f2543Smrg
1402706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1403706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1404706f2543Smrg
1405706f2543Smrg}
1406706f2543Smrg
1407706f2543Smrgvoid __glXDispSwap_Disable(GLbyte *pc)
1408706f2543Smrg{
1409706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1410706f2543Smrg
1411706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1412706f2543Smrg
1413706f2543Smrg}
1414706f2543Smrg
1415706f2543Smrgvoid __glXDispSwap_Enable(GLbyte *pc)
1416706f2543Smrg{
1417706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1418706f2543Smrg
1419706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1420706f2543Smrg
1421706f2543Smrg}
1422706f2543Smrg
1423706f2543Smrgvoid __glXDispSwap_PopAttrib(GLbyte *pc)
1424706f2543Smrg{
1425706f2543Smrg}
1426706f2543Smrg
1427706f2543Smrgvoid __glXDispSwap_PushAttrib(GLbyte *pc)
1428706f2543Smrg{
1429706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1430706f2543Smrg
1431706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1432706f2543Smrg
1433706f2543Smrg}
1434706f2543Smrg
1435706f2543Smrgvoid __glXDispSwap_MapGrid1d(GLbyte *pc)
1436706f2543Smrg{
1437706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1438706f2543Smrg
1439706f2543Smrg
1440706f2543Smrg#ifdef __GLX_ALIGN64
1441706f2543Smrg	if ((unsigned long)(pc) & 7) {
1442706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 20);
1443706f2543Smrg	    pc -= 4;
1444706f2543Smrg	}
1445706f2543Smrg#endif
1446706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1447706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1448706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1449706f2543Smrg
1450706f2543Smrg}
1451706f2543Smrg
1452706f2543Smrgvoid __glXDispSwap_MapGrid1f(GLbyte *pc)
1453706f2543Smrg{
1454706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1455706f2543Smrg
1456706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1457706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1458706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1459706f2543Smrg
1460706f2543Smrg}
1461706f2543Smrg
1462706f2543Smrgvoid __glXDispSwap_MapGrid2d(GLbyte *pc)
1463706f2543Smrg{
1464706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1465706f2543Smrg
1466706f2543Smrg
1467706f2543Smrg#ifdef __GLX_ALIGN64
1468706f2543Smrg	if ((unsigned long)(pc) & 7) {
1469706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 40);
1470706f2543Smrg	    pc -= 4;
1471706f2543Smrg	}
1472706f2543Smrg#endif
1473706f2543Smrg	__GLX_SWAP_INT(pc + 32);
1474706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1475706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1476706f2543Smrg	__GLX_SWAP_INT(pc + 36);
1477706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1478706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 24);
1479706f2543Smrg
1480706f2543Smrg}
1481706f2543Smrg
1482706f2543Smrgvoid __glXDispSwap_MapGrid2f(GLbyte *pc)
1483706f2543Smrg{
1484706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1485706f2543Smrg
1486706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1487706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1488706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1489706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1490706f2543Smrg	__GLX_SWAP_FLOAT(pc + 16);
1491706f2543Smrg	__GLX_SWAP_FLOAT(pc + 20);
1492706f2543Smrg
1493706f2543Smrg}
1494706f2543Smrg
1495706f2543Smrgvoid __glXDispSwap_EvalCoord1dv(GLbyte *pc)
1496706f2543Smrg{
1497706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1498706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1499706f2543Smrg
1500706f2543Smrg
1501706f2543Smrg#ifdef __GLX_ALIGN64
1502706f2543Smrg	if ((unsigned long)(pc) & 7) {
1503706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 8);
1504706f2543Smrg	    pc -= 4;
1505706f2543Smrg	}
1506706f2543Smrg#endif
1507706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
1508706f2543Smrg
1509706f2543Smrg}
1510706f2543Smrg
1511706f2543Smrgvoid __glXDispSwap_EvalCoord1fv(GLbyte *pc)
1512706f2543Smrg{
1513706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1514706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1515706f2543Smrg
1516706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
1517706f2543Smrg
1518706f2543Smrg}
1519706f2543Smrg
1520706f2543Smrgvoid __glXDispSwap_EvalCoord2dv(GLbyte *pc)
1521706f2543Smrg{
1522706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1523706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1524706f2543Smrg
1525706f2543Smrg
1526706f2543Smrg#ifdef __GLX_ALIGN64
1527706f2543Smrg	if ((unsigned long)(pc) & 7) {
1528706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
1529706f2543Smrg	    pc -= 4;
1530706f2543Smrg	}
1531706f2543Smrg#endif
1532706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
1533706f2543Smrg
1534706f2543Smrg}
1535706f2543Smrg
1536706f2543Smrgvoid __glXDispSwap_EvalCoord2fv(GLbyte *pc)
1537706f2543Smrg{
1538706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1539706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1540706f2543Smrg
1541706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
1542706f2543Smrg
1543706f2543Smrg}
1544706f2543Smrg
1545706f2543Smrgvoid __glXDispSwap_EvalMesh1(GLbyte *pc)
1546706f2543Smrg{
1547706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1548706f2543Smrg
1549706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1550706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1551706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1552706f2543Smrg
1553706f2543Smrg}
1554706f2543Smrg
1555706f2543Smrgvoid __glXDispSwap_EvalPoint1(GLbyte *pc)
1556706f2543Smrg{
1557706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1558706f2543Smrg
1559706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1560706f2543Smrg
1561706f2543Smrg}
1562706f2543Smrg
1563706f2543Smrgvoid __glXDispSwap_EvalMesh2(GLbyte *pc)
1564706f2543Smrg{
1565706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1566706f2543Smrg
1567706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1568706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1569706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1570706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1571706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1572706f2543Smrg
1573706f2543Smrg}
1574706f2543Smrg
1575706f2543Smrgvoid __glXDispSwap_EvalPoint2(GLbyte *pc)
1576706f2543Smrg{
1577706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1578706f2543Smrg
1579706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1580706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1581706f2543Smrg
1582706f2543Smrg}
1583706f2543Smrg
1584706f2543Smrgvoid __glXDispSwap_AlphaFunc(GLbyte *pc)
1585706f2543Smrg{
1586706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1587706f2543Smrg
1588706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1589706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1590706f2543Smrg
1591706f2543Smrg}
1592706f2543Smrg
1593706f2543Smrgvoid __glXDispSwap_BlendFunc(GLbyte *pc)
1594706f2543Smrg{
1595706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1596706f2543Smrg
1597706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1598706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1599706f2543Smrg
1600706f2543Smrg}
1601706f2543Smrg
1602706f2543Smrgvoid __glXDispSwap_LogicOp(GLbyte *pc)
1603706f2543Smrg{
1604706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1605706f2543Smrg
1606706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1607706f2543Smrg
1608706f2543Smrg}
1609706f2543Smrg
1610706f2543Smrgvoid __glXDispSwap_StencilFunc(GLbyte *pc)
1611706f2543Smrg{
1612706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1613706f2543Smrg
1614706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1615706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1616706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1617706f2543Smrg
1618706f2543Smrg}
1619706f2543Smrg
1620706f2543Smrgvoid __glXDispSwap_StencilOp(GLbyte *pc)
1621706f2543Smrg{
1622706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1623706f2543Smrg
1624706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1625706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1626706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1627706f2543Smrg
1628706f2543Smrg}
1629706f2543Smrg
1630706f2543Smrgvoid __glXDispSwap_DepthFunc(GLbyte *pc)
1631706f2543Smrg{
1632706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1633706f2543Smrg
1634706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1635706f2543Smrg
1636706f2543Smrg}
1637706f2543Smrg
1638706f2543Smrgvoid __glXDispSwap_PixelZoom(GLbyte *pc)
1639706f2543Smrg{
1640706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1641706f2543Smrg
1642706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1643706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1644706f2543Smrg
1645706f2543Smrg}
1646706f2543Smrg
1647706f2543Smrgvoid __glXDispSwap_PixelTransferf(GLbyte *pc)
1648706f2543Smrg{
1649706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1650706f2543Smrg
1651706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1652706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1653706f2543Smrg
1654706f2543Smrg}
1655706f2543Smrg
1656706f2543Smrgvoid __glXDispSwap_PixelTransferi(GLbyte *pc)
1657706f2543Smrg{
1658706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1659706f2543Smrg
1660706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1661706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1662706f2543Smrg
1663706f2543Smrg}
1664706f2543Smrg
1665706f2543Smrgvoid __glXDispSwap_PixelMapfv(GLbyte *pc)
1666706f2543Smrg{
1667706f2543Smrg	GLint mapsize;
1668706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1669706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1670706f2543Smrg
1671706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1672706f2543Smrg	mapsize = *(GLint *)(pc + 4);
1673706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1674706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, mapsize);
1675706f2543Smrg
1676706f2543Smrg}
1677706f2543Smrg
1678706f2543Smrgvoid __glXDispSwap_PixelMapuiv(GLbyte *pc)
1679706f2543Smrg{
1680706f2543Smrg	GLint mapsize;
1681706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1682706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1683706f2543Smrg
1684706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1685706f2543Smrg	mapsize = *(GLint *)(pc + 4);
1686706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1687706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, mapsize);
1688706f2543Smrg
1689706f2543Smrg}
1690706f2543Smrg
1691706f2543Smrgvoid __glXDispSwap_PixelMapusv(GLbyte *pc)
1692706f2543Smrg{
1693706f2543Smrg	GLint mapsize;
1694706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1695706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1696706f2543Smrg
1697706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1698706f2543Smrg	mapsize = *(GLint *)(pc + 4);
1699706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1700706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 8, mapsize);
1701706f2543Smrg
1702706f2543Smrg}
1703706f2543Smrg
1704706f2543Smrgvoid __glXDispSwap_ReadBuffer(GLbyte *pc)
1705706f2543Smrg{
1706706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1707706f2543Smrg
1708706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1709706f2543Smrg
1710706f2543Smrg}
1711706f2543Smrg
1712706f2543Smrgvoid __glXDispSwap_CopyPixels(GLbyte *pc)
1713706f2543Smrg{
1714706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1715706f2543Smrg
1716706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1717706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1718706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1719706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1720706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1721706f2543Smrg
1722706f2543Smrg}
1723706f2543Smrg
1724706f2543Smrgvoid __glXDispSwap_DepthRange(GLbyte *pc)
1725706f2543Smrg{
1726706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1727706f2543Smrg
1728706f2543Smrg
1729706f2543Smrg#ifdef __GLX_ALIGN64
1730706f2543Smrg	if ((unsigned long)(pc) & 7) {
1731706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 16);
1732706f2543Smrg	    pc -= 4;
1733706f2543Smrg	}
1734706f2543Smrg#endif
1735706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1736706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1737706f2543Smrg
1738706f2543Smrg}
1739706f2543Smrg
1740706f2543Smrgvoid __glXDispSwap_Frustum(GLbyte *pc)
1741706f2543Smrg{
1742706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1743706f2543Smrg
1744706f2543Smrg
1745706f2543Smrg#ifdef __GLX_ALIGN64
1746706f2543Smrg	if ((unsigned long)(pc) & 7) {
1747706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 48);
1748706f2543Smrg	    pc -= 4;
1749706f2543Smrg	}
1750706f2543Smrg#endif
1751706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1752706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1753706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1754706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 24);
1755706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 32);
1756706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 40);
1757706f2543Smrg
1758706f2543Smrg}
1759706f2543Smrg
1760706f2543Smrgvoid __glXDispSwap_LoadIdentity(GLbyte *pc)
1761706f2543Smrg{
1762706f2543Smrg}
1763706f2543Smrg
1764706f2543Smrgvoid __glXDispSwap_LoadMatrixf(GLbyte *pc)
1765706f2543Smrg{
1766706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1767706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1768706f2543Smrg
1769706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 16);
1770706f2543Smrg
1771706f2543Smrg}
1772706f2543Smrg
1773706f2543Smrgvoid __glXDispSwap_LoadMatrixd(GLbyte *pc)
1774706f2543Smrg{
1775706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1776706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1777706f2543Smrg
1778706f2543Smrg
1779706f2543Smrg#ifdef __GLX_ALIGN64
1780706f2543Smrg	if ((unsigned long)(pc) & 7) {
1781706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 128);
1782706f2543Smrg	    pc -= 4;
1783706f2543Smrg	}
1784706f2543Smrg#endif
1785706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 16);
1786706f2543Smrg
1787706f2543Smrg}
1788706f2543Smrg
1789706f2543Smrgvoid __glXDispSwap_MatrixMode(GLbyte *pc)
1790706f2543Smrg{
1791706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1792706f2543Smrg
1793706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1794706f2543Smrg
1795706f2543Smrg}
1796706f2543Smrg
1797706f2543Smrgvoid __glXDispSwap_MultMatrixf(GLbyte *pc)
1798706f2543Smrg{
1799706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1800706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1801706f2543Smrg
1802706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 0, 16);
1803706f2543Smrg
1804706f2543Smrg}
1805706f2543Smrg
1806706f2543Smrgvoid __glXDispSwap_MultMatrixd(GLbyte *pc)
1807706f2543Smrg{
1808706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1809706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
1810706f2543Smrg
1811706f2543Smrg
1812706f2543Smrg#ifdef __GLX_ALIGN64
1813706f2543Smrg	if ((unsigned long)(pc) & 7) {
1814706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 128);
1815706f2543Smrg	    pc -= 4;
1816706f2543Smrg	}
1817706f2543Smrg#endif
1818706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 16);
1819706f2543Smrg
1820706f2543Smrg}
1821706f2543Smrg
1822706f2543Smrgvoid __glXDispSwap_Ortho(GLbyte *pc)
1823706f2543Smrg{
1824706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1825706f2543Smrg
1826706f2543Smrg
1827706f2543Smrg#ifdef __GLX_ALIGN64
1828706f2543Smrg	if ((unsigned long)(pc) & 7) {
1829706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 48);
1830706f2543Smrg	    pc -= 4;
1831706f2543Smrg	}
1832706f2543Smrg#endif
1833706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1834706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1835706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1836706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 24);
1837706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 32);
1838706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 40);
1839706f2543Smrg
1840706f2543Smrg}
1841706f2543Smrg
1842706f2543Smrgvoid __glXDispSwap_PopMatrix(GLbyte *pc)
1843706f2543Smrg{
1844706f2543Smrg}
1845706f2543Smrg
1846706f2543Smrgvoid __glXDispSwap_PushMatrix(GLbyte *pc)
1847706f2543Smrg{
1848706f2543Smrg}
1849706f2543Smrg
1850706f2543Smrgvoid __glXDispSwap_Rotated(GLbyte *pc)
1851706f2543Smrg{
1852706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1853706f2543Smrg
1854706f2543Smrg
1855706f2543Smrg#ifdef __GLX_ALIGN64
1856706f2543Smrg	if ((unsigned long)(pc) & 7) {
1857706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 32);
1858706f2543Smrg	    pc -= 4;
1859706f2543Smrg	}
1860706f2543Smrg#endif
1861706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1862706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1863706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1864706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 24);
1865706f2543Smrg
1866706f2543Smrg}
1867706f2543Smrg
1868706f2543Smrgvoid __glXDispSwap_Rotatef(GLbyte *pc)
1869706f2543Smrg{
1870706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1871706f2543Smrg
1872706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1873706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1874706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1875706f2543Smrg	__GLX_SWAP_FLOAT(pc + 12);
1876706f2543Smrg
1877706f2543Smrg}
1878706f2543Smrg
1879706f2543Smrgvoid __glXDispSwap_Scaled(GLbyte *pc)
1880706f2543Smrg{
1881706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1882706f2543Smrg
1883706f2543Smrg
1884706f2543Smrg#ifdef __GLX_ALIGN64
1885706f2543Smrg	if ((unsigned long)(pc) & 7) {
1886706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
1887706f2543Smrg	    pc -= 4;
1888706f2543Smrg	}
1889706f2543Smrg#endif
1890706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1891706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1892706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1893706f2543Smrg
1894706f2543Smrg}
1895706f2543Smrg
1896706f2543Smrgvoid __glXDispSwap_Scalef(GLbyte *pc)
1897706f2543Smrg{
1898706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1899706f2543Smrg
1900706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1901706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1902706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1903706f2543Smrg
1904706f2543Smrg}
1905706f2543Smrg
1906706f2543Smrgvoid __glXDispSwap_Translated(GLbyte *pc)
1907706f2543Smrg{
1908706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1909706f2543Smrg
1910706f2543Smrg
1911706f2543Smrg#ifdef __GLX_ALIGN64
1912706f2543Smrg	if ((unsigned long)(pc) & 7) {
1913706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 24);
1914706f2543Smrg	    pc -= 4;
1915706f2543Smrg	}
1916706f2543Smrg#endif
1917706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 0);
1918706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 8);
1919706f2543Smrg	__GLX_SWAP_DOUBLE(pc + 16);
1920706f2543Smrg
1921706f2543Smrg}
1922706f2543Smrg
1923706f2543Smrgvoid __glXDispSwap_Translatef(GLbyte *pc)
1924706f2543Smrg{
1925706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1926706f2543Smrg
1927706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1928706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1929706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
1930706f2543Smrg
1931706f2543Smrg}
1932706f2543Smrg
1933706f2543Smrgvoid __glXDispSwap_Viewport(GLbyte *pc)
1934706f2543Smrg{
1935706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1936706f2543Smrg
1937706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1938706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1939706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1940706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1941706f2543Smrg
1942706f2543Smrg}
1943706f2543Smrg
1944706f2543Smrgvoid __glXDispSwap_PolygonOffset(GLbyte *pc)
1945706f2543Smrg{
1946706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1947706f2543Smrg
1948706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
1949706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
1950706f2543Smrg
1951706f2543Smrg}
1952706f2543Smrg
1953706f2543Smrgvoid __glXDispSwap_CopyTexImage1D(GLbyte *pc)
1954706f2543Smrg{
1955706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1956706f2543Smrg
1957706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1958706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1959706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1960706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1961706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1962706f2543Smrg	__GLX_SWAP_INT(pc + 20);
1963706f2543Smrg	__GLX_SWAP_INT(pc + 24);
1964706f2543Smrg
1965706f2543Smrg}
1966706f2543Smrg
1967706f2543Smrgvoid __glXDispSwap_CopyTexImage2D(GLbyte *pc)
1968706f2543Smrg{
1969706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1970706f2543Smrg
1971706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1972706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1973706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1974706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1975706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1976706f2543Smrg	__GLX_SWAP_INT(pc + 20);
1977706f2543Smrg	__GLX_SWAP_INT(pc + 24);
1978706f2543Smrg	__GLX_SWAP_INT(pc + 28);
1979706f2543Smrg
1980706f2543Smrg}
1981706f2543Smrg
1982706f2543Smrgvoid __glXDispSwap_CopyTexSubImage1D(GLbyte *pc)
1983706f2543Smrg{
1984706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1985706f2543Smrg
1986706f2543Smrg	__GLX_SWAP_INT(pc + 0);
1987706f2543Smrg	__GLX_SWAP_INT(pc + 4);
1988706f2543Smrg	__GLX_SWAP_INT(pc + 8);
1989706f2543Smrg	__GLX_SWAP_INT(pc + 12);
1990706f2543Smrg	__GLX_SWAP_INT(pc + 16);
1991706f2543Smrg	__GLX_SWAP_INT(pc + 20);
1992706f2543Smrg
1993706f2543Smrg}
1994706f2543Smrg
1995706f2543Smrgvoid __glXDispSwap_CopyTexSubImage2D(GLbyte *pc)
1996706f2543Smrg{
1997706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
1998706f2543Smrg
1999706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2000706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2001706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2002706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2003706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2004706f2543Smrg	__GLX_SWAP_INT(pc + 20);
2005706f2543Smrg	__GLX_SWAP_INT(pc + 24);
2006706f2543Smrg	__GLX_SWAP_INT(pc + 28);
2007706f2543Smrg
2008706f2543Smrg}
2009706f2543Smrg
2010706f2543Smrgvoid __glXDispSwap_BindTexture(GLbyte *pc)
2011706f2543Smrg{
2012706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2013706f2543Smrg
2014706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2015706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2016706f2543Smrg
2017706f2543Smrg}
2018706f2543Smrg
2019706f2543Smrgvoid __glXDispSwap_PrioritizeTextures(GLbyte *pc)
2020706f2543Smrg{
2021706f2543Smrg	GLsizei n;
2022706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2023706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2024706f2543Smrg
2025706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2026706f2543Smrg	n = *(GLsizei *)(pc + 0);
2027706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, n);
2028706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4+n*4, n);
2029706f2543Smrg
2030706f2543Smrg}
2031706f2543Smrg
2032706f2543Smrgvoid __glXDispSwap_Indexubv(GLbyte *pc)
2033706f2543Smrg{
2034706f2543Smrg}
2035706f2543Smrg
2036706f2543Smrgvoid __glXDispSwap_BlendColor(GLbyte *pc)
2037706f2543Smrg{
2038706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2039706f2543Smrg
2040706f2543Smrg	__GLX_SWAP_FLOAT(pc + 0);
2041706f2543Smrg	__GLX_SWAP_FLOAT(pc + 4);
2042706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
2043706f2543Smrg	__GLX_SWAP_FLOAT(pc + 12);
2044706f2543Smrg
2045706f2543Smrg}
2046706f2543Smrg
2047706f2543Smrgvoid __glXDispSwap_BlendEquation(GLbyte *pc)
2048706f2543Smrg{
2049706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2050706f2543Smrg
2051706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2052706f2543Smrg
2053706f2543Smrg}
2054706f2543Smrg
2055706f2543Smrgvoid __glXDispSwap_ColorTableParameterfv(GLbyte *pc)
2056706f2543Smrg{
2057706f2543Smrg	GLenum pname;
2058706f2543Smrg	GLint compsize;
2059706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2060706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2061706f2543Smrg
2062706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2063706f2543Smrg	pname = *(GLenum *)(pc + 4);
2064706f2543Smrg	compsize = __glColorTableParameterfv_size(pname);
2065706f2543Smrg	if (compsize < 0) compsize = 0;
2066706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2067706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
2068706f2543Smrg
2069706f2543Smrg}
2070706f2543Smrg
2071706f2543Smrgvoid __glXDispSwap_ColorTableParameteriv(GLbyte *pc)
2072706f2543Smrg{
2073706f2543Smrg	GLenum pname;
2074706f2543Smrg	GLint compsize;
2075706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2076706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2077706f2543Smrg
2078706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2079706f2543Smrg	pname = *(GLenum *)(pc + 4);
2080706f2543Smrg	compsize = __glColorTableParameteriv_size(pname);
2081706f2543Smrg	if (compsize < 0) compsize = 0;
2082706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2083706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
2084706f2543Smrg
2085706f2543Smrg}
2086706f2543Smrg
2087706f2543Smrgvoid __glXDispSwap_CopyColorTable(GLbyte *pc)
2088706f2543Smrg{
2089706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2090706f2543Smrg
2091706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2092706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2093706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2094706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2095706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2096706f2543Smrg
2097706f2543Smrg}
2098706f2543Smrg
2099706f2543Smrgvoid __glXDispSwap_CopyColorSubTable(GLbyte *pc)
2100706f2543Smrg{
2101706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2102706f2543Smrg
2103706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2104706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2105706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2106706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2107706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2108706f2543Smrg
2109706f2543Smrg}
2110706f2543Smrg
2111706f2543Smrgvoid __glXDispSwap_ConvolutionParameterf(GLbyte *pc)
2112706f2543Smrg{
2113706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2114706f2543Smrg
2115706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2116706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2117706f2543Smrg	__GLX_SWAP_FLOAT(pc + 8);
2118706f2543Smrg
2119706f2543Smrg}
2120706f2543Smrg
2121706f2543Smrgvoid __glXDispSwap_ConvolutionParameterfv(GLbyte *pc)
2122706f2543Smrg{
2123706f2543Smrg	GLenum pname;
2124706f2543Smrg	GLint compsize;
2125706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2126706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2127706f2543Smrg
2128706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2129706f2543Smrg	pname = *(GLenum *)(pc + 4);
2130706f2543Smrg	compsize = __glConvolutionParameterfv_size(pname);
2131706f2543Smrg	if (compsize < 0) compsize = 0;
2132706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2133706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
2134706f2543Smrg
2135706f2543Smrg}
2136706f2543Smrg
2137706f2543Smrgvoid __glXDispSwap_ConvolutionParameteri(GLbyte *pc)
2138706f2543Smrg{
2139706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2140706f2543Smrg
2141706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2142706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2143706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2144706f2543Smrg
2145706f2543Smrg}
2146706f2543Smrg
2147706f2543Smrgvoid __glXDispSwap_ConvolutionParameteriv(GLbyte *pc)
2148706f2543Smrg{
2149706f2543Smrg	GLenum pname;
2150706f2543Smrg	GLint compsize;
2151706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2152706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2153706f2543Smrg
2154706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2155706f2543Smrg	pname = *(GLenum *)(pc + 4);
2156706f2543Smrg	compsize = __glConvolutionParameteriv_size(pname);
2157706f2543Smrg	if (compsize < 0) compsize = 0;
2158706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2159706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 8, compsize);
2160706f2543Smrg
2161706f2543Smrg}
2162706f2543Smrg
2163706f2543Smrgvoid __glXDispSwap_CopyConvolutionFilter1D(GLbyte *pc)
2164706f2543Smrg{
2165706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2166706f2543Smrg
2167706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2168706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2169706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2170706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2171706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2172706f2543Smrg
2173706f2543Smrg}
2174706f2543Smrg
2175706f2543Smrgvoid __glXDispSwap_CopyConvolutionFilter2D(GLbyte *pc)
2176706f2543Smrg{
2177706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2178706f2543Smrg
2179706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2180706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2181706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2182706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2183706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2184706f2543Smrg	__GLX_SWAP_INT(pc + 20);
2185706f2543Smrg
2186706f2543Smrg}
2187706f2543Smrg
2188706f2543Smrgvoid __glXDispSwap_Histogram(GLbyte *pc)
2189706f2543Smrg{
2190706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2191706f2543Smrg
2192706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2193706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2194706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2195706f2543Smrg
2196706f2543Smrg}
2197706f2543Smrg
2198706f2543Smrgvoid __glXDispSwap_Minmax(GLbyte *pc)
2199706f2543Smrg{
2200706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2201706f2543Smrg
2202706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2203706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2204706f2543Smrg
2205706f2543Smrg}
2206706f2543Smrg
2207706f2543Smrgvoid __glXDispSwap_ResetHistogram(GLbyte *pc)
2208706f2543Smrg{
2209706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2210706f2543Smrg
2211706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2212706f2543Smrg
2213706f2543Smrg}
2214706f2543Smrg
2215706f2543Smrgvoid __glXDispSwap_ResetMinmax(GLbyte *pc)
2216706f2543Smrg{
2217706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2218706f2543Smrg
2219706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2220706f2543Smrg
2221706f2543Smrg}
2222706f2543Smrg
2223706f2543Smrgvoid __glXDispSwap_CopyTexSubImage3D(GLbyte *pc)
2224706f2543Smrg{
2225706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2226706f2543Smrg
2227706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2228706f2543Smrg	__GLX_SWAP_INT(pc + 4);
2229706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2230706f2543Smrg	__GLX_SWAP_INT(pc + 12);
2231706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2232706f2543Smrg	__GLX_SWAP_INT(pc + 20);
2233706f2543Smrg	__GLX_SWAP_INT(pc + 24);
2234706f2543Smrg	__GLX_SWAP_INT(pc + 28);
2235706f2543Smrg	__GLX_SWAP_INT(pc + 32);
2236706f2543Smrg
2237706f2543Smrg}
2238706f2543Smrg
2239706f2543Smrgvoid __glXDispSwap_ActiveTextureARB(GLbyte *pc)
2240706f2543Smrg{
2241706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2242706f2543Smrg
2243706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2244706f2543Smrg
2245706f2543Smrg}
2246706f2543Smrg
2247706f2543Smrgvoid __glXDispSwap_MultiTexCoord1dvARB(GLbyte *pc)
2248706f2543Smrg{
2249706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2250706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2251706f2543Smrg
2252706f2543Smrg
2253706f2543Smrg#ifdef __GLX_ALIGN64
2254706f2543Smrg	if ((unsigned long)(pc) & 7) {
2255706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 12);
2256706f2543Smrg	    pc -= 4;
2257706f2543Smrg	}
2258706f2543Smrg#endif
2259706f2543Smrg	__GLX_SWAP_INT(pc + 8);
2260706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
2261706f2543Smrg
2262706f2543Smrg}
2263706f2543Smrg
2264706f2543Smrgvoid __glXDispSwap_MultiTexCoord1fvARB(GLbyte *pc)
2265706f2543Smrg{
2266706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2267706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2268706f2543Smrg
2269706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2270706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, 1);
2271706f2543Smrg
2272706f2543Smrg}
2273706f2543Smrg
2274706f2543Smrgvoid __glXDispSwap_MultiTexCoord1ivARB(GLbyte *pc)
2275706f2543Smrg{
2276706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2277706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2278706f2543Smrg
2279706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2280706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, 1);
2281706f2543Smrg
2282706f2543Smrg}
2283706f2543Smrg
2284706f2543Smrgvoid __glXDispSwap_MultiTexCoord1svARB(GLbyte *pc)
2285706f2543Smrg{
2286706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2287706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2288706f2543Smrg
2289706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2290706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 4, 1);
2291706f2543Smrg
2292706f2543Smrg}
2293706f2543Smrg
2294706f2543Smrgvoid __glXDispSwap_MultiTexCoord2dvARB(GLbyte *pc)
2295706f2543Smrg{
2296706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2297706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2298706f2543Smrg
2299706f2543Smrg
2300706f2543Smrg#ifdef __GLX_ALIGN64
2301706f2543Smrg	if ((unsigned long)(pc) & 7) {
2302706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 20);
2303706f2543Smrg	    pc -= 4;
2304706f2543Smrg	}
2305706f2543Smrg#endif
2306706f2543Smrg	__GLX_SWAP_INT(pc + 16);
2307706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
2308706f2543Smrg
2309706f2543Smrg}
2310706f2543Smrg
2311706f2543Smrgvoid __glXDispSwap_MultiTexCoord2fvARB(GLbyte *pc)
2312706f2543Smrg{
2313706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2314706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2315706f2543Smrg
2316706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2317706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, 2);
2318706f2543Smrg
2319706f2543Smrg}
2320706f2543Smrg
2321706f2543Smrgvoid __glXDispSwap_MultiTexCoord2ivARB(GLbyte *pc)
2322706f2543Smrg{
2323706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2324706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2325706f2543Smrg
2326706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2327706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, 2);
2328706f2543Smrg
2329706f2543Smrg}
2330706f2543Smrg
2331706f2543Smrgvoid __glXDispSwap_MultiTexCoord2svARB(GLbyte *pc)
2332706f2543Smrg{
2333706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2334706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2335706f2543Smrg
2336706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2337706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 4, 2);
2338706f2543Smrg
2339706f2543Smrg}
2340706f2543Smrg
2341706f2543Smrgvoid __glXDispSwap_MultiTexCoord3dvARB(GLbyte *pc)
2342706f2543Smrg{
2343706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2344706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2345706f2543Smrg
2346706f2543Smrg
2347706f2543Smrg#ifdef __GLX_ALIGN64
2348706f2543Smrg	if ((unsigned long)(pc) & 7) {
2349706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 28);
2350706f2543Smrg	    pc -= 4;
2351706f2543Smrg	}
2352706f2543Smrg#endif
2353706f2543Smrg	__GLX_SWAP_INT(pc + 24);
2354706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
2355706f2543Smrg
2356706f2543Smrg}
2357706f2543Smrg
2358706f2543Smrgvoid __glXDispSwap_MultiTexCoord3fvARB(GLbyte *pc)
2359706f2543Smrg{
2360706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2361706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2362706f2543Smrg
2363706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2364706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, 3);
2365706f2543Smrg
2366706f2543Smrg}
2367706f2543Smrg
2368706f2543Smrgvoid __glXDispSwap_MultiTexCoord3ivARB(GLbyte *pc)
2369706f2543Smrg{
2370706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2371706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2372706f2543Smrg
2373706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2374706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, 3);
2375706f2543Smrg
2376706f2543Smrg}
2377706f2543Smrg
2378706f2543Smrgvoid __glXDispSwap_MultiTexCoord3svARB(GLbyte *pc)
2379706f2543Smrg{
2380706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2381706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2382706f2543Smrg
2383706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2384706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 4, 3);
2385706f2543Smrg
2386706f2543Smrg}
2387706f2543Smrg
2388706f2543Smrgvoid __glXDispSwap_MultiTexCoord4dvARB(GLbyte *pc)
2389706f2543Smrg{
2390706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2391706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2392706f2543Smrg
2393706f2543Smrg
2394706f2543Smrg#ifdef __GLX_ALIGN64
2395706f2543Smrg	if ((unsigned long)(pc) & 7) {
2396706f2543Smrg	    __GLX_MEM_COPY(pc-4, pc, 36);
2397706f2543Smrg	    pc -= 4;
2398706f2543Smrg	}
2399706f2543Smrg#endif
2400706f2543Smrg	__GLX_SWAP_INT(pc + 32);
2401706f2543Smrg	__GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
2402706f2543Smrg
2403706f2543Smrg}
2404706f2543Smrg
2405706f2543Smrgvoid __glXDispSwap_MultiTexCoord4fvARB(GLbyte *pc)
2406706f2543Smrg{
2407706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2408706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2409706f2543Smrg
2410706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2411706f2543Smrg	__GLX_SWAP_FLOAT_ARRAY(pc + 4, 4);
2412706f2543Smrg
2413706f2543Smrg}
2414706f2543Smrg
2415706f2543Smrgvoid __glXDispSwap_MultiTexCoord4ivARB(GLbyte *pc)
2416706f2543Smrg{
2417706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2418706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2419706f2543Smrg
2420706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2421706f2543Smrg	__GLX_SWAP_INT_ARRAY(pc + 4, 4);
2422706f2543Smrg
2423706f2543Smrg}
2424706f2543Smrg
2425706f2543Smrgvoid __glXDispSwap_MultiTexCoord4svARB(GLbyte *pc)
2426706f2543Smrg{
2427706f2543Smrg	__GLX_DECLARE_SWAP_VARIABLES;
2428706f2543Smrg	__GLX_DECLARE_SWAP_ARRAY_VARIABLES;
2429706f2543Smrg
2430706f2543Smrg	__GLX_SWAP_INT(pc + 0);
2431706f2543Smrg	__GLX_SWAP_SHORT_ARRAY(pc + 4, 4);
2432706f2543Smrg
2433706f2543Smrg}
2434706f2543Smrg
2435