From 7552fcb7b9b98392e6a815ff587f9f2d200d6a37 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 24 Jul 2015 16:19:55 +0200 Subject: egl: add base EGL_EXT_device_base implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Signed-off-by: Emil Velikov Reviewed-by: Mathias Fröhlich --- src/egl/main/eglglobals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/egl/main/eglglobals.h') diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h index 6655ccab65c..63bea4ebc38 100644 --- a/src/egl/main/eglglobals.h +++ b/src/egl/main/eglglobals.h @@ -54,6 +54,8 @@ struct _egl_global /* the list of all displays */ _EGLDisplay *DisplayList; + _EGLDevice *DeviceList; + EGLint NumAtExitCalls; void (*AtExitCalls[10])(void); -- cgit v1.2.3