xemu-project / xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
https://xemu.app
Other
2.69k stars 265 forks source link

Almost Black Screen on Mac M1/Steam Deck (rdna2) and Intel iGPU - Burnout3 #1223

Open lehrbua opened 2 years ago

lehrbua commented 2 years ago

Title

https://xemu.app/titles/4541005b/#Burnout-3-Takedown

Bug Description

Only Race is visible and car select screen without hud Whole Menu + Intro is black.

Expected Behavior

Game is visible.

xemu Version

0.7.67

System Information

OS Platform: macOS OS Version: Version 12.4 (Build 21F79) Manufacturer: Apple GPU Model: Apple M1 Max Driver: 4.1 Metal - 76.3 Shader: 4.10

Additional Context

No response

Triticum0 commented 2 years ago

Please have a title

Triticum0 commented 2 years ago

Note: this only affects M1 mac, played this game on Nvidia GPU works fine

Spidy123222 commented 2 years ago

Note: this only affects M1 mac, played this game on Nvidia GPU works fine

This also affects Steamdecks (I asked some steamdeck users to test in emudeck discord) and intel HD graphics to my knowledge. Also, they need a proper title for the issue as no one will know what this is or is a mistake message.

Referenced issue of similar issue. https://github.com/mborgerson/xemu/issues/571

zaylivinglive commented 1 year ago

Confirming that this issue is also on steam deck. Starting the game will have the loading screen and bar, and after that intro and menu is completely black with only the background music playing.

deefha commented 1 year ago

Confirming @zaylivinglive report on my Steam Deck too (xemu 0.7.70). Can I help somehow? I am here if more info is needed.

OutRunner commented 1 year ago

Could this be the same issue that Ninja Gaiden Black has? https://github.com/mborgerson/xemu/issues/991

TaraSophieDev commented 1 year ago

Having the same Issue on my Steam deck, the Loading Bar is showing but after that, there is only black screen, everything else works tho.

mbriar commented 1 year ago

Can someone on Steam Deck try setting vs_position_always_invariant=true as environment variable or someone on mac this patch:

diff --git a/hw/xbox/nv2a/shaders.c b/hw/xbox/nv2a/shaders.c
index 409129e50d..abae6b851b 100644
--- a/hw/xbox/nv2a/shaders.c
+++ b/hw/xbox/nv2a/shaders.c
@@ -803,6 +803,7 @@ GLSL_DEFINE(texMat2, GLSL_C_MAT4(NV_IGRAPH_XF_XFCTX_T2MAT))
 GLSL_DEFINE(texMat3, GLSL_C_MAT4(NV_IGRAPH_XF_XFCTX_T3MAT))

 "\n"
+"invariant gl_Position;\n"
 "vec4 oPos = vec4(0.0,0.0,0.0,1.0);\n"
 "vec4 oD0 = vec4(0.0,0.0,0.0,1.0);\n"
 "vec4 oD1 = vec4(0.0,0.0,0.0,1.0);\n"
OutRunner commented 1 year ago

I quickly tried the environment variable thing last night and it didn’t work for me, but there’s a chance I did something wrong. When I ran the source command to reload the .bash_profile it gave me a weird error message, which I think is related to something that’s been added to the bashrc by some other program.

mbriar commented 1 year ago

If you are on Steam Deck, then depending on how you launch XEMU, you can just add it as launch option in the game ui, like vs_position_always_invariant=true %command%. Or if you run it from desktop mode, just do export vs_position_always_invariant=true and then from the same terminal run XEMU.

OutRunner commented 1 year ago

I just tried the latter and it didn’t seem to work for me, the menus were still black with some text visible. This is what I used, does anything look wrong with it?

(deck@steamdeck ~)$ export vs_position_always_invariant=true
(deck@steamdeck ~)$ "/usr/bin/flatpak" run --branch=stable --arch=x86_64 --command=xemu app.xemu.xemu
xemu_version: 0.7.71
xemu_branch: 22db3304a454b2d289a9d5ea488fa3c3dec836f4
xemu_commit: 22db3304a454b2d289a9d5ea488fa3c3dec836f4
xemu_date: Sat Dec 31 08:27:31 PM UTC 2022
xemu_settings_get_base_path: base path: /home/deck/.var/app/app.xemu.xemu/data/xemu/xemu/
xemu_settings_get_path: config path: /home/deck/.var/app/app.xemu.xemu/data/xemu/xemu/xemu.toml
ATTENTION: default value of option vs_position_always_invariant overridden by environment.
CPU: AMD Custom APU 0405
OS_Version: Freedesktop.org SDK 22.08 (Flatpak runtime)
GL_VENDOR: AMD
GL_RENDERER: AMD Custom GPU 0405 (vangogh, LLVM 14.0.6, DRM 3.45, 5.13.0-valve36-1-neptune)
GL_VERSION: 4.6 (Core Profile) Mesa 22.2.4 (git-80df10f902)
GL_SHADING_LANGUAGE_VERSION: 4.60
Created QEMU launch parameters: xemu -machine xbox,bootrom=/run/media/mmcblk0p1/Xbox/XEMU_Files/Boot ROM image/mcpx_1.0.bin,kernel-irqchip=off,avpack=hdtv -device smbus-storage,file=/home/deck/.var/app/app.xemu.xemu/data/xemu/xemu/eeprom.bin -bios /run/media/mmcblk0p1/Xbox/XEMU_Files/BIOS/Complex_4627v1.03.bin -m 128 -drive index=0,media=disk,file=/run/media/mmcblk0p1/Xbox/XEMU_Files/Pre-built Xbox HDD image/xbox_hdd.qcow2,locked=on -drive index=1,media=cdrom,file=/run/media/mmcblk0p1/Xbox/Burnout 3 - Takedown (USA).xiso.iso -display xemu -device usb-hub,port=1,ports=4
mbriar commented 1 year ago

