diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2015-02-25 16:35:04 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2015-07-21 13:04:07 +0200 |
commit | 73c76a4f3cf138bd7cbfd376d0022b3a38084401 (patch) | |
tree | 12558b4a0671d790af73bcf3a139fffb54aa2f60 | |
parent | 141e1eb29fe80ad341e718147a1277cc3b1b9c11 (diff) |
egl: add initial boilerplate for EGL_EXT_device_{base,query,enumeration}
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/egl/main/eglapi.c | 43 | ||||
-rw-r--r-- | src/egl/main/eglglobals.c | 3 |
2 files changed, 46 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 824e51ea55..66b2e3d32c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1818,6 +1818,41 @@ eglExportDMABUFImageMESA(EGLDisplay dpy, EGLImage image, } #endif +#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 + __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress(const char *procname) { @@ -1912,6 +1947,14 @@ eglGetProcAddress(const char *procname) { "eglExportDMABUFImageQueryMESA", (_EGLProc) eglExportDMABUFImageQueryMESA }, { "eglExportDMABUFImageMESA", (_EGLProc) eglExportDMABUFImageMESA }, #endif +#ifdef EGL_EXT_device_query + { "eglQueryDeviceAttribEXT", (_EGLProc) eglQueryDeviceAttribEXT }, + { "eglQueryDeviceStringEXT", (_EGLProc) eglQueryDeviceStringEXT }, + { "eglQueryDisplayAttribEXT", (_EGLProc) eglQueryDisplayAttribEXT }, +#endif +#ifdef EGL_EXT_device_enumeration + { "eglQueryDevicesEXT", (_EGLProc) eglQueryDevicesEXT }, +#endif { NULL, NULL } }; EGLint i; diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c index 938d953789..2fd6ac0849 100644 --- a/src/egl/main/eglglobals.c +++ b/src/egl/main/eglglobals.c @@ -57,6 +57,9 @@ struct _egl_global _eglGlobal = " EGL_EXT_platform_x11" " EGL_KHR_client_get_all_proc_addresses" " EGL_MESA_platform_gbm" + " EGL_EXT_device_base" + " EGL_EXT_device_query" + " EGL_EXT_device_enumeration" }; |