glx: Drop support for GLX_MESA_allocate_memory
[mesa.git] / src / glx / apple / glx_empty.c
1 #include "glxclient.h"
2 #include "glxextensions.h"
3 #include "glcontextmodes.h"
4
5 /*
6 ** GLX_SGI_swap_control
7 */
8 int
9 glXSwapIntervalSGI(int interval)
10 {
11 (void) interval;
12 return 0;
13 }
14
15
16 /*
17 ** GLX_MESA_swap_control
18 */
19 int
20 glXSwapIntervalMESA(unsigned int interval)
21 {
22 (void) interval;
23 return GLX_BAD_CONTEXT;
24 }
25
26
27 int
28 glXGetSwapIntervalMESA(void)
29 {
30 return 0;
31 }
32
33
34 /*
35 ** GLX_MESA_swap_frame_usage
36 */
37
38 int
39 glXBeginFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
40 {
41 int status = GLX_BAD_CONTEXT;
42 (void) dpy;
43 (void) drawable;
44 return status;
45 }
46
47
48 int
49 glXEndFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
50 {
51 int status = GLX_BAD_CONTEXT;
52 (void) dpy;
53 (void) drawable;
54 return status;
55 }
56
57
58 int
59 glXGetFrameUsageMESA(Display * dpy, GLXDrawable drawable, GLfloat * usage)
60 {
61 int status = GLX_BAD_CONTEXT;
62 (void) dpy;
63 (void) drawable;
64 (void) usage;
65 return status;
66 }
67
68 int
69 glXQueryFrameTrackingMESA(Display * dpy, GLXDrawable drawable,
70 int64_t * sbc, int64_t * missedFrames,
71 GLfloat * lastMissedUsage)
72 {
73 int status = GLX_BAD_CONTEXT;
74 (void) dpy;
75 (void) drawable;
76 (void) sbc;
77 (void) missedFrames;
78 (void) lastMissedUsage;
79 return status;
80 }
81
82 /*
83 ** GLX_SGI_video_sync
84 */
85 int
86 glXGetVideoSyncSGI(unsigned int *count)
87 {
88 (void) count;
89 return GLX_BAD_CONTEXT;
90 }
91
92 int
93 glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
94 {
95 (void) count;
96 return GLX_BAD_CONTEXT;
97 }
98
99
100 /*
101 ** GLX_SGIX_swap_group
102 */
103 void
104 glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member)
105 {
106 (void) dpy;
107 (void) drawable;
108 (void) member;
109 }
110
111
112 /*
113 ** GLX_SGIX_swap_barrier
114 */
115 void
116 glXBindSwapBarrierSGIX(Display * dpy, GLXDrawable drawable, int barrier)
117 {
118 (void) dpy;
119 (void) drawable;
120 (void) barrier;
121 }
122
123 Bool
124 glXQueryMaxSwapBarriersSGIX(Display * dpy, int screen, int *max)
125 {
126 (void) dpy;
127 (void) screen;
128 (void) max;
129 return False;
130 }
131
132
133 /*
134 ** GLX_OML_sync_control
135 */
136 Bool
137 glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
138 int64_t * ust, int64_t * msc, int64_t * sbc)
139 {
140 (void) dpy;
141 (void) drawable;
142 (void) ust;
143 (void) msc;
144 (void) sbc;
145 return False;
146 }
147
148 int64_t
149 glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
150 int64_t target_msc, int64_t divisor, int64_t remainder)
151 {
152 (void) dpy;
153 (void) drawable;
154 (void) target_msc;
155 (void) divisor;
156 (void) remainder;
157 return 0;
158 }
159
160
161 Bool
162 glXWaitForMscOML(Display * dpy, GLXDrawable drawable,
163 int64_t target_msc, int64_t divisor,
164 int64_t remainder, int64_t * ust,
165 int64_t * msc, int64_t * sbc)
166 {
167 (void) dpy;
168 (void) drawable;
169 (void) target_msc;
170 (void) divisor;
171 (void) remainder;
172 (void) ust;
173 (void) msc;
174 (void) sbc;
175 return False;
176 }
177
178
179 Bool
180 glXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
181 int64_t target_sbc, int64_t * ust,
182 int64_t * msc, int64_t * sbc)
183 {
184 (void) dpy;
185 (void) drawable;
186 (void) target_sbc;
187 (void) ust;
188 (void) msc;
189 (void) sbc;
190 return False;
191 }
192
193
194 Bool
195 glXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
196 {
197 (void) dpy;
198 (void) d;
199 return False;
200 }
201
202
203 PUBLIC GLXPixmap
204 glXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
205 Pixmap pixmap, Colormap cmap)
206 {
207 (void) dpy;
208 (void) visual;
209 (void) pixmap;
210 (void) cmap;
211 return 0;
212 }
213
214
215 /**
216 * GLX_MESA_copy_sub_buffer
217 */
218 void
219 glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
220 int x, int y, int width, int height)
221 {
222 (void) dpy;
223 (void) drawable;
224 (void) x;
225 (void) y;
226 (void) width;
227 (void) height;
228 }
229
230
231 PUBLIC int
232 glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
233 int attribute, unsigned int *value)
234 {
235 (void) dpy;
236 (void) drawable;
237 (void) attribute;
238 (void) value;
239 return 0;
240 }
241
242 PUBLIC GLXDrawable
243 glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
244 unsigned int width, unsigned int height,
245 int *attrib_list)
246 {
247 (void) dpy;
248 (void) config;
249 (void) width;
250 (void) height;
251 (void) attrib_list;
252 return None;
253 }
254
255 #if 0
256 /* GLX_SGIX_fbconfig */
257 PUBLIC int
258 glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
259 {
260 (void) dpy;
261 (void) config;
262 (void) a;
263 (void) b;
264 return 0;
265 }
266
267 PUBLIC void *
268 glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
269 {
270 (void) dpy;
271 (void) a;
272 (void) b;
273 (void) c;
274 return NULL;
275 }
276
277 PUBLIC GLXPixmap
278 glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
279 {
280 (void) dpy;
281 (void) config;
282 (void) p;
283 return None;
284 }
285
286 PUBLIC GLXContext
287 glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
288 GLXContext b, Bool c)
289 {
290 (void) dpy;
291 (void) config;
292 (void) a;
293 (void) b;
294 (void) c;
295 return NULL;
296 }
297
298 PUBLIC XVisualInfo *
299 glXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
300 {
301 (void) dpy;
302 (void) config;
303 return NULL;
304 }
305
306 PUBLIC void *
307 glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
308 {
309 (void) dpy;
310 (void) visinfo;
311 return NULL;
312 }
313 #endif
314
315
316 PUBLIC
317 GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX,
318 (Display * dpy, GLXDrawable pbuf),
319 (dpy, pbuf), glXDestroyPbuffer)
320
321 PUBLIC GLX_ALIAS_VOID(glXSelectEventSGIX,
322 (Display * dpy, GLXDrawable drawable,
323 unsigned long mask), (dpy, drawable, mask),
324 glXSelectEvent)
325
326 PUBLIC GLX_ALIAS_VOID(glXGetSelectedEventSGIX,
327 (Display * dpy, GLXDrawable drawable,
328 unsigned long *mask), (dpy, drawable, mask),
329 glXGetSelectedEvent)