I just tried the game myself and it indeed doesn't help, so it must be a different issue than Ninja Gaiden Black. FWIW, I also gave it a quick try with the proprietary OpenGL driver on AMD, and it does render correctly there, however, it is still very slow even on the menu.

Phillips126 commented 1 year ago

I'm having the same issue on my MinisForum TH50 with Burnout. I get the Xbox splash video, then a loading bar, then black menu screen with music playing. My system uses the Intel Iris Xe integrated GPU. This is running on Batocero Linux.

Dochartaigh commented 1 year ago

Can confirm this doesn't work for me either.

2023 Mac mini M2 Pro. v0.7.83. Tried 3x XISO's (from my own disc converted to XISO, V's, and Archive).

Loading screen (freezes slightly at ~75%), a logo after that, then can hear the music but BLACK screen...

Rastafabisch commented 1 year ago

For what I found, this appears to be a general, but NVIDIA problem. The issues title should probably reflect this.

Spidy123222 commented 1 year ago

For what I found, this appears to be a general, but NVIDIA problem. The issues title should probably reflect this.

The original post mentiond M1 mac and was confirmed happening to steamdeck which uses a rdna2 gpu. What gpu are you using that's affecting NVIDIA.

Rastafabisch commented 1 year ago

The original post mentiond M1 mac and was confirmed happening to steamdeck which uses a rdna2 gpu.

Exactly. The Issue is not limited to Apple Silicon devices. this should be reflected in the name of the issue.

What gpu are you using that's affecting NVIDIA.

None. I might have miss expressed myself. Everything but NVIDIA seems to be affected.

Spidy123222 commented 1 year ago

The original post mentiond M1 mac and was confirmed happening to steamdeck which uses a rdna2 gpu.

Exactly. The Issue is not limited to Apple Silicon devices. this should be reflected in the name of the issue.

What gpu are you using that's affecting NVIDIA.

None. I might have miss expressed myself. Everything but NVIDIA seems to be affected.

Most people that I know that has worked on xemu was on an nvidia gpu so maybe just needs some work on a gpu maybe like steamdeck since I heard Matt got one and would use it for xemu at some point. Do you have any idea if this affects intel arc gpu's?

gale-slhoth commented 7 months ago

Title

https://xemu.app/titles/4541005b/#Burnout-3-Takedown

Bug Description

Only Race is visible and car select screen without hud Whole Menu + Intro is black.

Expected Behavior

Game is visible.

xemu Version

0.7.67

System Information

OS Platform: macOS OS Version: Version 12.4 (Build 21F79) Manufacturer: Apple GPU Model: Apple M1 Max Driver: 4.1 Metal - 76.3 Shader: 4.10

Additional Context

No response

Same issue, audio only no video — controller works as I click but no video. First time running Xemu, only tried with this game. CPU:
OS Platform: macOS OS Version: Version 13.6.3 (Build 22G436) Manufacturer: Apple GPU Model: Apple M1 Pro Driver: 4.1 Metal - 83.1 Shader: 4.10

Burnout 3 Takedown This Xbox XISO was created with extract-xiso build-202303040307 (32-bit) from the following Redump ISO. Burnout 3 - Takedown (USA).iso CRC: 602C1D40 MD5: 0F56F921EDA19DBC630BF3283BF14857 SHA-1: E34244B81B87A4E6061FB09C58C383DB93A15D14 Date: 2023-08-10

https://github.com/xemu-project/xemu/assets/70144828/2a4e295b-192b-473d-87ff-a944a8a34937

Spidy123222 commented 7 months ago

Title

https://xemu.app/titles/4541005b/#Burnout-3-Takedown

Bug Description

Only Race is visible and car select screen without hud Whole Menu + Intro is black.

Expected Behavior

Game is visible.

xemu Version

0.7.67

System Information

OS Platform: macOS OS Version: Version 12.4 (Build 21F79) Manufacturer: Apple GPU Model: Apple M1 Max Driver: 4.1 Metal - 76.3 Shader: 4.10

Additional Context

No response

Same issue, audio only no video — controller works as I click but no video. First time running Xemu, only tried with this game.

CPU:

OS Platform: macOS

