-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMD renoir/Linux/wayland: bgfx vulkan backend does not start and falls back to opengl #8057
Comments
As of 28bbea0 the crash is gone. As with my PR, without any environmental variables set, vulkan backend does not start and bgfx falls back to opengl. |
For easy reference, the feedback from mesa devs was that the mame usage was invalid. |
#8469 does not improve this. It did not advertise it would, but we could have been lucky. |
* Fixed palette and UYVY conversion in all backends. Fixes MT07760. * Fixed a typo in targetmanager.cpp, thanks LN for the heads-up.
Running with debugging enabled shows the following errors at the time of vulkan -> gl fallback:
Full output is available here: |
It turns it only happens when running under XWayland. When the entire session is switched to X11 the vulkan renderer starts without the need for extra switches. |
This is fixed by bkaradzic/bgfx@be2c110. Should I make a PR with just this patch, or rather resync bgfx with upstream so that we do not diverge too much? |
Hello,
I have originally reported this against mesa:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/4727
In brief, starting with mesa-21.0 (Fedora 34), mame will crash if one attempts to use the bgfx vulkan backend (
./mame -bgfx_backend vulkan -bgfx_debug -video bgfx
). With bgfx synced to upstream (PR #8035), bgfx does not even start the vulkan backend and falls back to opengl.This can be worked around by using
MESA_VK_WSI_PRESENT_MODE=relaxed
. I have checked bgfx examples and these appear to run on vulkan without the need for the environmental variable mentioned earlier.The text was updated successfully, but these errors were encountered: