add EnableExtension so r200 enables all its extensions, add mesa memory
authorDave Airlie <airliedfreedesktop.org>
Tue, 15 Feb 2005 08:40:24 +0000 (08:40 +0000)
committerDave Airlie <airliedfreedesktop.org>
Tue, 15 Feb 2005 08:40:24 +0000 (08:40 +0000)
extension entry points

include/GL/miniglx.h
src/glx/mini/miniglx.c

index 1a6304f6ba128ebf14c2108965b6b0d0eec4b732..4af7ec1141eed6916193bb077296c096df6da2cc 100644 (file)
@@ -440,6 +440,19 @@ glXChooseFBConfig( Display *dpy, int screen, const int *attribList,
 extern XVisualInfo *
 glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config );
 
+extern void *glXAllocateMemoryMESA(Display *dpy, int scrn,
+                                  size_t size, float readFreq,
+                                  float writeFreq, float priority);
+
+extern void glXFreeMemoryMESA(Display *dpy, int scrn, void *pointer);
+
+extern GLuint glXGetMemoryOffsetMESA( Display *dpy, int scrn,
+                                     const void *pointer );
+/*@}*/
+
+extern void
+__glXScrEnableExtension( void *, const char * name );
+
 /*@}*/
 
 
index 51468dba797a6e4aebf121e34692c25e760cf947..5cd5eea9c7d50146097dfbc7180366a5765954e5 100644 (file)
@@ -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 )
+{
+
+}
+
 
 /*@}*/