OS Version: Version 13.6.3 (Build 22G436)

Manufacturer: Apple

GPU Model: Apple M1 Pro

Driver: 4.1 Metal - 83.1

Shader: 4.10

Burnout 3 Takedown

Thanks for visiting The Vault at Vimm's Lair.

vimm.net

This Xbox XISO was created with extract-xiso build-202303040307 (32-bit) from the following Redump ISO.

Burnout 3 - Takedown (USA).iso

CRC: 602C1D40

MD5: 0F56F921EDA19DBC630BF3283BF14857

SHA-1: E34244B81B87A4E6061FB09C58C383DB93A15D14

Date: 2023-08-10

https://github.com/xemu-project/xemu/assets/70144828/2a4e295b-192b-473d-87ff-a944a8a34937

Please don't be posting rom sites in the GitHub.

gale-slhoth commented 7 months ago

Title

https://xemu.app/titles/4541005b/#Burnout-3-Takedown

Bug Description

Only Race is visible and car select screen without hud Whole Menu + Intro is black.

Expected Behavior

Game is visible.

xemu Version

0.7.67

System Information

OS Platform: macOS OS Version: Version 12.4 (Build 21F79) Manufacturer: Apple GPU Model: Apple M1 Max Driver: 4.1 Metal - 76.3 Shader: 4.10

Additional Context

No response

Same issue, audio only no video — controller works as I click but no video. First time running Xemu, only tried with this game. CPU: OS Platform: macOS OS Version: Version 13.6.3 (Build 22G436) Manufacturer: Apple GPU Model: Apple M1 Pro Driver: 4.1 Metal - 83.1 Shader: 4.10 Burnout 3 Takedown Thanks for visiting The Vault at Vimm's Lair. vimm.net This Xbox XISO was created with extract-xiso build-202303040307 (32-bit) from the following Redump ISO. Burnout 3 - Takedown (USA).iso CRC: 602C1D40 MD5: 0F56F921EDA19DBC630BF3283BF14857 SHA-1: E34244B81B87A4E6061FB09C58C383DB93A15D14 Date: 2023-08-10

Screen.Recording.2023-12-31.at.4.43.20.AM.mov

Please don't be posting rom sites in the GitHub.

What is rom sites? The vimm link? I can remove it, if it's an issue, just providing clarity on issue where I can.

Spidy123222 commented 7 months ago

Title

https://xemu.app/titles/4541005b/#Burnout-3-Takedown

Bug Description

Only Race is visible and car select screen without hud Whole Menu + Intro is black.

Expected Behavior

Game is visible.

xemu Version

0.7.67

System Information

OS Platform: macOS OS Version: Version 12.4 (Build 21F79) Manufacturer: Apple GPU Model: Apple M1 Max Driver: 4.1 Metal - 76.3 Shader: 4.10

Additional Context

No response

Same issue, audio only no video — controller works as I click but no video. First time running Xemu, only tried with this game.

CPU:

OS Platform: macOS

OS Version: Version 13.6.3 (Build 22G436)

Manufacturer: Apple

GPU Model: Apple M1 Pro

Driver: 4.1 Metal - 83.1

Shader: 4.10

Burnout 3 Takedown

Thanks for visiting The Vault at Vimm's Lair.

vimm.net

This Xbox XISO was created with extract-xiso build-202303040307 (32-bit) from the following Redump ISO.

Burnout 3 - Takedown (USA).iso

CRC: 602C1D40

MD5: 0F56F921EDA19DBC630BF3283BF14857

SHA-1: E34244B81B87A4E6061FB09C58C383DB93A15D14

Date: 2023-08-10

Screen.Recording.2023-12-31.at.4.43.20.AM.mov

Please don't be posting rom sites in the GitHub.

What is rom sites? The vimm link? I can remove it, if it's an issue, just providing clarity on issue where I can.

About using Vimm's Lair yes

gale-slhoth commented 7 months ago

All Gucci now.

ChrisOboe commented 5 months ago

I can confirm the problem with a RX7900XTX and mesa 24.0.2 with the radeon driver. with the zink driver on the same hardware and same mesa it works without problems.

DMJC commented 1 month ago

This issue is still occurring on Debian 13 (Trixie) Kernel 6.9.7-amd64 Mesa Info: Vendor: Intel (0x8086) Device: Mesa Intel(R) Graphics (ADL GT2) (0x4628) Version: 24.1.3 Accelerated: yes Video memory: 15648MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 GPU: Intel Corporation Alder Lake-UP3 GT2 [UHD Graphics] (rev 0c) CPU: 12th Gen Intel(R) Core(TM) i7-1265U System is HP Zbook Pro Firefly G9

I was able to load into the full game, 3D race mode works, cutscene animations are broken/black screen, 2D menus are working, was able to select USA/Europe etc, 3D race mode works.

ghyujkilop commented 2 days ago

Works on my end. No Hud or black screen issues.

deefha commented 2 days ago

Still have same issues :-/ Steam Deck, Xemu 0.7.131.