xlib: remove empty GLX_NV_vertex_array_range stubs

The extension was never implemented and seemingly never will.
The DRI based libGL dropped support for it over 10 years ago.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Emil Velikov
2017-11-29 14:32:36 +00:00
committed by Emil Velikov
parent e20830db96
commit b1e7386f1b
3 changed files with 0 additions and 68 deletions

View File

@@ -2759,28 +2759,6 @@ Fake_glXSet3DfxModeMESA( int mode )
/*** GLX_NV_vertex_array range ***/
static void *
Fake_glXAllocateMemoryNV( GLsizei size,
GLfloat readFrequency,
GLfloat writeFrequency,
GLfloat priority )
{
(void) size;
(void) readFrequency;
(void) writeFrequency;
(void) priority;
return NULL;
}
static void
Fake_glXFreeMemoryNV( GLvoid *pointer )
{
(void) pointer;
}
/*** GLX_MESA_agp_offset ***/
static GLuint
@@ -3009,10 +2987,6 @@ _mesa_GetGLXDispatchTable(void)
/*** GLX_MESA_set_3dfx_mode ***/
glx.Set3DfxModeMESA = Fake_glXSet3DfxModeMESA;
/*** GLX_NV_vertex_array_range ***/
glx.AllocateMemoryNV = Fake_glXAllocateMemoryNV;
glx.FreeMemoryNV = Fake_glXFreeMemoryNV;
/*** GLX_MESA_agp_offset ***/
glx.GetAGPOffsetMESA = Fake_glXGetAGPOffsetMESA;

View File

@@ -1019,37 +1019,6 @@ glXSet3DfxModeMESA(int mode)
/*** GLX_NV_vertex_array_range ***/
void PUBLIC *
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 PUBLIC
glXFreeMemoryNV( GLvoid *pointer )
{
struct _glxapi_table *t;
Display *dpy = glXGetCurrentDisplay();
GET_DISPATCH(dpy, t);
if (!t)
return;
t->FreeMemoryNV(pointer);
}
/*** GLX_MESA_agp_offset */
GLuint PUBLIC
@@ -1288,10 +1257,6 @@ static struct name_address_pair GLX_functions[] = {
/*** GLX_ARB_get_proc_address ***/
{ "glXGetProcAddressARB", (__GLXextFuncPtr) glXGetProcAddressARB },
/*** GLX_NV_vertex_array_range ***/
{ "glXAllocateMemoryNV", (__GLXextFuncPtr) glXAllocateMemoryNV },
{ "glXFreeMemoryNV", (__GLXextFuncPtr) glXFreeMemoryNV },
/*** GLX_MESA_agp_offset ***/
{ "glXGetAGPOffsetMESA", (__GLXextFuncPtr) glXGetAGPOffsetMESA },

View File

@@ -186,13 +186,6 @@ struct _glxapi_table {
/*** GLX_MESA_set_3dfx_mode ***/
Bool (*Set3DfxModeMESA)(int mode);
/*** 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 );