summaryrefslogtreecommitdiff
path: root/src/glx/mini
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-02-15 08:40:24 +0000
committerDave Airlie <airliedfreedesktop.org>2005-02-15 08:40:24 +0000
commit09298228c64f14b6c74588a89f70b0de4d1ac6a4 (patch)
tree84ccb61599d7c1e0a022781088b18d6de4c5d97d /src/glx/mini
parente82cb7852b6d51325cbdbda2354f391bfea6d30b (diff)
add EnableExtension so r200 enables all its extensions, add mesa memory
extension entry points
Diffstat (limited to 'src/glx/mini')
-rw-r--r--src/glx/mini/miniglx.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index 51468dba79..5cd5eea9c7 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -2289,6 +2289,7 @@ void (*glXGetProcAddress(const GLubyte *procname))( void )
{ "__glXWindowExists", (void *) __glXWindowExists },
{ "__glXCreateContextModes", (void *) _gl_context_modes_create },
{ "__glXFindDRIScreen", (void *)__glXFindDRIScreen },
+ { "__glXScrEnableExtension", (void *)__glXScrEnableExtension },
{ NULL, NULL }
};
const struct name_address *entry;
@@ -2369,5 +2370,36 @@ glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config )
return config.visInfo;
}
+void *glXAllocateMemoryMESA(Display *dpy, int scrn,
+ size_t size, float readFreq,
+ float writeFreq, float priority)
+{
+ if (dpy->driScreen.private && dpy->driScreen.allocateMemory) {
+ return (*dpy->driScreen.allocateMemory)( dpy, scrn, size,
+ readFreq, writeFreq,
+ priority );
+ }
+}
+
+void glXFreeMemoryMESA(Display *dpy, int scrn, void *pointer){
+ if (dpy->driScreen.private && dpy->driScreen.freeMemory) {
+ (*dpy->driScreen.freeMemory)( dpy, scrn, pointer );
+ }
+}
+
+GLuint glXGetMemoryOffsetMESA( Display *dpy, int scrn,
+ const void *pointer )
+{
+ if (dpy->driScreen.private && dpy->driScreen.memoryOffset) {
+ return (*dpy->driScreen.memoryOffset)( dpy, scrn, pointer );
+ }
+}
+
+void
+__glXScrEnableExtension( void *psc, const char * name )
+{
+
+}
+
/*@}*/