protonscr

[Cyberpunk 2077] Crash at startup with VKD3D_FEATURE_LEVEL=12_2 on RDNA2 with Patch 2.02

vkd3dclosed
HansKristian-Work/vkd3d-proton#1756 · opened 2023-10-29 by ms178 · updated 2023-10-30 · 3 comments · github
Mms178 2023-10-29 github

With the latest patch (2.02) and VKD3D_FEATURE_LEVEL=12_2, the game crashes right away during the intro video. All is fine, if I set VKD3D_FEATURE_LEVEL=12_1 instead.

Software information

Cyberpunk 2077 v 2.02

System information

  • GPU: AMD 6950 XT (RDNA2)
  • Driver: Mesa-git (4f892ecc1e143c42a41d32450262e799d4d152af) + a couple of extra MR's on top
  • Wine version: wine-ge-custom 8.21
  • VKD3D-Proton version: vkd3d-proton-git (f968afb76b1e655840b065d238fa4dd0c8197eff)

Log files

steam-heroic-0.log

HHansKristian-Work maintainer 2023-10-30 github

This is not surprising. 12_2 forces ray tracing to be enabled, but without VKD3D_CONFIG=dxr, you get errors:

906.947:0140:0164:err:vkd3d-proton:d3d12_device_GetRaytracingAccelerationStructurePrebuildInfo: Acceleration structure is not supported. Calling this is invalid.
906.948:0140:0164:warn:debugstr:OutputDebugStringA "Assert: res == NVAPI_OK && prebuildInfo.ResultDataMaxSizeInBytes > 0: NvAPI_D3D12_GetRaytracingAccelerationStructurePrebuildInfoEx failed, NvAPI_Status: 0. [PrebuildInfo: MaxSize: 0, ScratchDataSize: 0, UpdateScratchData: 0][Inputs: Type: 0; Flags: 4; NumDescs: 128; InstanceDescs: 0; DescLa"...
906.948:0140:0164:trace:seh:dispatch_exception code=40010006 flags=0 addr=000000007B00CDB7 ip=7b00cdb7
906.948:0140:0164:trace:seh:dispatch_exception  info[0]=0000000000000185
906.948:0140:0164:trace:seh:dispatch_exception  info[1]=0000000144784ce0
906.948:0140:0164:warn:seh:dispatch_exception "Assert: res == NVAPI_OK && prebuildInfo.ResultDataMaxSizeInBytes > 0: NvAPI_D3D12_GetRaytracingAccelerationStructurePrebuildInfoEx failed, NvAPI_Status: 0. [PrebuildInfo: MaxSize: 0, ScratchDataSize: 0, UpdateScratchData: 0][Inputs: Type: 0; Flags: 4; NumDescs: 128; InstanceDescs: 0; DescLa"...

With VKD3D_CONFIG=dxr, it boots just fine.

HHansKristian-Work maintainer 2023-10-30 github

Why are you even forcing FL 12.2? It is a gross hack to do that, and only intended for debugging or workarounds.

Mms178 2023-10-30 github

The game offers ray tracing graphics options only when forcing that specific Feature level. My 6950 XT supports raytracing (in theory, RADV support is still a bit behind the curve), so I wanted to try it out. Thanks for the tip with additionally setting VKD3D_CONFIG=dxr it now starts up correctly. This somehow used to work without specifying that additional option with an earlier game version though (with 2.00).