From cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 19 Jul 2010 15:15:15 -0400 Subject: glx: Drop support for GLX_MESA_allocate_memory Only r200 implemented it. --- src/glx/apple/gen_exports.tcl | 3 +-- src/glx/apple/glx_empty.c | 46 ------------------------------------------- 2 files changed, 1 insertion(+), 48 deletions(-) (limited to 'src/glx/apple') diff --git a/src/glx/apple/gen_exports.tcl b/src/glx/apple/gen_exports.tcl index acfe6e6a9e..ed76929d8a 100644 --- a/src/glx/apple/gen_exports.tcl +++ b/src/glx/apple/gen_exports.tcl @@ -82,8 +82,7 @@ proc main {argc argv} { glXBindSwapBarrierSGIX glXQueryMaxSwapBarriersSGIX \ glXGetSyncValuesOML glXSwapBuffersMscOML \ glXWaitForMscOML glXWaitForSbcOML \ - glXAllocateMemoryMESA glXFreeMemoryMESA \ - glXGetMemoryOffsetMESA glXReleaseBuffersMESA \ + glXReleaseBuffersMESA \ glXCreateGLXPixmapMESA glXCopySubBufferMESA \ glXQueryGLXPbufferSGIX glXCreateGLXPbufferSGIX \ glXDestroyGLXPbufferSGIX glXSelectEventSGIX \ diff --git a/src/glx/apple/glx_empty.c b/src/glx/apple/glx_empty.c index 44c5a256f2..e19bf05d47 100644 --- a/src/glx/apple/glx_empty.c +++ b/src/glx/apple/glx_empty.c @@ -191,52 +191,6 @@ glXWaitForSbcOML(Display * dpy, GLXDrawable drawable, } -/** - * 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) { -- cgit v1.2.3