aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/generate
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-11-02 18:50:48 +0000
committerEmil Velikov <[email protected]>2018-11-05 20:53:05 +0000
commit2a8fefdeb0f4e259cc01e32dae40bc2f3063f5e0 (patch)
treefb6861d1f2d8bcbda6aec20653566fb10233c8cd /src/egl/generate
parent7e169cf2a0f23d4aed97bced0e399fb5ac9750c6 (diff)
egl: add EGL_EXT_device_base entrypoints
eglQueryDevicesEXT (unlike the other three functions) does not depend on the display. It is implemented in GLVND, which calls into each driver collecting the list of devices and presenting it to the user. For the other entrypoints, GLVND acts as pass through stub calling into the vendor library. The vendor implementation calls back into GLVND to get the vendor dispatch. Then the driver proceeds to call itself via the said dispatch. This design makes is possible to keep using "old" GLVND with newer vendor drivers. Since effectively all the extension code is within the latter itself. Without said entrypoints, any user will outright crash - as reported in the bug report. Note: there's a follow-up fix needed to our GLVND code, to make piglit happy. v2: add some beefy documentation in the commit message. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108635 Fixes: 7552fcb7b9b ("egl: add base EGL_EXT_device_base implementation") Reported-by: [email protected] Cc: [email protected] Acked-by: Eric Engestrom <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Tested-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/generate')
-rw-r--r--src/egl/generate/eglFunctionList.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/egl/generate/eglFunctionList.py b/src/egl/generate/eglFunctionList.py
index fb5b3c30bdf..667704eb2cb 100644
--- a/src/egl/generate/eglFunctionList.py
+++ b/src/egl/generate/eglFunctionList.py
@@ -199,5 +199,12 @@ EGL_FUNCTIONS = (
# EGL_EXT_image_dma_buf_import_modifiers
_eglFunc("eglQueryDmaBufFormatsEXT", "display"),
_eglFunc("eglQueryDmaBufModifiersEXT", "display"),
+
+ # EGL_EXT_device_base
+ _eglFunc("eglQueryDeviceAttribEXT", "device"),
+ _eglFunc("eglQueryDeviceStringEXT", "device"),
+ _eglFunc("eglQueryDevicesEXT", "none"),
+ _eglFunc("eglQueryDisplayAttribEXT", "display"),
+
)