egl: add EGL_MESA_device_software support

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

Add a plain software device, which is always available.

We can safely assign it as the first/initial device in _eglGlobals, although we ensure that's the case with a handful of _eglDeviceSupports checks throughout the code.

v2:- s/_eglFindDevice/_eglAddDevice/ (Eric)- s/_eglLookupAllDevices/_eglRefreshDeviceList/ (Eric)- move ^^ helpers into a earlier patch (Eric, Mathias)- set the SW device on _eglGlobal init. (Eric)- add a number of _eglDeviceSupports checks (Mathias)- split Device/Display attach to a separate patch

v3:- flip inverted asserts (Mathias)- s/on-stack/static/ (Mathias)

f73c5d27c1 egl: add EGL_MESA_device_software support
src/egl/main/egldevice.c | 27 +++++++++++++++++++++++++++
src/egl/main/egldevice.h | 4 +++-
src/egl/main/eglglobals.c | 1 +
3 files changed, 31 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share