proton: Set DXVK_ENABLE_NVAPI envvar when NvAPI is enabled

See: https://github.com/doitsujin/dxvk/pull/2544

Link: https://github.com/ValveSoftware/Proton/pull/5687
This commit is contained in:
Liam Middlebrook 2022-03-15 16:38:59 -07:00 committed by Arkadiusz Hiler
parent 22a1828158
commit aa33dd9cb8

3
proton
View File

@ -1208,6 +1208,9 @@ class Session:
if "nativevulkanloader" in self.compat_config:
self.dlloverrides["vulkan-1"] = "n"
if "enablenvapi" in self.compat_config:
self.env["DXVK_ENABLE_NVAPI"] = "1"
s = ""
for dll in self.dlloverrides:
setting = self.dlloverrides[dll]