From 7e4503ee36fdbbcc9bcb67306f5822af3da4dcdb Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 12 Mar 2024 15:20:34 +0200 Subject: [PATCH] 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. --- proton | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proton b/proton index ae2df36d..9e59a8bf 100755 --- a/proton +++ b/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")