xref: /third_party/mesa3d/src/glx/apple/glx_empty.c (revision bf215546)
1#include "glxclient.h"
2#include "glxextensions.h"
3#include "glxconfig.h"
4
5/*
6** GLX_SGI_swap_control
7*/
8int
9glXSwapIntervalSGI(int interval)
10{
11   (void) interval;
12   return 0;
13}
14
15
16/*
17** GLX_MESA_swap_control
18*/
19int
20glXSwapIntervalMESA(unsigned int interval)
21{
22   (void) interval;
23   return GLX_BAD_CONTEXT;
24}
25
26
27int
28glXGetSwapIntervalMESA(void)
29{
30   return 0;
31}
32
33
34/*
35** GLX_SGI_video_sync
36*/
37int
38glXGetVideoSyncSGI(unsigned int *count)
39{
40   (void) count;
41   return GLX_BAD_CONTEXT;
42}
43
44int
45glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
46{
47   (void) count;
48   return GLX_BAD_CONTEXT;
49}
50
51
52/*
53** GLX_OML_sync_control
54*/
55Bool
56glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
57                    int64_t * ust, int64_t * msc, int64_t * sbc)
58{
59   (void) dpy;
60   (void) drawable;
61   (void) ust;
62   (void) msc;
63   (void) sbc;
64   return False;
65}
66
67int64_t
68glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
69                     int64_t target_msc, int64_t divisor, int64_t remainder)
70{
71   (void) dpy;
72   (void) drawable;
73   (void) target_msc;
74   (void) divisor;
75   (void) remainder;
76   return 0;
77}
78
79
80Bool
81glXWaitForMscOML(Display * dpy, GLXDrawable drawable,
82                 int64_t target_msc, int64_t divisor,
83                 int64_t remainder, int64_t * ust,
84                 int64_t * msc, int64_t * sbc)
85{
86   (void) dpy;
87   (void) drawable;
88   (void) target_msc;
89   (void) divisor;
90   (void) remainder;
91   (void) ust;
92   (void) msc;
93   (void) sbc;
94   return False;
95}
96
97
98Bool
99glXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
100                 int64_t target_sbc, int64_t * ust,
101                 int64_t * msc, int64_t * sbc)
102{
103   (void) dpy;
104   (void) drawable;
105   (void) target_sbc;
106   (void) ust;
107   (void) msc;
108   (void) sbc;
109   return False;
110}
111
112
113Bool
114glXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
115{
116   (void) dpy;
117   (void) d;
118   return False;
119}
120
121
122_X_EXPORT GLXPixmap
123glXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
124                       Pixmap pixmap, Colormap cmap)
125{
126   (void) dpy;
127   (void) visual;
128   (void) pixmap;
129   (void) cmap;
130   return 0;
131}
132
133
134/**
135 * GLX_MESA_copy_sub_buffer
136 */
137void
138glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
139                     int x, int y, int width, int height)
140{
141   (void) dpy;
142   (void) drawable;
143   (void) x;
144   (void) y;
145   (void) width;
146   (void) height;
147}
148
149
150_X_EXPORT void
151glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
152                       int attribute, unsigned int *value)
153{
154   (void) dpy;
155   (void) drawable;
156   (void) attribute;
157   (void) value;
158}
159
160_X_EXPORT GLXDrawable
161glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
162                        unsigned int width, unsigned int height,
163                        int *attrib_list)
164{
165   (void) dpy;
166   (void) config;
167   (void) width;
168   (void) height;
169   (void) attrib_list;
170   return None;
171}
172
173#if 0
174/* GLX_SGIX_fbconfig */
175_X_EXPORT int
176glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
177{
178   (void) dpy;
179   (void) config;
180   (void) a;
181   (void) b;
182   return 0;
183}
184
185_X_EXPORT void *
186glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
187{
188   (void) dpy;
189   (void) a;
190   (void) b;
191   (void) c;
192   return NULL;
193}
194
195_X_EXPORT GLXPixmap
196glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
197{
198   (void) dpy;
199   (void) config;
200   (void) p;
201   return None;
202}
203
204_X_EXPORT GLXContext
205glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
206                               GLXContext b, Bool c)
207{
208   (void) dpy;
209   (void) config;
210   (void) a;
211   (void) b;
212   (void) c;
213   return NULL;
214}
215
216_X_EXPORT XVisualInfo *
217glXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
218{
219   (void) dpy;
220   (void) config;
221   return NULL;
222}
223
224_X_EXPORT void *
225glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
226{
227   (void) dpy;
228   (void) visinfo;
229   return NULL;
230}
231#endif
232