Open belegdol opened 2 months ago
Downgrading the driver to 555.58.02 gets XWayland working - vulkan falls back to opengl, but opengl starts fine. It is probably because it seems to fall back to software rendering:
libEGL warning: egl: failed to create dri2 screen
../../../src/glcontext_egl.cpp (231): BGFX EGL info:
../../../src/glcontext_egl.cpp (233): BGFX APIs: OpenGL OpenGL_ES
../../../src/glcontext_egl.cpp (236): BGFX Vendor: Mesa Project
cc @BlockoS
I believe that there are two issues here in summary:
As to whether Vulkan via XWayland was ever working, I am not sure. I cannot test it anymore unfortunately as I cannot downgrade beyond 555 driver due to nvidia kernel module not building against 6.10 kernel.
Should I report this to nvidia in parallel?
Should I report this to nvidia in parallel?
Yes.
Should I report this to nvidia in parallel?
Yes.
Done: https://forums.developer.nvidia.com/t/explicit-sync-causes-bgfx-examples-to-crash/304484 https://forums.developer.nvidia.com/t/hardware-egl-not-working-on-wayland-libegl-warning-egl-failed-to-create-dri2-screen/262167
I ran the test case with WAYLAND_DEBUG=1
set. The following error was present for both renderers:
[1773620.575] {Display Queue} wl_display#1.error(wl_surface#42, 0, "DRM Syncobj surface object already created for surface 42")
Describe the bug On Fedora 40 x86_64 with latest nvidia driver and egl-wayland from updates testing, attempting to start examples under wayland crashes regardless of the renderer or the SDL videodriver.
To Reproduce Steps to reproduce the behavior:
--with-sdl --with-wayland
added to the makefilecd examples/runtime
../../.build/linux64_gcc/bin/examplesDebug
Expected behavior Examples start as normal
Additional context Changing
SDL_VIDEODRIVER
betweenx11
andwayland
, or renderer with--gl
or--vulkan
only changes the errors. Defining__NV_DISABLE_EXPLICIT_SYNC=1
allows both Vulkan and OpenGL renderers to work with wayland videodriver, but not with x11. Native Xorg session works with x11 videodriver (but not with wayland, obviously).