summaryrefslogtreecommitdiff
path: root/xc/include
diff options
context:
space:
mode:
authoridr <idr>2003-08-18 19:43:20 +0000
committeridr <idr>2003-08-18 19:43:20 +0000
commit93a69f4c6d0b014a5b21deb46e5f9d12dce7e64d (patch)
tree3b8521200f9331ef7fe5056c9feb50793a963d62 /xc/include
parent4e6ea33131dc3567008f1f0b8f9108250b88d4fa (diff)
Added libGL support for MESA_allocate_memory (which replaces
MESA_agp_offset and the allocator from NV_vertex_array_range).
Diffstat (limited to 'xc/include')
-rw-r--r--xc/include/GL/glx.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/xc/include/GL/glx.h b/xc/include/GL/glx.h
index b02a237d8..910504a1d 100644
--- a/xc/include/GL/glx.h
+++ b/xc/include/GL/glx.h
@@ -156,7 +156,7 @@ typedef void ( * PFNGLXFREEMEMORYNVPROC) (GLvoid *pointer);
/*
- * ???. GLX_MESA_agp_offset
+ * ???. GLX_MESA_agp_offset (deprecated)
*/
#ifndef GLX_MESA_agp_offset
#define GLX_MESA_agp_offset 1
@@ -166,6 +166,22 @@ typedef GLuint (* PFNGLXGETAGPOFFSETMESAPROC) (const GLvoid *pointer);
#endif /* GLX_MESA_agp_offset */
+
+/*
+ * ???. GLX_MESA_allocate_memory
+ */
+#ifndef GLX_MESA_allocate_memory
+#define GLX_MESA_allocate_memory 1
+
+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);
+typedef void * ( * PFNGLXALLOCATEMEMORYMESAPROC) (Display *dpy, int scrn, size_t size, float readfreq, float writefreq, float priority);
+typedef void ( * PFNGLXFREEMEMORYMESAPROC) (Display *dpy, int scrn, void *pointer);
+typedef GLuint (* PFNGLXGETMEMORYOFFSETMESAPROC) (Display *dpy, int scrn, const void *pointer);
+
+#endif /* GLX_MESA_allocate_memory */
+
/*
* ???. GLX_ARB_render_texture
*/