Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant launch Direct3D 11 games on Wayland with Proton 5.13 to 6.3 #4816

Open
Scrumplex opened this issue May 11, 2021 · 7 comments
Open

Cant launch Direct3D 11 games on Wayland with Proton 5.13 to 6.3 #4816

Scrumplex opened this issue May 11, 2021 · 7 comments

Comments

@Scrumplex
Copy link

Scrumplex commented May 11, 2021

Direct3D 11 games are crashing while starting on Wayland with Proton versions 5.13-6 and 6.3-3.

My test results

Proton Sway (Wayland) Plasma (Wayland) i3 (X11)
Experimental ✔️ ✔️ ✔️
6.3-3 ✔️
5.13-6 ✔️
5.0-10 ✔️ ✔️ ✔️
4.11-13 ✔️ ✔️ ✔️
4.2-9 ✔️ ✔️ ✔️
3.16-9 ✔️ ✔️ ✔️
3.7-8 ✔️ ✔️ ✔️

✔️ Works

❌ Doesn't work

Games tested

  • Beat Saber (Unity, VR, D3D11)
  • SynthVR (Unity, VR, D3D11)
  • Autonauts (Unity, D3D11)
  • NieR: Automata (D3D11)

Workarounds

  • Using X11 (Not a good workaround)
  • Enabling WineD3D (Also not good)
  • WINEDLLOVERRIDES=dxgi=n %command% (Actually works!!, but why?)

Logs / Screenshots

Beat Saber and SynthVR:
DX11 not initialized

NieR: Automata
No VRAM?

Autonauts

Log
Initialize engine version: 2018.4.26f1 (a7ac1c6396db)
GfxDevice: creating device client; threaded=1
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
warn:  OpenXR: Unable to get required Vulkan instance extensions size
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
warn:  OpenXR: Unable to get required Vulkan Device extensions size
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
warn:  D3D11CreateDevice: Unsupported driver type
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
d3d11: D3D_FEATURE_LEVEL_11_1 not-recognized (only 11.0 runtime installed?)
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
warn:  D3D11CreateDevice: Unsupported driver type
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
d3d11: failed to create device and context (80070057).
GfxDevice: creating device client; threaded=1
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
warn:  D3D11CreateDevice: Unsupported driver type
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
d3d11: D3D_FEATURE_LEVEL_11_1 not-recognized (only 11.0 runtime installed?)
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
warn:  D3D11CreateDevice: Unsupported driver type
warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: Autonauts.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
err:   D3D11CoreCreateDevice: Requested feature level not supported
d3d11: failed to create device and context (80070057).
Failed to initialize graphics.

Make sure you have DirectX 11 installed, have up to date

drivers for your graphics card and have not disabled

3D acceleration in display settings.
Crash!!!

More

@kisak-valve
Copy link
Member

Possible duplicate of #4815 / #4807.

@germanicianus
Copy link

Same issue here with World of Tanks Blitz using Proton 6.3-4 and Experimental.

info:  Game: wotblitz.exe
info:  DXVK: v1.7.3-37-g3f91cdbc
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_1
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_9_3
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_9_2
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_9_1
err:   D3D11CoreCreateDevice: Requested feature level not supported

wot_blitz_error_steam_proton_6 3-4
Adding WINEDLLOVERRIDES=dxgi=n to the starting options resolves the issue - see section Workarounds in the first issue comment.

@highpost
Copy link

highpost commented May 31, 2021

I was having problems getting Twilight Struggle, a Unity game, running on Steam/Proton Experimental with Ubuntu 21.04. With Ubuntu 20.10 I had been using PROTON_USE_WINED3D11=1 %command% as the configuration string. That worked with Ubuntu 21.04 for a period of time after installation because I appended --xwayland to the configuration string. Then it stopped working under both XWayland and XOrg.

Reading this issue I found that WINEDLLOVERRIDES=dxgi=n %command% allows the game to run under XOrg and adding --xwayland works under XWayland but at a much lower frame rate, like 1 FPS.

@Ristovski
Copy link

Ristovski commented Jul 27, 2023

I am experiencing the same issue, except that the workaround does not seem to work for me. I can confirm that using proton version 5.0-10 works fine under Wayland, but anything higher than that does not.

Edit: Steam Runtime Diagnostics: https://gist.github.com/Ristovski/016710a5e5ccb6b32a2e3cc93caf0eb7

@kisak-valve
Copy link
Member

Hello @Ristovski, please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report.

@Ristovski
Copy link

Ristovski commented Jul 27, 2023

I have updated my original comment.

Furthermore, I can confirm that vulkan works fine inside the flatpak environment via flatpak run org.freedesktop.Platform.VulkanInfo.

@kisak-valve
Copy link
Member

Looking at the diagnostics information, there's some kind of snafu with XCB connections and Steam Linux Runtime interaction with Flatpak. (https://gist.github.com/Ristovski/016710a5e5ccb6b32a2e3cc93caf0eb7#file-gistfile1-txt-L3723)

Please open a new issue report in https://github.com/ValveSoftware/steam-runtime/ focusing on that XCB detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants