llvmpipe: With Nvidia driver installed: `$ LIBGL_ALWAYS_SOFTWARE=1 clang test.c $(pkg-config --cflags --libs libdrm egl) -o test && ./test` > eglQueryDisplayAttribEXT supported > eglGetError(): 0x3000 > eglGetError(): 0x3008 `$ sudo apt purge *nvidia*` `$ LIBGL_ALWAYS_SOFTWARE=1 clang test.c $(pkg-config --cflags --libs libdrm egl) -o test && ./test` > eglQueryDisplayAttribEXT supported > eglGetError(): 0x3000 > eglGetError(): 0x3000 > device:/dev/dri/card0 > Vendor ID:0x8086 > Device ID:0x5912 For my example app it does not matter whether LIBGL_ALWAYS_SOFTWARE=1 is set. https://editor.mergely.com/cPlE2om1/ left: LIBGL_ALWAYS_SOFTWARE=1 eglinfo right: eglinfo * "EGL client extension" EXT_device_query is always present * "X11 platform" and visuals differ So the relevant question seems to be why does eglQueryDeviceStringEXT return EGL_BAD_DISPLAY with nvidia-driver-470 installed.
Bug 1731480 Comment 11 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
llvmpipe: With Nvidia driver installed: `$ LIBGL_ALWAYS_SOFTWARE=1 clang test.c $(pkg-config --cflags --libs libdrm egl) -o test && ./test` > eglQueryDisplayAttribEXT supported > eglGetError(): 0x3000 // eglQueryDisplayAttribEXT returned EGL_SUCCESS > eglGetError(): 0x3008 // eglQueryDeviceStringEXT returned EGL_BAD_DISPLAY `$ sudo apt purge *nvidia*` `$ LIBGL_ALWAYS_SOFTWARE=1 clang test.c $(pkg-config --cflags --libs libdrm egl) -o test && ./test` > eglQueryDisplayAttribEXT supported > eglGetError(): 0x3000 // eglQueryDisplayAttribEXT returned EGL_SUCCESS > eglGetError(): 0x3000 // eglQueryDeviceStringEXT returned EGL_SUCCESS > device:/dev/dri/card0 > Vendor ID:0x8086 > Device ID:0x5912 For my example app it does not matter whether LIBGL_ALWAYS_SOFTWARE=1 is set. https://editor.mergely.com/cPlE2om1/ left: LIBGL_ALWAYS_SOFTWARE=1 eglinfo right: eglinfo * "EGL client extension" EXT_device_query is always present * "X11 platform" and visuals differ So the relevant question seems to be why does eglQueryDeviceStringEXT return EGL_BAD_DISPLAY with nvidia-driver-470 installed.