summaryrefslogtreecommitdiff
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-24 04:05:27 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-24 04:05:27 +0000
commit1ac1c1c4239eb99f4befa00c501904f6b74e9694 (patch)
tree6f53dfbbd9d71e44f9d30be2ce5f2087aa803bfb /src/egl/drivers
parentdaf585d0f00df1d4d2e8dc5b465dad60a4bf0122 (diff)
use _egl_api struct, make some functions static
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri/egldri.c39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/egl/drivers/dri/egldri.c b/src/egl/drivers/dri/egldri.c
index 2d45127769..bfc3364904 100644
--- a/src/egl/drivers/dri/egldri.c
+++ b/src/egl/drivers/dri/egldri.c
@@ -673,7 +673,7 @@ static __DRIfuncPtr get_proc_address( const char * proc_name )
* \param modes Linked list of structures to be destroyed. All structres
* in the list will be freed.
*/
-void
+static void
__egl_context_modes_destroy( __GLcontextModes * modes )
{
while ( modes != NULL ) {
@@ -711,7 +711,7 @@ __egl_context_modes_destroy( __GLcontextModes * modes )
* then propagated to drivers. Drivers should \b never arbitrarilly
* extend the \c __GLcontextModes data-structure.
*/
-__GLcontextModes *
+static __GLcontextModes *
__egl_context_modes_create( unsigned count, size_t minimum_size )
{
const size_t size = (minimum_size > sizeof( __GLcontextModes ))
@@ -750,7 +750,8 @@ __egl_context_modes_create( unsigned count, size_t minimum_size )
}
-GLboolean __eglWindowExists(__DRInativeDisplay *dpy, __DRIid draw)
+static GLboolean
+__eglWindowExists(__DRInativeDisplay *dpy, __DRIid draw)
{
return EGL_TRUE;
}
@@ -770,7 +771,8 @@ GLboolean __eglWindowExists(__DRInativeDisplay *dpy, __DRIid draw)
*
* \since Internal API version 20030317.
*/
-int __eglGetUST( int64_t * ust )
+static int
+__eglGetUST( int64_t * ust )
{
struct timeval tv;
@@ -801,11 +803,14 @@ int __eglGetUST( int64_t * ust )
* XFree86 this function can be called for direct-rendering contexts
* when GLX_OML_sync_control appears in the client extension string.
*/
-GLboolean __eglGetMSCRate(__DRInativeDisplay * dpy, __DRIid drawable, int32_t * numerator, int32_t * denominator)
+static GLboolean
+__eglGetMSCRate(__DRInativeDisplay * dpy, __DRIid drawable,
+ int32_t * numerator, int32_t * denominator)
{
return EGL_TRUE;
}
+
/**
* Table of functions exported by the loader to the driver.
*/
@@ -981,18 +986,18 @@ _eglDRIInitDriverFallbacks(_EGLDriver *drv)
{
_eglInitDriverFallbacks(drv);
- drv->Initialize = _eglDRIInitialize;
- drv->Terminate = _eglDRITerminate;
- drv->CreateContext = _eglDRICreateContext;
- drv->MakeCurrent = _eglDRIMakeCurrent;
- drv->CreateWindowSurface = _eglDRICreateWindowSurface;
- drv->CreatePixmapSurface = _eglDRICreatePixmapSurface;
- drv->CreatePbufferSurface = _eglDRICreatePbufferSurface;
- drv->DestroySurface = _eglDRIDestroySurface;
- drv->DestroyContext = _eglDRIDestroyContext;
- drv->CreateScreenSurfaceMESA = _eglDRICreateScreenSurfaceMESA;
- drv->ShowSurfaceMESA = _eglDRIShowSurfaceMESA;
- drv->SwapBuffers = _eglDRISwapBuffers;
+ drv->API.Initialize = _eglDRIInitialize;
+ drv->API.Terminate = _eglDRITerminate;
+ drv->API.CreateContext = _eglDRICreateContext;
+ drv->API.MakeCurrent = _eglDRIMakeCurrent;
+ drv->API.CreateWindowSurface = _eglDRICreateWindowSurface;
+ drv->API.CreatePixmapSurface = _eglDRICreatePixmapSurface;
+ drv->API.CreatePbufferSurface = _eglDRICreatePbufferSurface;
+ drv->API.DestroySurface = _eglDRIDestroySurface;
+ drv->API.DestroyContext = _eglDRIDestroyContext;
+ drv->API.CreateScreenSurfaceMESA = _eglDRICreateScreenSurfaceMESA;
+ drv->API.ShowSurfaceMESA = _eglDRIShowSurfaceMESA;
+ drv->API.SwapBuffers = _eglDRISwapBuffers;
/* enable supported extensions */
drv->MESA_screen_surface = EGL_TRUE;