summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/glxapi.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-08-22 21:10:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-08-22 21:10:01 +0000
commit8fefafa2200d3ea44ec46592b190654a10685b46 (patch)
tree8f2b18392d6f842fabf93866bb73917bacc84bd7 /src/mesa/drivers/x11/glxapi.c
parent2188d002df22ac4495444fa7705af1963508f766 (diff)
stub functions for glXAllocate/FreeMemoryNV()
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r--src/mesa/drivers/x11/glxapi.c35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index c35d287816..7b36d41964 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 */
};