protonscr

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

protonopen
ValveSoftware/Proton#4816 · opened 2021-05-11 by Scrumplex · updated 2023-07-27 · 7 comments · github
SScrumplex 2021-05-11 github

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 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
6.3-3 :x: :x: :heavy_check_mark:
5.13-6 :x: :x: :heavy_check_mark:
5.0-10 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
4.11-13 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
4.2-9 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
3.16-9 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
3.7-8 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

:heavy_check_mark: Works

:x: 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

Kkisak-valve maintainer 2021-05-11 github

Possible duplicate of #4815 / #4807.

Ggermanicianus 2021-05-22 github

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.

Hhighpost 2021-05-31 github

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.

RRistovski 2023-07-27 github

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

Kkisak-valve maintainer 2023-07-27 github

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.

RRistovski 2023-07-27 github

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.

Kkisak-valve maintainer 2023-07-27 github

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.

Proton versions

Launch options

Launch lines