Skip to content

Commit

Permalink
proton/proton-valve add X11 tweak for Mesa and update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonlover02 committed Dec 2, 2024
1 parent 55508ed commit 40a7e12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sarek-Patches/proton
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ class Session:
#disable XIM support until libx11 >= 1.7 is widespread
self.env.setdefault("WINE_ALLOW_XIM", "0")

# <<Sarek Parameters>>
# <<Sarek Settings>>

# Software Rendering Parameters:
if "PROTON_OGL_SOFTWARE" in self.env and nonzero(self.env["PROTON_OGL_SOFTWARE"]):
Expand All @@ -1587,7 +1587,7 @@ class Session:
if "PROTON_VK_SOFTWARE" in self.env and nonzero(self.env["PROTON_VK_SOFTWARE"]):
self.env["MESA_VK_DEVICE_SELECT"] = "10005:0!"

# Define tweak settings for Proton, NVIDIA, and Mesa:
# sarek_runtime:
proton_tweaks = {
"WINEDEBUG": "-all",
"DXVK_LOG_LEVEL": "none",
Expand All @@ -1610,15 +1610,15 @@ class Session:
"MESA_NO_ERROR": "true",
"MESA_DEBUG": "silent",
"MESA_NO_DITHER": "1",
"MESA_BACK_BUFFER": "ximage",
}

# Apply Tweaks if wanted:
if "PROTON_NO_TWEAKS" in self.env and nonzero(self.env["PROTON_NO_TWEAKS"]) or "PROTON_LOG" in self.env and nonzero(self.env["PROTON_LOG"]):
pass
else:
self.env.update(proton_tweaks | nvidia_tweaks | mesa_tweaks)

# <<Sarek Parameters>>
# <<Sarek Settings>>

if "wined3d11" in self.compat_config:
self.compat_config.add("wined3d")
Expand Down
8 changes: 4 additions & 4 deletions Sarek-Patches/proton-valve
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ class Session:
#disable XIM support until libx11 >= 1.7 is widespread
self.env.setdefault("WINE_ALLOW_XIM", "0")

# <<Sarek Parameters>>
# <<Sarek Settings>>

# Software Rendering Parameters:
if "PROTON_OGL_SOFTWARE" in self.env and nonzero(self.env["PROTON_OGL_SOFTWARE"]):
Expand All @@ -1425,7 +1425,7 @@ class Session:
if "PROTON_VK_SOFTWARE" in self.env and nonzero(self.env["PROTON_VK_SOFTWARE"]):
self.env["MESA_VK_DEVICE_SELECT"] = "10005:0!"

# Define tweak settings for Proton, NVIDIA, and Mesa:
# sarek_runtime:
proton_tweaks = {
"WINEDEBUG": "-all",
"DXVK_LOG_LEVEL": "none",
Expand All @@ -1448,15 +1448,15 @@ class Session:
"MESA_NO_ERROR": "true",
"MESA_DEBUG": "silent",
"MESA_NO_DITHER": "1",
"MESA_BACK_BUFFER": "ximage",
}

# Apply Tweaks if wanted:
if "PROTON_NO_TWEAKS" in self.env and nonzero(self.env["PROTON_NO_TWEAKS"]) or "PROTON_LOG" in self.env and nonzero(self.env["PROTON_LOG"]):
pass
else:
self.env.update(proton_tweaks | nvidia_tweaks | mesa_tweaks)

# <<Sarek Parameters>>
# <<Sarek Settings>>

if "wined3d11" in self.compat_config:
self.compat_config.add("wined3d")
Expand Down

0 comments on commit 40a7e12

Please sign in to comment.