ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
23.41k stars 1.03k forks source link

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

Open Scrumplex opened 3 years ago

Scrumplex commented 3 years ago

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

Workarounds

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 commented 3 years ago

Possible duplicate of #4815 / #4807.

germanicianus commented 3 years ago

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 commented 3 years ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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.