dri2_drv->API.GLInteropQueryDeviceInfo = dri2_interop_query_device_info;
dri2_drv->API.GLInteropExportObject = dri2_interop_export_object;
dri2_drv->API.DupNativeFenceFDANDROID = dri2_dup_native_fence_fd;
+
+ dri2_drv->Name = "DRI2";
}
driver->API.SwapBuffers = haiku_swap_buffers;
+ driver->Name = "Haiku";
+
TRACE("API Calls defined\n");
}
_eglCreateExtensionsString(disp);
_eglCreateAPIsString(disp);
snprintf(disp->VersionString, sizeof(disp->VersionString),
- "%d.%d", disp->Version / 10, disp->Version % 10);
+ "%d.%d (%s)", disp->Version / 10, disp->Version % 10,
+ disp->Driver->Name);
}
/* Update applications version of major and minor if not NULL */
}
if (best_drv) {
+ _eglLog(_EGL_DEBUG, "the best driver is %s",
+ best_drv->Name);
dpy->Driver = best_drv;
dpy->Initialized = EGL_TRUE;
}
*/
struct _egl_driver
{
+ const char *Name; /**< name of this driver */
+
_EGLAPI API; /**< EGL API dispatch table */
};