[Mesa-dev] [PATCH] demos: eglinfo: Add support for surfaceless EGL platform

Matwey V. Kornilov matwey.kornilov at gmail.com
Sun Sep 15 14:53:56 UTC 2019


Signed-off-by: Matwey V. Kornilov <matwey.kornilov at gmail.com>
---
 src/egl/opengl/eglinfo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c
index c24f7682..76152af8 100644
--- a/src/egl/opengl/eglinfo.c
+++ b/src/egl/opengl/eglinfo.c
@@ -234,6 +234,10 @@ main(int argc, char *argv[])
            ret += doOneDisplay(getPlatformDisplay(EGL_PLATFORM_X11_EXT,
                                                   EGL_DEFAULT_DISPLAY,
                                                   NULL), "X11 platform");
+       if (strstr(clientext, "EGL_MESA_platform_surfaceless"))
+           ret += doOneDisplay(getPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA,
+                                                  EGL_DEFAULT_DISPLAY,
+                                                  NULL), "Surfaceless platform");
        if (strstr(clientext, "EGL_EXT_platform_device"))
            ret += doOneDisplay(getPlatformDisplay(EGL_PLATFORM_DEVICE_EXT,
                                                   EGL_DEFAULT_DISPLAY,
-- 
2.16.4



More information about the mesa-dev mailing list