From: Dave Airlie Date: Sat, 26 Feb 2005 03:51:17 +0000 (+0000) Subject: Add GLX_MESA_allocate_memory from Xorg glx.h X-Git-Tag: mesa-7.8~9574 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24dcc6b6bf995f663641f75c72d528510bee1fb2;p=platform%2Fupstream%2Fmesa.git Add GLX_MESA_allocate_memory from Xorg glx.h --- diff --git a/include/GL/glx.h b/include/GL/glx.h index bfaac77..f9feb7f 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