[waffle] [PATCH 0/7] Use eglGetPlatformDisplay when possible (v2)
Chad Versace
chadversary at chromium.org
Mon Oct 24 21:57:55 UTC 2016
Before EGL_EXT_platform_base and EGL 1.5, when using Mesa the best way
to select the EGL platform was to set the EGL_PLATFORM environment
variable. Now that a standard way exists, eglGetPlatformDisplay, let's
use it when available.
After this series, I have a series to add support for
EGL_MESA_platform_surfaceless.
This branch lives at
https://github.com/chadversary/waffle/commits/review/eglGetPlatformDisplay-v02
v2:
- Fix bugs found by Emil.
- Don't set EGL_PLATFORM=android.
- Last patch, add fallback to use eglGetPlatformDisplayEXT.
Chad Versace (8):
egl: Define EGL_PLATFORM_* enums
egl: Update wegl_platform_init signature
egl: Move each platform's setenv("EGL_PLATFORM") into core EGL code (v2)
egl: Query client extensions string
egl: Optionally query for eglGetPlatformDisplay (v2)
egl: Update wegl_display_init signature
egl: Use eglGetPlatformDisplay when possible (v2)
egl: Use eglGetPlatformDisplayEXT as a fallback
src/waffle/android/droid_display.c | 3 +-
src/waffle/egl/wegl_display.c | 26 +++++--
src/waffle/egl/wegl_display.h | 2 +-
src/waffle/egl/wegl_imports.h | 30 ++++++++
src/waffle/egl/wegl_platform.c | 128 +++++++++++++++++++++++++++++++++-
src/waffle/egl/wegl_platform.h | 33 ++++++++-
src/waffle/gbm/wgbm_display.c | 2 +-
src/waffle/gbm/wgbm_platform.c | 8 +--
src/waffle/wayland/wayland_display.c | 2 +-
src/waffle/wayland/wayland_platform.c | 7 +-
src/waffle/xegl/xegl_display.c | 2 +-
src/waffle/xegl/xegl_platform.c | 8 +--
12 files changed, 218 insertions(+), 33 deletions(-)
--
2.10.1
More information about the waffle
mailing list