-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Update bgfx, bx and bimg to current upstream versions #11493
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
Conversation
The platform.h header was using the _USING_V110_SDK71_ without first checking if it was defined, causing compiler warnings for windows builds.
e2359f0 to
c39bdae
Compare
|
It unfortunately appears that the PR does not fix the build failure we are hitting (XCode 14 building for macOS). So waiting is the only option at the moment. |
|
Since there was no progress on the upstream PR and further upstream commits have worsened the pre-macOS 13 situation further, I have decided to revert the offending commits myself. I also added a README file explaining the deviations so that these reverts can be undone once we no longer care for pre-Ventura. |
755feec to
757033d
Compare
|
@rb6502 should I merge this? Will you be able to test macOS with the OpenGL and Metal backends? |
|
On Windows, most things work as well as they did previously. The main things that are wonky are:
|
Thank you for testing. This is unfortunate. I am travelling this week so I will not be able to check this. Truth be told, shader code is black magic to me so if this is an unacceptable regression we might need to revert. |
|
@angelosa is reporting crashes on Ubuntu Linux with default configuration: It appears to be using Vulkan by default with NVIDIA binary drivers. He also said that using I can remove the xBR Multipass shaders if that’s the only major problem, but crashes on Linux are somewhat concerning. |
|
Crashes I can look into next week. Which videodriver and x11 or Wayland session? |
|
Since the major motivation for this is to support Wayland on Linux if it’s crashy on Linux it defeats the whole purpose. |
I wholeheartedly agree. I did test it on both Nvidia binary driver and on open source Radeon and didn't see crashes. But if there are issues with different configurations then we should delay these changes at least. ETA: I did test with 535.xx driver though whereas the crash appears to be with 470.xx. One of the changes which made Wayland possible was ditching GLX and using EGL for both X11 and Wayland. I still have and old laptop running Fedora 37 and 470.xx driver so I can check how it fares once I am back. |
With MAME symbols build (?), on application exit (including on MAME info/nag screens) and No more renderers - shutting down BGFX library
Thread 2 "decosym" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeca9a700 (LWP 197320)]
0x00007fffec28aa60 in ?? ()
(gdb) bt
#0 0x00007fffec28aa60 in ?? ()
#1 0x00007ffff7e375a1 in __nptl_deallocate_tsd () at pthread_create.c:301
#2 0x00007ffff7e3862a in __nptl_deallocate_tsd () at pthread_create.c:256
#3 start_thread (arg=<optimized out>) at pthread_create.c:488
#4 0x00007ffff64c2133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Using standard Ubuntu 20.04 nVidia driver metapackage from nvidia-driver-470 for a GK208B GeForce GT 710 |
|
Im not getting a segfault with manjaro linux ./mamed rygar -video bgfx -bgfx_backend opengl. Is there a specific game that I should be testing? Also make sure to use the latest bgfx folders contents. Ill test on another machine with radeon drivers as im using the built in intel on this machine. I did do an asan build as well and there is a shed load of memory leaks I wont paste that here unless its wanted. SUMMARY: AddressSanitizer: 16254 byte(s) leaked in 586 allocation(s). |
|
This looks good on my Mac running the latest Sonoma beta, with both OpenGL and Metal backends. It's probably going to break my unofficial patch that re-enabled back compatibility to 10.13 though, which as I noted earlier I promised we wouldn't do before January. |
|
If this can't be patched to work on macOS 10.13, or it's too crashy on Ubuntu-like Linux distros, I'll just revert it. Otherwise I'll remove the xBR Multipass chains. |
|
Given the plethora of issues with this update: would it be worth cherry-picking the minimum number of patches needed to get Wayland working? We would still end up with bgfx divergent from upstream but it seems less problematic than syncing with upstream and then reverting a bunch of commits. |
I don’t know how practical that would be, given how much code churn there seems to be on upstream bgfx. |
Let me see next week, maybe it will work. For now please feel free to revert. |
…)" This reverts commit 1c61ccf.
Update to the libraries to current upstreams:
This is needed by #11451.