egl: add base EGL_EXT_device_base implementation

Graphics / Mesa 3D Graphics Library / Mesa - Emil Velikov [collabora.com] - 1 November 2018 00:05 EDT

Introduce the API for device query and enumeration. Those at the moment produce nothing useful since zero devices are actually available.

That contradicts with the spec, so the extension isn't advertised just yet.

With later commits we'll add support for software (always) and hardware devices. Each one exposing the respective extension string.

v2:- fold API boilerplate into this patch- move _eglAddDevice, _eglDeviceSupports, _eglRefreshDeviceList to this patch (Eric, Mathias)- make _eglFiniDevice the one called last

v3:- comment on the dummy _egl_device_extension enum entry (Eric)- annotate dev as MAYBE_UNUSED (Mathias)

7552fcb7b9 egl: add base EGL_EXT_device_base implementation
src/egl/Makefile.sources | 2 +
src/egl/main/eglapi.c | 64 ++++++++++++++++
src/egl/main/egldevice.c | 179 +++++++++++++++++++++++++++++++++++++++++++
src/egl/main/egldevice.h | 83 ++++++++++++++++++++
src/egl/main/egldisplay.h | 1 +
src/egl/main/eglentrypoint.h | 4 +
src/egl/main/eglglobals.c | 8 +-
src/egl/main/eglglobals.h | 2 +
src/egl/main/egltypedefs.h | 2 +
src/egl/meson.build | 2 +
10 files changed, 344 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share