summaryrefslogtreecommitdiffstats
path: root/src/glx/apple/glx_empty.c
diff options
context:
space:
mode:
authorJeremy Huddleston <[email protected]>2010-04-01 17:00:22 -0700
committerJeremy Huddleston <[email protected]>2010-04-01 17:01:51 -0700
commit115203281cf791221f586f03c14cfe4e0a44dd7a (patch)
tree767951e542d416243041b964dd252e030cfadf5e /src/glx/apple/glx_empty.c
parent9aadc793f3db64cefa0b08f18abad424a659dacc (diff)
Revert accidental commits from the xquartz tree
This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc. This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1. This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787. This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890. This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b. This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b. This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae. This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
Diffstat (limited to 'src/glx/apple/glx_empty.c')
-rw-r--r--src/glx/apple/glx_empty.c375
1 files changed, 0 insertions, 375 deletions
diff --git a/src/glx/apple/glx_empty.c b/src/glx/apple/glx_empty.c
deleted file mode 100644
index 44c5a256f20..00000000000
--- a/src/glx/apple/glx_empty.c
+++ /dev/null
@@ -1,375 +0,0 @@
-#include "glxclient.h"
-#include "glxextensions.h"
-#include "glcontextmodes.h"
-
-/*
-** GLX_SGI_swap_control
-*/
-int
-glXSwapIntervalSGI(int interval)
-{
- (void) interval;
- return 0;
-}
-
-
-/*
-** GLX_MESA_swap_control
-*/
-int
-glXSwapIntervalMESA(unsigned int interval)
-{
- (void) interval;
- return GLX_BAD_CONTEXT;
-}
-
-
-int
-glXGetSwapIntervalMESA(void)
-{
- return 0;
-}
-
-
-/*
-** GLX_MESA_swap_frame_usage
-*/
-
-int
-glXBeginFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
-{
- int status = GLX_BAD_CONTEXT;
- (void) dpy;
- (void) drawable;
- return status;
-}
-
-
-int
-glXEndFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
-{
- int status = GLX_BAD_CONTEXT;
- (void) dpy;
- (void) drawable;
- return status;
-}
-
-
-int
-glXGetFrameUsageMESA(Display * dpy, GLXDrawable drawable, GLfloat * usage)
-{
- int status = GLX_BAD_CONTEXT;
- (void) dpy;
- (void) drawable;
- (void) usage;
- return status;
-}
-
-int
-glXQueryFrameTrackingMESA(Display * dpy, GLXDrawable drawable,
- int64_t * sbc, int64_t * missedFrames,
- GLfloat * lastMissedUsage)
-{
- int status = GLX_BAD_CONTEXT;
- (void) dpy;
- (void) drawable;
- (void) sbc;
- (void) missedFrames;
- (void) lastMissedUsage;
- return status;
-}
-
-/*
-** GLX_SGI_video_sync
-*/
-int
-glXGetVideoSyncSGI(unsigned int *count)
-{
- (void) count;
- return GLX_BAD_CONTEXT;
-}
-
-int
-glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
-{
- (void) count;
- return GLX_BAD_CONTEXT;
-}
-
-
-/*
-** GLX_SGIX_swap_group
-*/
-void
-glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member)
-{
- (void) dpy;
- (void) drawable;
- (void) member;
-}
-
-
-/*
-** GLX_SGIX_swap_barrier
-*/
-void
-glXBindSwapBarrierSGIX(Display * dpy, GLXDrawable drawable, int barrier)
-{
- (void) dpy;
- (void) drawable;
- (void) barrier;
-}
-
-Bool
-glXQueryMaxSwapBarriersSGIX(Display * dpy, int screen, int *max)
-{
- (void) dpy;
- (void) screen;
- (void) max;
- return False;
-}
-
-
-/*
-** GLX_OML_sync_control
-*/
-Bool
-glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
- int64_t * ust, int64_t * msc, int64_t * sbc)
-{
- (void) dpy;
- (void) drawable;
- (void) ust;
- (void) msc;
- (void) sbc;
- return False;
-}
-
-int64_t
-glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
- int64_t target_msc, int64_t divisor, int64_t remainder)
-{
- (void) dpy;
- (void) drawable;
- (void) target_msc;
- (void) divisor;
- (void) remainder;
- return 0;
-}
-
-
-Bool
-glXWaitForMscOML(Display * dpy, GLXDrawable drawable,
- int64_t target_msc, int64_t divisor,
- int64_t remainder, int64_t * ust,
- int64_t * msc, int64_t * sbc)
-{
- (void) dpy;
- (void) drawable;
- (void) target_msc;
- (void) divisor;
- (void) remainder;
- (void) ust;
- (void) msc;
- (void) sbc;
- return False;
-}
-
-
-Bool
-glXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
- int64_t target_sbc, int64_t * ust,
- int64_t * msc, int64_t * sbc)
-{
- (void) dpy;
- (void) drawable;
- (void) target_sbc;
- (void) ust;
- (void) msc;
- (void) sbc;
- return False;
-}
-
-
-/**
- * GLX_MESA_allocate_memory
- */
-/*@{*/
-
-PUBLIC void *
-glXAllocateMemoryMESA(Display * dpy, int scrn,
- size_t size, float readFreq,
- float writeFreq, float priority)
-{
- (void) dpy;
- (void) scrn;
- (void) size;
- (void) readFreq;
- (void) writeFreq;
- (void) priority;
- return NULL;
-}
-
-
-PUBLIC void
-glXFreeMemoryMESA(Display * dpy, int scrn, void *pointer)
-{
-#ifdef __DRI_ALLOCATE
- __GLXscreenConfigs *const psc = GetGLXScreenConfigs(dpy, scrn);
-
- if (psc && psc->allocate)
- (*psc->allocate->freeMemory) (psc->__driScreen, pointer);
-
-#else
- (void) dpy;
- (void) scrn;
- (void) pointer;
-#endif /* __DRI_ALLOCATE */
-}
-
-
-PUBLIC GLuint
-glXGetMemoryOffsetMESA(Display * dpy, int scrn, const void *pointer)
-{
- (void) dpy;
- (void) scrn;
- (void) pointer;
- return ~0L;
-}
-
-Bool
-glXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
-{
- (void) dpy;
- (void) d;
- return False;
-}
-
-
-PUBLIC GLXPixmap
-glXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
- Pixmap pixmap, Colormap cmap)
-{
- (void) dpy;
- (void) visual;
- (void) pixmap;
- (void) cmap;
- return 0;
-}
-
-
-/**
- * GLX_MESA_copy_sub_buffer
- */
-void
-glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
- int x, int y, int width, int height)
-{
- (void) dpy;
- (void) drawable;
- (void) x;
- (void) y;
- (void) width;
- (void) height;
-}
-
-
-PUBLIC int
-glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
- int attribute, unsigned int *value)
-{
- (void) dpy;
- (void) drawable;
- (void) attribute;
- (void) value;
- return 0;
-}
-
-PUBLIC GLXDrawable
-glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
- unsigned int width, unsigned int height,
- int *attrib_list)
-{
- (void) dpy;
- (void) config;
- (void) width;
- (void) height;
- (void) attrib_list;
- return None;
-}
-
-#if 0
-/* GLX_SGIX_fbconfig */
-PUBLIC int
-glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
-{
- (void) dpy;
- (void) config;
- (void) a;
- (void) b;
- return 0;
-}
-
-PUBLIC void *
-glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
-{
- (void) dpy;
- (void) a;
- (void) b;
- (void) c;
- return NULL;
-}
-
-PUBLIC GLXPixmap
-glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
-{
- (void) dpy;
- (void) config;
- (void) p;
- return None;
-}
-
-PUBLIC GLXContext
-glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
- GLXContext b, Bool c)
-{
- (void) dpy;
- (void) config;
- (void) a;
- (void) b;
- (void) c;
- return NULL;
-}
-
-PUBLIC XVisualInfo *
-glXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
-{
- (void) dpy;
- (void) config;
- return NULL;
-}
-
-PUBLIC void *
-glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
-{
- (void) dpy;
- (void) visinfo;
- return NULL;
-}
-#endif
-
-
-PUBLIC
-GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX,
- (Display * dpy, GLXDrawable pbuf),
- (dpy, pbuf), glXDestroyPbuffer)
-
- PUBLIC GLX_ALIAS_VOID(glXSelectEventSGIX,
- (Display * dpy, GLXDrawable drawable,
- unsigned long mask), (dpy, drawable, mask),
- glXSelectEvent)
-
- PUBLIC GLX_ALIAS_VOID(glXGetSelectedEventSGIX,
- (Display * dpy, GLXDrawable drawable,
- unsigned long *mask), (dpy, drawable, mask),
- glXGetSelectedEvent)