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:
Arkadiusz Hiler 2024-03-12 15:20:34 +02:00
parent 5bf4f87d4d
commit 7e4503ee36

5
proton
View File

@ -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")