Signed-off-by: Jonny Lamb <jonny.l...@collabora.co.uk> --- src/egl/main/eglapi.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ src/egl/main/eglglobals.c | 5 +++++ 2 files changed, 52 insertions(+)
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 824e51e..6c1e6c7 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1818,6 +1818,43 @@ eglExportDMABUFImageMESA(EGLDisplay dpy, EGLImage image, } #endif +#ifdef HAVE_LIBUDEV +#ifdef EGL_EXT_device_query +static EGLBoolean EGLAPIENTRY +eglQueryDeviceAttribEXT(EGLDeviceEXT device, + EGLint attribute, + EGLAttrib *value) +{ + RETURN_EGL_SUCCESS(NULL, EGL_TRUE); +} + +static const char * EGLAPIENTRY +eglQueryDeviceStringEXT(EGLDeviceEXT device, + EGLint name) +{ + RETURN_EGL_SUCCESS(NULL, "eglQueryDeviceStringEXT"); +} + +static EGLBoolean EGLAPIENTRY +eglQueryDisplayAttribEXT(EGLDisplay dpy, + EGLint attribute, + EGLAttrib *value) +{ + RETURN_EGL_SUCCESS(NULL, EGL_TRUE); +} +#endif + +#ifdef EGL_EXT_device_enumeration +static EGLBoolean EGLAPIENTRY +eglQueryDevicesEXT(EGLint max_devices, + EGLDeviceEXT *devices, + EGLint *num_devices) +{ + RETURN_EGL_SUCCESS(NULL, EGL_TRUE); +} +#endif +#endif /* HAVE_LIBUDEV */ + __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress(const char *procname) { @@ -1912,6 +1949,16 @@ eglGetProcAddress(const char *procname) { "eglExportDMABUFImageQueryMESA", (_EGLProc) eglExportDMABUFImageQueryMESA }, { "eglExportDMABUFImageMESA", (_EGLProc) eglExportDMABUFImageMESA }, #endif +#ifdef HAVE_LIBUDEV +#ifdef EGL_EXT_device_query + { "eglQueryDeviceAttribEXT", (_EGLProc) eglQueryDeviceAttribEXT }, + { "eglQueryDeviceStringEXT", (_EGLProc) eglQueryDeviceStringEXT }, + { "eglQueryDisplayAttribEXT", (_EGLProc) eglQueryDisplayAttribEXT }, +#endif +#ifdef EGL_EXT_device_enumeration + { "eglQueryDevicesEXT", (_EGLProc) eglQueryDevicesEXT }, +#endif +#endif /* HAVE_LIBUDEV */ { NULL, NULL } }; EGLint i; diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c index 938d953..2583d86 100644 --- a/src/egl/main/eglglobals.c +++ b/src/egl/main/eglglobals.c @@ -57,6 +57,11 @@ struct _egl_global _eglGlobal = " EGL_EXT_platform_x11" " EGL_KHR_client_get_all_proc_addresses" " EGL_MESA_platform_gbm" +#ifdef HAVE_LIBUDEV + " EGL_EXT_device_base" + " EGL_EXT_device_query" + " EGL_EXT_device_enumeration" +#endif }; -- 2.4.6 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev