egl_dri2: Log both driver and core extensions

This commit is contained in:
Kristian Høgsberg 2010-02-05 10:53:14 -05:00
parent 9c94faeff1
commit 832f2d3c39
1 changed files with 4 additions and 1 deletions

View File

@ -498,6 +498,8 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
}
for (i = 0; extensions[i]; i++) {
_eglLog(_EGL_DEBUG, "DRI2: found driver extension `%s'",
extensions[i]->name);
if (strcmp(extensions[i]->name, __DRI_CORE) == 0)
dri2_dpy->core = (__DRIcoreExtension *) extensions[i];
if (strcmp(extensions[i]->name, __DRI_DRI2) == 0)
@ -569,7 +571,8 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
extensions = dri2_dpy->core->getExtensions(dri2_dpy->dri_screen);
for (i = 0; extensions[i]; i++) {
_eglLog(_EGL_DEBUG, "DRI2: found extension `%s'", extensions[i]->name);
_eglLog(_EGL_DEBUG, "DRI2: found core extension `%s'",
extensions[i]->name);
if ((strcmp(extensions[i]->name, __DRI2_FLUSH) == 0))
dri2_dpy->flush = (__DRI2flushExtension *) extensions[i];
}