Previous Thread
Next Thread
Print Thread
Joined: Apr 2006
Posts: 807
Likes: 3
D
Senior Member
OP Offline
Senior Member
D
Joined: Apr 2006
Posts: 807
Likes: 3
[mitchell@localhost-live mame]$ ./mame
Ignoring MAME exception: Error: BGFX video does not work with wayland videodriver. Please change either of the options.
Fatal error: Error: BGFX video does not work with wayland videodriver. Please change either of the options.
[mitchell@localhost-live mame]$

I have the xorg-x11-drv-amdgpu vulkan-tools mesa-vulkan-drivers installed.

I need to know what I need to do about this. Used to work before I reinstalled Fedora 38. (Because of the boot issue.)

I can run Diablo Immortal just fine on the Wine GE, I don't undertstand on why the BGFX loading is having an issue. MAME can run without the BGFX.

video bgfx

bgfx_path $HOME/mame/bgfx
bgfx_backend opengl
bgfx_debug 0
bgfx_screen_chains crt-geom-deluxe,crt-geom-deluxe,crt-geom-deluxe,crt-geom-deluxe
bgfx_shadow_mask slot-mask.png
bgfx_lut lut-default.png
bgfx_avi_name auto

[mitchell@localhost-live ~]$ lspci -n -n -k | grep -A 2 -e VGA -e 3D
09:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1)
Subsystem: ASRock Incorporation Device [1849:5111]
Kernel driver in use: amdgpu

[mitchell@localhost-live ~]$ glxinfo | grep -e OpenGL.vendor -e OpenGL.renderer
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 5700 XT (navi10, LLVM 16.0.4, DRM 3.49, 6.2.15-300.fc38.x86_64)

[mitchell@localhost-live ~]$ switcherooctl list
Device: 0
Name: Advanced Micro Devices, Inc. [AMD®/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
Default: yes
Environment: DRI_PRIME=pci-0000_09_00_0

Checked 3 times.


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Apr 2006
Posts: 807
Likes: 3
D
Senior Member
OP Offline
Senior Member
D
Joined: Apr 2006
Posts: 807
Likes: 3
I tried this.

[mitchell@localhost-live mame]$ ./mame -videodriver amdgpu -video bgfx
Could not initialize SDL amdgpu not available

I don't understand. I did removed Nvidia.

echo 3971468 | sudo -S yum remove nvidia* xorg-x11-drv-nvidia* -y

Only found this. nvidia-gpu-firmware-20230515-150.fc38.noarch I took it off.

Last edited by Dullaron; 05/30/23 02:08 AM.

W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Mar 2001
Posts: 17,146
Likes: 179
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,146
Likes: 179
That's not what -videodriver does. It picks one of SDL's built-in render drivers, normally X11 or DirectFB.

https://docs.mamedev.org/commandline/sdlconfig.html

Regarding your other error, at the login screen choose the X.org Session from the drop-down list of available sessions. On a stock Fedora install you'll have "GNOME Wayland session" and "GNOME X.org session" at least. See https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/

Last edited by R. Belmont; 05/30/23 02:06 AM.
1 member likes this: Dullaron
Joined: Apr 2006
Posts: 807
Likes: 3
D
Senior Member
OP Offline
Senior Member
D
Joined: Apr 2006
Posts: 807
Likes: 3
ok I will try that.

Thank you R. Belmont. Works.

Last edited by Dullaron; 05/30/23 02:15 AM.

W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Mar 2004
Posts: 698
Likes: 2
Senior Member
Offline
Senior Member
Joined: Mar 2004
Posts: 698
Likes: 2
The issue is that bgfx does not work with wayland. The error is there to avoid a segfault which would happen otherwise. You do not have to switch the entire session to X11, but you need to pick -videodriver x11 if you want to run -video bgfx. Fedora carries a downstream patch which makes SDL use wayland by default:
https://src.fedoraproject.org/rpms/SDL2/blob/rawhide/f/SDL2-2.0.22-prefer-wayland.patch
Or you can use -video opengl with wayland.

Joined: Apr 2006
Posts: 807
Likes: 3
D
Senior Member
OP Offline
Senior Member
D
Joined: Apr 2006
Posts: 807
Likes: 3
Yeah I know. I made shortcut while back after he talk to me. I saw the link too. smile

[Desktop Entry]
Name=MAME
Exec=/home/mitchell/mame/./mame -videodriver x11 -video bgfx %U
Icon=/home/mitchell/mame-stuff/MAME.png
Path=/home/mitchell/mame/
Terminal=false
Type=Application
Categories=Game;


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
0 members (), 136 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,285
Posts121,451
Members5,064
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com