summaryrefslogtreecommitdiff
path: root/include/GL
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-02-26 03:51:17 +0000
committerDave Airlie <airliedfreedesktop.org>2005-02-26 03:51:17 +0000
commit24dcc6b6bf995f663641f75c72d528510bee1fb2 (patch)
treebbe58a72b1d86d270cd2f41d216ae1128c784139 /include/GL
parentf3a6e4fa5b40f2ae09e43b4fe0d46244e96f6505 (diff)
Add GLX_MESA_allocate_memory from Xorg glx.h
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/glx.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/GL/glx.h b/include/GL/glx.h
index bfaac77807..f9feb7fd1d 100644
--- a/include/GL/glx.h
+++ b/include/GL/glx.h
@@ -483,6 +483,21 @@ typedef GLuint (* PFNGLXGETAGPOFFSETMESAPROC) (const GLvoid *pointer);
/*
+ * ???. 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 */
+
+/*
* ARB ?. GLX_ARB_render_texture
*/
#ifndef GLX_ARB_render_texture