diff options
author | Emil Velikov <[email protected]> | 2018-07-03 13:08:59 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-11-01 00:05:43 +0000 |
commit | f73c5d27c1f0be9fc5280d508bac483ed54d9b29 (patch) | |
tree | 4f04bbfc2550219823e8e63ab9d963c38dc73266 /src/egl/main/eglglobals.c | |
parent | 3f08e500c4574e12af9c71dbf47ae0aca92262e8 (diff) |
egl: add EGL_MESA_device_software support
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)
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/egl/main/eglglobals.c')
-rw-r--r-- | src/egl/main/eglglobals.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c index ac8bb3f328a..db81fcaf2b5 100644 --- a/src/egl/main/eglglobals.c +++ b/src/egl/main/eglglobals.c @@ -52,6 +52,7 @@ struct _egl_global _eglGlobal = { .Mutex = &_eglGlobalMutex, .DisplayList = NULL, + .DeviceList = &_eglSoftwareDevice, .NumAtExitCalls = 3, .AtExitCalls = { /* default AtExitCalls, called in reverse order */ |