* Called via eglShowSurfaceMESA().
*/
EGLBoolean
-_eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
- EGLSurface surface, EGLModeMESA m)
+_eglDRIShowScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy,
+ EGLScreenMESA screen,
+ EGLSurface surface, EGLModeMESA m)
{
driDisplay *display = Lookup_driDisplay(dpy);
driScreen *scrn = Lookup_driScreen(dpy, screen);
char fname[NAME_MAX], buffer[1000];
int temp;
- _eglLog(_EGL_DEBUG, "Enter _eglDRIShowSurface");
+ _eglLog(_EGL_DEBUG, "Enter _eglDRIShowScreenSurface");
/* This will check that surface, screen, and mode are valid.
* Also, it checks that the surface is large enough for the mode, etc.
*/
- if (!_eglShowSurfaceMESA(drv, dpy, screen, surface, m))
+ if (!_eglShowScreenSurfaceMESA(drv, dpy, screen, surface, m))
return EGL_FALSE;
assert(surface == EGL_NO_SURFACE || surf);
case 3:
case 4: temp = (display->virtualWidth + 15) & ~15; break;
default:
- _eglLog(_EGL_WARNING, "Bad display->bpp = %d in _eglDRIShowSurface");
+ _eglLog(_EGL_WARNING, "Bad display->bpp = %d in _eglDRIShowScreenSurface");
}
display->virtualWidth = temp;
if (surf->Base.Width < display->virtualWidth ||
surf->Base.Height < display->virtualHeight) {
/* this case _should_ have been caught at the top of this function */
- _eglLog(_EGL_WARNING, "too small of surface in _eglDRIShowSurfaceMESA "
+ _eglLog(_EGL_WARNING, "too small of surface in _eglDRIShowScreenSurfaceMESA "
"%d x %d < %d x %d",
surf->Base.Width,
surf->Base.Height,
char c;
path[ strlen( path ) - 1 ] = '\0'; /* strip off \n from sysfs */
sscanf( path, "%c:%ux%u-%u", &c, &x, &y, &r );
- _eglAddMode( &s->Base, x, y, r * 1000, path );
+ _eglAddNewMode( &s->Base, x, y, r * 1000, path );
}
fclose( file );
drv->API.DestroySurface = _eglDRIDestroySurface;
drv->API.DestroyContext = _eglDRIDestroyContext;
drv->API.CreateScreenSurfaceMESA = _eglDRICreateScreenSurfaceMESA;
- drv->API.ShowSurfaceMESA = _eglDRIShowSurfaceMESA;
+ drv->API.ShowScreenSurfaceMESA = _eglDRIShowScreenSurfaceMESA;
drv->API.SwapBuffers = _eglDRISwapBuffers;
/* enable supported extensions */
}
extern void _eglDRIInitDriverFallbacks(_EGLDriver *drv);
-extern EGLBoolean _eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, EGLSurface surface, EGLModeMESA m);
+extern EGLBoolean _eglDRIShowScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, EGLSurface surface, EGLModeMESA m);
extern EGLBoolean _eglDRIInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor);
extern EGLBoolean _eglDRIGetDisplayInfo(driDisplay *dpy);
extern EGLBoolean _eglDRICreateDisplay(driDisplay *dpy, __DRIframebuffer *framebuffer);