diff options
author | Brian Paul <[email protected]> | 2002-08-22 21:10:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-08-22 21:10:01 +0000 |
commit | 8fefafa2200d3ea44ec46592b190654a10685b46 (patch) | |
tree | 8f2b18392d6f842fabf93866bb73917bacc84bd7 /src/mesa/drivers/x11/glxapi.c | |
parent | 2188d002df22ac4495444fa7705af1963508f766 (diff) |
stub functions for glXAllocate/FreeMemoryNV()
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r-- | src/mesa/drivers/x11/glxapi.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c index c35d2878165..7b36d419641 100644 --- a/src/mesa/drivers/x11/glxapi.c +++ b/src/mesa/drivers/x11/glxapi.c @@ -1,4 +1,4 @@ -/* $Id: glxapi.c,v 1.29 2002/03/15 18:33:12 brianp Exp $ */ +/* $Id: glxapi.c,v 1.30 2002/08/22 21:10:01 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -988,6 +988,35 @@ Bool glXSet3DfxModeMESA(int mode) +/*** AGP memory allocation ***/ + +void * +glXAllocateMemoryNV( GLsizei size, + GLfloat readFrequency, + GLfloat writeFrequency, + GLfloat priority ) +{ + struct _glxapi_table *t; + Display *dpy = glXGetCurrentDisplay(); + GET_DISPATCH(dpy, t); + if (!t) + return NULL; + return (t->AllocateMemoryNV)(size, readFrequency, writeFrequency, priority); +} + + +void +glXFreeMemoryNV( GLvoid *pointer ) +{ + struct _glxapi_table *t; + Display *dpy = glXGetCurrentDisplay(); + GET_DISPATCH(dpy, t); + if (!t) + return; + (t->FreeMemoryNV)(pointer); +} + + /**********************************************************************/ /* GLX API management functions */ @@ -1198,6 +1227,10 @@ static struct name_address_pair GLX_functions[] = { /*** GLX_ARB_get_proc_address ***/ { "glXGetProcAddressARB", (GLvoid *) glXGetProcAddressARB }, + /*** GLX AGP memory allocation ***/ + { "glXAllocateMemoryNV", (GLvoid *) glXAllocateMemoryNV }, + { "glXFreeMemoryNV", (GLvoid *) glXFreeMemoryNV }, + { NULL, NULL } /* end of list */ }; |