1848b8605Smrg#include "glxclient.h"
2848b8605Smrg#include "glxextensions.h"
3848b8605Smrg#include "glxconfig.h"
4848b8605Smrg
5848b8605Smrg/*
6848b8605Smrg** GLX_SGI_swap_control
7848b8605Smrg*/
8848b8605Smrgint
9848b8605SmrgglXSwapIntervalSGI(int interval)
10848b8605Smrg{
11848b8605Smrg   (void) interval;
12848b8605Smrg   return 0;
13848b8605Smrg}
14848b8605Smrg
15848b8605Smrg
16848b8605Smrg/*
17848b8605Smrg** GLX_MESA_swap_control
18848b8605Smrg*/
19848b8605Smrgint
20848b8605SmrgglXSwapIntervalMESA(unsigned int interval)
21848b8605Smrg{
22848b8605Smrg   (void) interval;
23848b8605Smrg   return GLX_BAD_CONTEXT;
24848b8605Smrg}
25848b8605Smrg
26848b8605Smrg
27848b8605Smrgint
28848b8605SmrgglXGetSwapIntervalMESA(void)
29848b8605Smrg{
30848b8605Smrg   return 0;
31848b8605Smrg}
32848b8605Smrg
33848b8605Smrg
34848b8605Smrg/*
35848b8605Smrg** GLX_SGI_video_sync
36848b8605Smrg*/
37848b8605Smrgint
38848b8605SmrgglXGetVideoSyncSGI(unsigned int *count)
39848b8605Smrg{
40848b8605Smrg   (void) count;
41848b8605Smrg   return GLX_BAD_CONTEXT;
42848b8605Smrg}
43848b8605Smrg
44848b8605Smrgint
45848b8605SmrgglXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
46848b8605Smrg{
47848b8605Smrg   (void) count;
48848b8605Smrg   return GLX_BAD_CONTEXT;
49848b8605Smrg}
50848b8605Smrg
51848b8605Smrg
52848b8605Smrg/*
53848b8605Smrg** GLX_OML_sync_control
54848b8605Smrg*/
55848b8605SmrgBool
56848b8605SmrgglXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
57848b8605Smrg                    int64_t * ust, int64_t * msc, int64_t * sbc)
58848b8605Smrg{
59848b8605Smrg   (void) dpy;
60848b8605Smrg   (void) drawable;
61848b8605Smrg   (void) ust;
62848b8605Smrg   (void) msc;
63848b8605Smrg   (void) sbc;
64848b8605Smrg   return False;
65848b8605Smrg}
66848b8605Smrg
67848b8605Smrgint64_t
68848b8605SmrgglXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
69848b8605Smrg                     int64_t target_msc, int64_t divisor, int64_t remainder)
70848b8605Smrg{
71848b8605Smrg   (void) dpy;
72848b8605Smrg   (void) drawable;
73848b8605Smrg   (void) target_msc;
74848b8605Smrg   (void) divisor;
75848b8605Smrg   (void) remainder;
76848b8605Smrg   return 0;
77848b8605Smrg}
78848b8605Smrg
79848b8605Smrg
80848b8605SmrgBool
81848b8605SmrgglXWaitForMscOML(Display * dpy, GLXDrawable drawable,
82848b8605Smrg                 int64_t target_msc, int64_t divisor,
83848b8605Smrg                 int64_t remainder, int64_t * ust,
84848b8605Smrg                 int64_t * msc, int64_t * sbc)
85848b8605Smrg{
86848b8605Smrg   (void) dpy;
87848b8605Smrg   (void) drawable;
88848b8605Smrg   (void) target_msc;
89848b8605Smrg   (void) divisor;
90848b8605Smrg   (void) remainder;
91848b8605Smrg   (void) ust;
92848b8605Smrg   (void) msc;
93848b8605Smrg   (void) sbc;
94848b8605Smrg   return False;
95848b8605Smrg}
96848b8605Smrg
97848b8605Smrg
98848b8605SmrgBool
99848b8605SmrgglXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
100848b8605Smrg                 int64_t target_sbc, int64_t * ust,
101848b8605Smrg                 int64_t * msc, int64_t * sbc)
102848b8605Smrg{
103848b8605Smrg   (void) dpy;
104848b8605Smrg   (void) drawable;
105848b8605Smrg   (void) target_sbc;
106848b8605Smrg   (void) ust;
107848b8605Smrg   (void) msc;
108848b8605Smrg   (void) sbc;
109848b8605Smrg   return False;
110848b8605Smrg}
111848b8605Smrg
112848b8605Smrg
113848b8605SmrgBool
114848b8605SmrgglXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
115848b8605Smrg{
116848b8605Smrg   (void) dpy;
117848b8605Smrg   (void) d;
118848b8605Smrg   return False;
119848b8605Smrg}
120848b8605Smrg
121848b8605Smrg
122848b8605Smrg_X_EXPORT GLXPixmap
123848b8605SmrgglXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
124848b8605Smrg                       Pixmap pixmap, Colormap cmap)
125848b8605Smrg{
126848b8605Smrg   (void) dpy;
127848b8605Smrg   (void) visual;
128848b8605Smrg   (void) pixmap;
129848b8605Smrg   (void) cmap;
130848b8605Smrg   return 0;
131848b8605Smrg}
132848b8605Smrg
133848b8605Smrg
134848b8605Smrg/**
135848b8605Smrg * GLX_MESA_copy_sub_buffer
136848b8605Smrg */
137848b8605Smrgvoid
138848b8605SmrgglXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
139848b8605Smrg                     int x, int y, int width, int height)
140848b8605Smrg{
141848b8605Smrg   (void) dpy;
142848b8605Smrg   (void) drawable;
143848b8605Smrg   (void) x;
144848b8605Smrg   (void) y;
145848b8605Smrg   (void) width;
146848b8605Smrg   (void) height;
147848b8605Smrg}
148848b8605Smrg
149848b8605Smrg
150848b8605Smrg_X_EXPORT int
151848b8605SmrgglXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
152848b8605Smrg                       int attribute, unsigned int *value)
153848b8605Smrg{
154848b8605Smrg   (void) dpy;
155848b8605Smrg   (void) drawable;
156848b8605Smrg   (void) attribute;
157848b8605Smrg   (void) value;
158848b8605Smrg   return 0;
159848b8605Smrg}
160848b8605Smrg
161848b8605Smrg_X_EXPORT GLXDrawable
162848b8605SmrgglXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
163848b8605Smrg                        unsigned int width, unsigned int height,
164848b8605Smrg                        int *attrib_list)
165848b8605Smrg{
166848b8605Smrg   (void) dpy;
167848b8605Smrg   (void) config;
168848b8605Smrg   (void) width;
169848b8605Smrg   (void) height;
170848b8605Smrg   (void) attrib_list;
171848b8605Smrg   return None;
172848b8605Smrg}
173848b8605Smrg
174848b8605Smrg#if 0
175848b8605Smrg/* GLX_SGIX_fbconfig */
176848b8605Smrg_X_EXPORT int
177848b8605SmrgglXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
178848b8605Smrg{
179848b8605Smrg   (void) dpy;
180848b8605Smrg   (void) config;
181848b8605Smrg   (void) a;
182848b8605Smrg   (void) b;
183848b8605Smrg   return 0;
184848b8605Smrg}
185848b8605Smrg
186848b8605Smrg_X_EXPORT void *
187848b8605SmrgglXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
188848b8605Smrg{
189848b8605Smrg   (void) dpy;
190848b8605Smrg   (void) a;
191848b8605Smrg   (void) b;
192848b8605Smrg   (void) c;
193848b8605Smrg   return NULL;
194848b8605Smrg}
195848b8605Smrg
196848b8605Smrg_X_EXPORT GLXPixmap
197848b8605SmrgglXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
198848b8605Smrg{
199848b8605Smrg   (void) dpy;
200848b8605Smrg   (void) config;
201848b8605Smrg   (void) p;
202848b8605Smrg   return None;
203848b8605Smrg}
204848b8605Smrg
205848b8605Smrg_X_EXPORT GLXContext
206848b8605SmrgglXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
207848b8605Smrg                               GLXContext b, Bool c)
208848b8605Smrg{
209848b8605Smrg   (void) dpy;
210848b8605Smrg   (void) config;
211848b8605Smrg   (void) a;
212848b8605Smrg   (void) b;
213848b8605Smrg   (void) c;
214848b8605Smrg   return NULL;
215848b8605Smrg}
216848b8605Smrg
217848b8605Smrg_X_EXPORT XVisualInfo *
218848b8605SmrgglXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
219848b8605Smrg{
220848b8605Smrg   (void) dpy;
221848b8605Smrg   (void) config;
222848b8605Smrg   return NULL;
223848b8605Smrg}
224848b8605Smrg
225848b8605Smrg_X_EXPORT void *
226848b8605SmrgglXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
227848b8605Smrg{
228848b8605Smrg   (void) dpy;
229848b8605Smrg   (void) visinfo;
230848b8605Smrg   return NULL;
231848b8605Smrg}
232848b8605Smrg#endif
233