mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-20 01:22:14 +03:00
proton: Hide NVK by default.
Nvapi doesn't work out of the box with NVK in Proton yet and DXVK is already doing similar cloaking. This extends this behaviors to other APIs than DirectX that games may query like SetupAPI and Vulkan. We can get rid of this, including the Wine bits, once there's a proper support from dxvk-nvapi. In the meantime, for testing purposes setting WINE_HIDE_NVK=0 can be used. Fixes Deep Rock Galactic and Tower Unite on NVK.
This commit is contained in:
parent
5bf4f87d4d
commit
7e4503ee36
5
proton
5
proton
@ -1316,6 +1316,11 @@ class Session:
|
||||
#disable XIM support until libx11 >= 1.7 is widespread
|
||||
self.env.setdefault("WINE_ALLOW_XIM", "0")
|
||||
|
||||
#hide Nvidia GPUs if NVK is being used as dxvk-nvapi doesn't support it ootb yet
|
||||
#dxvk is doing similar hidding on their side
|
||||
#this option can be overriden with WINE_HIDE_NVK=0
|
||||
self.env.setdefault("WINE_HIDE_NVK", "1")
|
||||
|
||||
if "wined3d11" in self.compat_config:
|
||||
self.compat_config.add("wined3d")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user