-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix Vulkan renderer on wayland #3143
Conversation
To be precise: we need a way of passing the bgfx/examples/common/entry/entry_sdl.cpp Line 58 in 506da04
to https://github.com/belegdol/bgfx/blob/1628329a12fdaa74ccfd6eeca5b176a1b7ddf689/src/renderer_vk.cpp#L6782 I do not know how to do that, the existing structures appear to only be able to pass display and window handles but not the surface one. For the proof-of-concept I inspected the value with the debugger and hardcoded it. It works in gdb only. |
Would something like this be acceptable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There won't be Wayland surface... PR needs to work as it would be with X, Windows, etc. nothing special won't be added for Wayland.
4059c3d
to
5dd9584
Compare
Turns out it was simpler than originally thought. |
Much better... what is setting this |
It is set by genie.lua: Lines 207 to 209 in 8b6a6bd
|
* Initial proof-of-concept of vulkan renderer working on wayland * Get wayland surface from the window handle
@belegdol Check this: |
Thanks for the info, this is a bit disappointing. In any case, slow is better than crashing in my opinion. Additionally, for cases like mame - which motivated me to submit this PR in the first place - getting every last bit of GPU performance is not that critical. mame runs fast enough on my machines at least. |
Yes. Anyhow, the point of notifying you is just to keep you informed. No action needed on bgfx. |
This fixes the outstanding problems mentioned in #2416. I do not really know C++ so tips how to determine wl_surface dynamically are welcome.
In order to test this,
--with-sdl --with-wayland
needs to be added to makefile line 116.