2 #include "glxextensions.h"
3 #include "glcontextmodes.h"
6 ** GLX_SGI_swap_control
9 glXSwapIntervalSGI(int interval
)
17 ** GLX_MESA_swap_control
20 glXSwapIntervalMESA(unsigned int interval
)
23 return GLX_BAD_CONTEXT
;
28 glXGetSwapIntervalMESA(void)
35 ** GLX_MESA_swap_frame_usage
39 glXBeginFrameTrackingMESA(Display
* dpy
, GLXDrawable drawable
)
41 int status
= GLX_BAD_CONTEXT
;
49 glXEndFrameTrackingMESA(Display
* dpy
, GLXDrawable drawable
)
51 int status
= GLX_BAD_CONTEXT
;
59 glXGetFrameUsageMESA(Display
* dpy
, GLXDrawable drawable
, GLfloat
* usage
)
61 int status
= GLX_BAD_CONTEXT
;
69 glXQueryFrameTrackingMESA(Display
* dpy
, GLXDrawable drawable
,
70 int64_t * sbc
, int64_t * missedFrames
,
71 GLfloat
* lastMissedUsage
)
73 int status
= GLX_BAD_CONTEXT
;
78 (void) lastMissedUsage
;
86 glXGetVideoSyncSGI(unsigned int *count
)
89 return GLX_BAD_CONTEXT
;
93 glXWaitVideoSyncSGI(int divisor
, int remainder
, unsigned int *count
)
96 return GLX_BAD_CONTEXT
;
101 ** GLX_SGIX_swap_group
104 glXJoinSwapGroupSGIX(Display
* dpy
, GLXDrawable drawable
, GLXDrawable member
)
113 ** GLX_SGIX_swap_barrier
116 glXBindSwapBarrierSGIX(Display
* dpy
, GLXDrawable drawable
, int barrier
)
124 glXQueryMaxSwapBarriersSGIX(Display
* dpy
, int screen
, int *max
)
134 ** GLX_OML_sync_control
137 glXGetSyncValuesOML(Display
* dpy
, GLXDrawable drawable
,
138 int64_t * ust
, int64_t * msc
, int64_t * sbc
)
149 glXSwapBuffersMscOML(Display
* dpy
, GLXDrawable drawable
,
150 int64_t target_msc
, int64_t divisor
, int64_t remainder
)
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
)
180 glXWaitForSbcOML(Display
* dpy
, GLXDrawable drawable
,
181 int64_t target_sbc
, int64_t * ust
,
182 int64_t * msc
, int64_t * sbc
)
195 * GLX_MESA_allocate_memory
200 glXAllocateMemoryMESA(Display
* dpy
, int scrn
,
201 size_t size
, float readFreq
,
202 float writeFreq
, float priority
)
215 glXFreeMemoryMESA(Display
* dpy
, int scrn
, void *pointer
)
217 #ifdef __DRI_ALLOCATE
218 __GLXscreenConfigs
*const psc
= GetGLXScreenConfigs(dpy
, scrn
);
220 if (psc
&& psc
->allocate
)
221 (*psc
->allocate
->freeMemory
) (psc
->__driScreen
, pointer
);
227 #endif /* __DRI_ALLOCATE */
232 glXGetMemoryOffsetMESA(Display
* dpy
, int scrn
, const void *pointer
)
241 glXReleaseBuffersMESA(Display
* dpy
, GLXDrawable d
)
250 glXCreateGLXPixmapMESA(Display
* dpy
, XVisualInfo
* visual
,
251 Pixmap pixmap
, Colormap cmap
)
262 * GLX_MESA_copy_sub_buffer
265 glXCopySubBufferMESA(Display
* dpy
, GLXDrawable drawable
,
266 int x
, int y
, int width
, int height
)
278 glXQueryGLXPbufferSGIX(Display
* dpy
, GLXDrawable drawable
,
279 int attribute
, unsigned int *value
)
289 glXCreateGLXPbufferSGIX(Display
* dpy
, GLXFBConfig config
,
290 unsigned int width
, unsigned int height
,
302 /* GLX_SGIX_fbconfig */
304 glXGetFBConfigAttribSGIX(Display
* dpy
, void *config
, int a
, int *b
)
314 glXChooseFBConfigSGIX(Display
* dpy
, int a
, int *b
, int *c
)
324 glXCreateGLXPixmapWithConfigSGIX(Display
* dpy
, void *config
, Pixmap p
)
333 glXCreateContextWithConfigSGIX(Display
* dpy
, void *config
, int a
,
334 GLXContext b
, Bool c
)
345 glXGetVisualFromFBConfigSGIX(Display
* dpy
, void *config
)
353 glXGetFBConfigFromVisualSGIX(Display
* dpy
, XVisualInfo
* visinfo
)
363 GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX
,
364 (Display
* dpy
, GLXDrawable pbuf
),
365 (dpy
, pbuf
), glXDestroyPbuffer
)
367 PUBLIC
GLX_ALIAS_VOID(glXSelectEventSGIX
,
368 (Display
* dpy
, GLXDrawable drawable
,
369 unsigned long mask
), (dpy
, drawable
, mask
),
372 PUBLIC
GLX_ALIAS_VOID(glXGetSelectedEventSGIX
,
373 (Display
* dpy
, GLXDrawable drawable
,
374 unsigned long *mask
), (dpy
, drawable
, mask
),