mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
kill __driRegisterExtensions(), none of the functions did anything
This commit is contained in:
parent
5b98ada880
commit
ba3d643c49
6 changed files with 0 additions and 74 deletions
|
|
@ -176,9 +176,6 @@ extern void * __driCreateNewScreen( __DRInativeDisplay *dpy, int scrn, __DRIscre
|
||||||
extern void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
|
extern void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
|
||||||
int numConfigs, __GLXvisualConfig *config);
|
int numConfigs, __GLXvisualConfig *config);
|
||||||
|
|
||||||
/** This is optionally implemented in each driver */
|
|
||||||
extern void __driRegisterExtensions( void );
|
|
||||||
|
|
||||||
#endif /* DRI_NEW_INTERFACE_ONLY */
|
#endif /* DRI_NEW_INTERFACE_ONLY */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -524,8 +524,4 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv,
|
||||||
extern int
|
extern int
|
||||||
driCompareGLXAPIVersion( GLuint required_version );
|
driCompareGLXAPIVersion( GLuint required_version );
|
||||||
|
|
||||||
/** This is optionally implemented in each driver */
|
|
||||||
extern void
|
|
||||||
__driRegisterExtensions( void );
|
|
||||||
|
|
||||||
#endif /* _DRI_UTIL_H_ */
|
#endif /* _DRI_UTIL_H_ */
|
||||||
|
|
|
||||||
|
|
@ -578,12 +578,6 @@ static struct __DriverAPIRec fbAPI = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
__driRegisterExtensions( void )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the bootstrap function for the driver.
|
* This is the bootstrap function for the driver.
|
||||||
* The __driCreateScreen name is the symbol that libGL.so fetches.
|
* The __driCreateScreen name is the symbol that libGL.so fetches.
|
||||||
|
|
|
||||||
|
|
@ -443,32 +443,6 @@ mach64InitDriver( __DRIscreenPrivate *driScreen )
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _SOLO
|
|
||||||
/* This function is called by libGL.so as soon as libGL.so is loaded.
|
|
||||||
* This is where we register new extension functions with the dispatcher.
|
|
||||||
*/
|
|
||||||
void __driRegisterExtensions( void )
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
/* KW: This is handled differently in the other drivers, not sure
|
|
||||||
* what to do here.
|
|
||||||
*/
|
|
||||||
PFNGLXENABLEEXTENSIONPROC glx_enable_extension;
|
|
||||||
|
|
||||||
if ( driCompareGLXAPIVersion( 20030317 ) >= 0 ) {
|
|
||||||
glx_enable_extension = (PFNGLXENABLEEXTENSIONPROC)
|
|
||||||
glXGetProcAddress( (const GLubyte *) "__glXEnableExtension" );
|
|
||||||
|
|
||||||
if ( glx_enable_extension != NULL ) {
|
|
||||||
glx_enable_extension( "GLX_SGI_swap_control", GL_FALSE );
|
|
||||||
glx_enable_extension( "GLX_SGI_video_sync", GL_FALSE );
|
|
||||||
glx_enable_extension( "GLX_MESA_swap_control", GL_FALSE );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct __DriverAPIRec mach64API = {
|
static struct __DriverAPIRec mach64API = {
|
||||||
.InitDriver = mach64InitDriver,
|
.InitDriver = mach64InitDriver,
|
||||||
.DestroyScreen = mach64DestroyScreen,
|
.DestroyScreen = mach64DestroyScreen,
|
||||||
|
|
|
||||||
|
|
@ -335,36 +335,6 @@ r128InitDriver( __DRIscreenPrivate *sPriv )
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _SOLO
|
|
||||||
/**
|
|
||||||
* This function is called by libGL.so as soon as libGL.so is loaded.
|
|
||||||
* This is where we register new extension functions with the dispatcher.
|
|
||||||
*
|
|
||||||
* \todo This interface has been deprecated, so we should probably remove
|
|
||||||
* this function before the next XFree86 release.
|
|
||||||
*/
|
|
||||||
void __driRegisterExtensions( void )
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
/* KW: This is done slightly differently to the other drivers and
|
|
||||||
dri_interface.h doesn't seem to cope.
|
|
||||||
*/
|
|
||||||
PFNGLXENABLEEXTENSIONPROC
|
|
||||||
glx_enable_extension;
|
|
||||||
|
|
||||||
if ( driCompareGLXAPIVersion( 20030317 ) >= 0 ) {
|
|
||||||
glx_enable_extension = (PFNGLXENABLEEXTENSIONPROC)
|
|
||||||
glXGetProcAddress( (const GLubyte *) "__glXEnableExtension" );
|
|
||||||
|
|
||||||
if ( glx_enable_extension != NULL ) {
|
|
||||||
glx_enable_extension( "GLX_SGI_swap_control", GL_FALSE );
|
|
||||||
glx_enable_extension( "GLX_SGI_video_sync", GL_FALSE );
|
|
||||||
glx_enable_extension( "GLX_MESA_swap_control", GL_FALSE );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct __DriverAPIRec r128API = {
|
static struct __DriverAPIRec r128API = {
|
||||||
.InitDriver = r128InitDriver,
|
.InitDriver = r128InitDriver,
|
||||||
|
|
|
||||||
|
|
@ -450,11 +450,6 @@ static struct __DriverAPIRec x11API = {
|
||||||
x11OpenCloseFullScreen
|
x11OpenCloseFullScreen
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
|
||||||
__driRegisterExtensions(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the bootstrap function for the driver.
|
* This is the bootstrap function for the driver.
|
||||||
* The __driCreateScreen name is the symbol that libGL.so fetches.
|
* The __driCreateScreen name is the symbol that libGL.so fetches.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue