mesa/src/egl
Emmanuel Gil Peyrot a3fb064e00 Expose EGL_KHR_platform_* when EXT is supported
On EGL 1.4, one had to check for the existence of EGL_EXT_platform_base
before querying the eglGetPlatformDisplayEXT() and
eglCreatePlatformWindowSurfaceEXT() symbols, to then use them if the
EGL_EXT_platform_* extension for the given platform was exposed.

Since EGL 1.5, the platform functionality was made core, which means we
can obtain the symbols unconditionally, but we can't know the EGL
version before having created a display, at which point we've already
done a platform selection by passing an EGLNativeDisplay.  The
EGL_KHR_platform_* extensions thus are used by clients to know whether
it's safe or not to dlsym() the EGL 1.5 symbols.

This commit adds those extensions when the given platform is enabled.

Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5052>
2020-05-19 16:41:54 +00:00
..
drivers egl/wayland: Fix zwp_linux_dmabuf usage 2020-04-29 11:29:40 +01:00
generate EGL: Add eglSetDamageRegionKHR to GLVND dispatch list 2020-04-03 12:22:51 +01:00
main Expose EGL_KHR_platform_* when EXT is supported 2020-05-19 16:41:54 +00:00
wayland egl/wayland: Add FP16 format support 2019-09-20 19:10:31 +00:00
Android.mk egl: add EGL_platform_device support 2019-06-05 13:35:21 -04:00
egl-entrypoint-check.py egl: rewrite entrypoints check 2019-07-10 11:27:51 +00:00
egl-glvnd-symbols.txt egl: add glvnd symbols check 2019-07-10 11:27:51 +00:00
egl-symbols.txt egl: use new symbols check script 2019-07-10 11:27:51 +00:00
Makefile.sources egl: drop empty eglfallbacks.c 2019-06-25 06:36:54 +00:00
meson.build Revert "egl: put full path to libEGL_mesa.so in GLVND json" 2020-02-06 00:19:13 +00:00