From 7da8928dd9796eb81d1db4f94228c39b613b2e54 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 30 Aug 2023 15:04:02 -0600 Subject: [PATCH] proton: Add enableamdags compat config option. And enable it for a few games instead of registry overrides. CW-Bug-Id: #22677 --- proton | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/proton b/proton index 19981d50..63ff85ed 100755 --- a/proton +++ b/proton @@ -1189,6 +1189,14 @@ def default_compat_config(): ]: ret.add("enablenvapi") + if appid in [ + "1245620", #Elden Ring + "1888160", #Armored Core VI + "814380", #Sekiro: Shadows Die Twice + "2379390", #Rainbow Six Extraction + ]: + ret.add("enableamdags") + return ret class Session: @@ -1359,6 +1367,7 @@ class Session: self.check_environment("PROTON_NO_XIM", "noxim") self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree") self.check_environment("PROTON_ENABLE_NVAPI", "enablenvapi") + self.check_environment("PROTON_ENABLE_AMD_AGS", "enableamdags") if "noesync" in self.compat_config: self.env.pop("WINEESYNC", "") @@ -1475,6 +1484,9 @@ class Session: if "enablenvapi" in self.compat_config: self.env["DXVK_ENABLE_NVAPI"] = "1" + if "enableamdags" in self.compat_config: + self.dlloverrides["amd_ags_x64"] = "b" + s = "" for dll in self.dlloverrides: setting = self.dlloverrides[dll]