From 8fefafa2200d3ea44ec46592b190654a10685b46 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 22 Aug 2002 21:10:01 +0000 Subject: stub functions for glXAllocate/FreeMemoryNV() --- src/mesa/drivers/x11/glxapi.c | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11/glxapi.c') 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 */ }; -- cgit v1.2.3