From d3f6b0559f1465fa87b67e2e7f47e7ea9e95450f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 8 Oct 2002 23:16:26 +0000 Subject: [PATCH] added missing dispatch code for new AGP-related functions --- src/mesa/drivers/x11/glxapi.h | 7 +++++-- src/mesa/drivers/x11/realglx.c | 7 +++++-- src/mesa/drivers/x11/realglx.h | 14 +++++++++++++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/x11/glxapi.h b/src/mesa/drivers/x11/glxapi.h index dc95a44ae1a..2bb2ff5208d 100644 --- a/src/mesa/drivers/x11/glxapi.h +++ b/src/mesa/drivers/x11/glxapi.h @@ -1,4 +1,4 @@ -/* $Id: glxapi.h,v 1.13 2002/08/22 21:10:01 brianp Exp $ */ +/* $Id: glxapi.h,v 1.14 2002/10/08 23:16:26 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -196,12 +196,15 @@ struct _glxapi_table { /*** GLX_MESA_set_3dfx_mode ***/ Bool (*Set3DfxModeMESA)(int mode); - /*** GLX AGP functions ***/ + /*** GLX_NV_vertex_array_range ***/ void * (*AllocateMemoryNV)( GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority ); void (*FreeMemoryNV)( GLvoid *pointer ); + + /*** GLX_MESA_agp_offset ***/ + GLuint (*GetAGPOffsetMESA)( const GLvoid *pointer ); }; diff --git a/src/mesa/drivers/x11/realglx.c b/src/mesa/drivers/x11/realglx.c index eb3449ad41b..74998433665 100644 --- a/src/mesa/drivers/x11/realglx.c +++ b/src/mesa/drivers/x11/realglx.c @@ -1,4 +1,4 @@ -/* $Id: realglx.c,v 1.5 2002/08/22 21:10:01 brianp Exp $ */ +/* $Id: realglx.c,v 1.6 2002/10/08 23:16:27 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -170,9 +170,12 @@ _real_GetGLXDispatchTable(void) /*** GLX_MESA_set_3dfx_mode ***/ glx.Set3DfxModeMESA = _real_glXSet3DfxModeMESA; - /*** GLX AGP memory allocation ***/ + /*** GLX_NV_vertex_array_range ***/ glx.AllocateMemoryNV = _real_glXAllocateMemoryNV; glx.FreeMemoryNV = _real_glXFreeMemoryNV; + /*** GLX_MESA_agp_offset ***/ + glx.GetAGPOffsetMESA = _real_glXGetAGPOffsetMESA; + return &glx; } diff --git a/src/mesa/drivers/x11/realglx.h b/src/mesa/drivers/x11/realglx.h index bec158a9658..f7c2b6470a8 100644 --- a/src/mesa/drivers/x11/realglx.h +++ b/src/mesa/drivers/x11/realglx.h @@ -1,4 +1,4 @@ -/* $Id: realglx.h,v 1.4 2001/05/30 14:39:47 brianp Exp $ */ +/* $Id: realglx.h,v 1.5 2002/10/08 23:16:27 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -306,6 +306,18 @@ extern Bool _real_glXSet3DfxModeMESA( int mode ); #endif +#ifdef GLX_NV_vertex_array_range +extern void * +_real_glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); +extern void +_real_glXFreeMemoryNV(GLvoid *pointer); +#endif + +#ifdef GLX_MESA_agp_offset +extern GLuint +_real_glXGetAGPOffsetMESA(const GLvoid *pointer); +#endif + #ifdef GLX_MESA_copy_sub_buffer extern void _real_glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable, -- 2.30.2