protonscr

GTA: San Andreas - The Definitive Edition crashes with HDR on.

dxvkclosed
doitsujin/dxvk#4449 · opened 2024-11-12 by Hadrianneue · updated 2024-11-26 · 10 comments · github
3 matching comments, n / p to jump
HHadrianneue 2024-11-12 github

Game crashes with just the DXVK_HDR=1 with fatal error dialog message on startup, crashes with gamescope if using the --hdr-enabled option, by default it runs with DX11, forcing DX12 with %command% -dx12 actually gets in game without crashes, allows me to enabled HDR but it doesn't work, has no effect.

originally submitted on https://github.com/ValveSoftware/gamescope/issues/1625

Software information

  • Desktop environment: KDE 6.2
  • Session type: wayland
  • Gamescope version: 3.15.9-21-g7dd1bcd9 (gcc 14.2.1)

System information

  • GPU: RX 6700 XT
  • Driver: mesa-git
  • Wine version: proton experimental bleeding-edge
  • DXVK version: dxvk-git

Log files

steam.log

Ddoitsujin maintainer 2024-11-12 github

This is unfortunately normal for UE4 since their DX11 path only supports HDR through AGS or NVAPI for some reason and doesn't error-check a single thing, so if anything goes wrong there it just explodes. We have code to disable HDR for UE4 but it doesn't work here because the exe name doesn't seem to follow the usual *-Shipping.exe pattern.

TL;DR if you want to use HDR with any Unreal Engine game, you have to use D3D12, but we can add an app profile to avoid the crash.

BBlisto91 2024-11-12 github

You can try to launch with PROTON_FORCE_NVAPI=1 %command% to see if that allows it to work in d3d11 mode. It not working in d3d12 mode i don't know but it could just be a game thing as dx12 might not be considered supported or tested by the devs.

Edit: To clarify. The reason the ags path doesn't work with these UE4 games is that it is statically linked which doesn't work in Proton/Wine.

HHadrianneue 2024-11-12 github

You can try to launch with PROTON_FORCE_NVAPI=1 %command% to see if that allows it to work in d3d11 mode. It not working in d3d12 mode i don't know but it could just be a game thing as dx12 might not be considered supported or tested by the devs.

Edit: To clarify. The reason the ags path doesn't work with these UE4 games is that it is statically linked which doesn't work in Proton/Wine.

that indeed works and is necessary on asseto corsa competizione, which is dx11

HHadrianneue 2024-11-12 github

This is unfortunately normal for UE4 since their DX11 path only supports HDR through AGS or NVAPI for some reason and doesn't error-check a single thing, so if anything goes wrong there it just explodes. We have code to disable HDR for UE4 but it doesn't work here because the exe name doesn't seem to follow the usual *-Shipping.exe pattern.

TL;DR if you want to use HDR with any Unreal Engine game, you have to use D3D12, but we can add an app profile to avoid the crash.

PROTON_FORCE_NVAPI=1 does prevent crashing even on dx11, either way HDR is simply not working, the toggle makes no difference... other UE4/5 games work just fine with HDR

Actually im going to check windows later today, not even sure if its working there

Qqinlili23333 2024-11-13 github

because the exe name doesn't seem to follow the usual *-Shipping.exe pattern

Maybe we should improve UE4 detecting method.
Current status is:

  • Some game doesn't follow Shipping.exe format (GTASA-DE in this issue, and Hi-Fi Rush on my device is Hi-Fi-RUSH.exe)
  • Some UE3 game also follow Shipping.exe format (MMH7Game-Win64-Shipping.exe for Might and Magic Heroes VII)
  • We hardcoded bool isUE4 = exeName.find("-Win64-Shipping") != std::string::npos; which won't allow 32-bit games been detected, but there are some 32-bit UE4 games (I made a list of them using PCGW query, although I didn't see any of them has HDR support currently)

I suggest to use \Content\Paks folder structure to detect UE4.

BBlisto91 2024-11-15 github

@Hadrianneue Did you find out if HDR works on Windows?

Mmirh 2024-11-20 github

since their DX11 path only supports HDR through AGS or NVAPI for some reason

Shouldn't this be handled by/in dxvk-nvapi then?

BBlisto91 2024-11-20 github

No as a user might not be using nvapi. Outside Proton as an example.

HHadrianneue 2024-11-20 github

@Hadrianneue Did you find out if HDR works on Windows?

sorry dude i somehow missed this notification, i tried today and HDR seems to not be working on windows at all, game only worked with DX11 on windows, dx12 crashes, but i'm almost certain that its broken.

Mmirh 2024-11-21 github

Dxvk isn't supposed to handle d3d12.

Proton versions

Launch options

Launch lines

Upstream links