vkd3d-proton icon indicating copy to clipboard operation
vkd3d-proton copied to clipboard

Marvels's Guardians of the Galaxy and Deathloop (No suitable d3d12 adapter found)

Open ruineka opened this issue 2 years ago • 13 comments

System: OneXPlayer 1195g7 Iris Xe Mesa 21.3.4

Marvels runs fine on Iris Xe graphics on windows using -sharedvram as a launch argument, but it appears that on Linux this is not working to satisfy the 4GB minimum vram requirement the game requires.

This is the game running on Windows. https://www.youtube.com/watch?v=zH0IMM4DWSc

Here is the log: steam-1088850.log

I manually tried 4096mb as a VRAM option in the dxvk.conf which didn't do anything (not sure if vkd3d-proton even uses this, it shows up in the log though).

Looking closer at the log it looks like it might be related to warn:d3d12_device_create: Feature level 0xc000 is not supported.

ruineka avatar Feb 03 '22 06:02 ruineka

Ahhh,, I'm noticing a trend in the Directx12 games that don't run. They are complaining about d3d12_device_create: Feature level 0xc000 is not supported. Here is a log for Deathloop, the game works on Windows and won't run on Linux. steam-1252330.log

ruineka avatar Feb 03 '22 07:02 ruineka

I updated to the latest Mesa Git which added https://gitlab.freedesktop.org/mesa/mesa/-/commit/63e91148b7fe777b6ad7bfdb6b02d167c151dd55 and the bindless_state_get_bindless flag returns "Device supports VK_VALVE_mutable_descriptor_type" now, but the games previously mentioned still crash the same.

Running Hot Wheels Unleashed in D3D12 mode results in freezing after the main menu and it looks like it's using device_caps_override "Overriding feature level: 0xc000" This game is fully playable using the -dx11 flag with no issues whatsoever. steam-1271700.log

ruineka avatar Feb 03 '22 08:02 ruineka

It's because Intel doesn't support sparse residency on linux, which is required for D3D12 feature level 12_0. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5003

Oschowa avatar Feb 03 '22 11:02 Oschowa

It's because Intel doesn't support sparse residency on linux, which is required for D3D12 feature level 12_0. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5003

Thanks. For games that may work using feature overrides what is the command I could use to launch the games with for testing?

ruineka avatar Feb 03 '22 16:02 ruineka

Set the environment variable VKD3D_FEATURE_LEVEL=12_0

doitsujin avatar Feb 03 '22 16:02 doitsujin

Set the environment variable VKD3D_FEATURE_LEVEL=12_0

Thanks a lot! Deathloop launches with this and Marvel's Guardians of the Galaxy no longer complains about the adapter not being compatible. We will still need the sparse texture support for it to not crash after launch it seems.

Time to test as many D3D12 games as humanly possible. :)

ruineka avatar Feb 03 '22 16:02 ruineka

is there a fix for windows 10?

BrandonRamage avatar Mar 10 '22 14:03 BrandonRamage

Yes, not using vkd3d-proton and using native d3d12 instead.

Oschowa avatar Mar 10 '22 14:03 Oschowa

any chance you can dumb that down for me and maybe list the steps or a link to a tutorial? ive looked and cant seem to find a specific article or video on this issues resolution.

BrandonRamage avatar Mar 10 '22 20:03 BrandonRamage

Step 1: Remove the vkd3d-proton d3d12 and dxvk dxgi.dll from the games folder. Step 2: Launch the game and play it.

K0bin avatar Mar 10 '22 20:03 K0bin

I tried VKD3D_FEATURE_LEVEL=12_0 but it did not get rid of my problem.

I am seeing this line in the log:

0128:err:vkd3d_init_device_caps: KHR_dynamic_rendering is not supported by this implementation. This is required for correct operation.

aaomidi avatar Mar 26 '22 19:03 aaomidi

@aaomidi Your driver is too old.

K0bin avatar Mar 26 '22 20:03 K0bin

Looks like updating to mesa22 fixed the problem. Thanks!

aaomidi avatar Mar 26 '22 20:03 aaomidi