diff options
author | Chad Versace <[email protected]> | 2014-11-20 10:26:38 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-12-07 20:58:25 -0800 |
commit | 7e8ba77c49b3fc0fe56d0ba60acc734d389fd9bd (patch) | |
tree | c2895e4d60567830d254c96caf7a67a776480335 /src/egl/main/eglapi.c | |
parent | 0b6e0aa5ae51c965c9d73f4e620e8d8449fb965e (diff) |
egl: Expose EGL_KHR_get_all_proc_addresses and its client extension
Mesa already implements the behavior of EGL_KHR_get_all_proc_addresses
and EGL_KHR_client_get_all_proc_addresses. This patch just exposes the
extension strings.
See: https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_get_all_proc_addresses.txt
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 096c3d8f5d8..511848f93c5 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -357,6 +357,23 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) /* limit to APIs supported by core */ disp->ClientAPIs &= _EGL_API_ALL_BITS; + + /* EGL_KHR_get_all_proc_addresses is a corner-case extension. The spec + * classifies it as an EGL display extension, though conceptually it's an + * EGL client extension. + * + * From the EGL_KHR_get_all_proc_addresses spec: + * + * The EGL implementation must expose the name + * EGL_KHR_client_get_all_proc_addresses if and only if it exposes + * EGL_KHR_get_all_proc_addresses and supports + * EGL_EXT_client_extensions. + * + * Mesa unconditionally exposes both client extensions mentioned above, + * so the spec requires that each EGLDisplay unconditionally expose + * EGL_KHR_get_all_proc_addresses also. + */ + disp->Extensions.KHR_get_all_proc_addresses = EGL_TRUE; } /* Update applications version of major and minor if not NULL */ |