With 535.86.05 driver on Fedora 38 hardware EGL is not working on Wayland and EGL falls back to software:
$ eglinfo
--snip--
X11 platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
EGL driver name: swrast
EGL extensions string:
EGL_ANGLE_sync_control_rate EGL_EXT_create_context_robustness
EGL_KHR_cl_event2 EGL_KHR_config_attribs
EGL_KHR_context_flush_control EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync
EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_query_driver
Readme mentions that EGL_EXT_platform_x11
is unsupported. Is falling back to software rendering the manifestation of that? Or is it a separate problem? Thanks.
1 Like
Reproduction instructions:
- build bgfx: Building — bgfx 1.121.8531 documentation with the following change:
diff --git a/makefile b/makefile
index 06e6573e1..ce0d58706 100644
--- a/makefile
+++ b/makefile
@@ -113,7 +113,7 @@ wasm-release: .build/projects/gmake-wasm ## Build - Emscripten Release
wasm: wasm-debug wasm-release ## Build - Emscripten Debug and Release
.build/projects/gmake-linux:
- $(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-gcc gmake
+ $(GENIE) --with-tools --with-combined-examples --with-shared-lib --with-sdl --with-wayland --gcc=linux-gcc gmake
linux-debug64: .build/projects/gmake-linux ## Build - Linux x64 Debug
$(MAKE) -R -C .build/projects/gmake-linux config=debug64
linux-release64: .build/projects/gmake-linux ## Build - Linux x64 Release
cd examples/runtime
SDL_VIDEODRIVER=x11 ../../.build/linux64_gcc/bin/examplesDebug --gl
- pick 14-shadowvolumes
Under XWayland, due to software rendering, the scene is rendered at around 23-24 FPS. Under native X11, with VSync turned off (with F7), I am getting around 350 FPS with my 2070.
Readme mentions that EGL_EXT_platform_x11
is unsupported. Is falling back to software rendering the manifestation of that?
Indeed it is. For what it’s worth, this feature is being actively worked on right now.
1 Like
This seems to be fixed in 545.29.02, is this expected?