Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Eikum <aeikum@codeweavers.com>2020-07-15 23:01:55 +0300
committerAndrew Eikum <aeikum@codeweavers.com>2020-07-15 23:28:04 +0300
commit4ee3a5af7011af3a80b53c79d7e0dc7b400d94c9 (patch)
treeb661aa7b36818428b0b4e27d7eec4e5a07912e3f
parent84fd803d969d2b0246efd377dd96ae2d1df327b7 (diff)
proton: Add vkd3dfl12 to force Direct3D 12 feature levelproton-5.0-10-rc2proton_5.0-next
-rw-r--r--README.md1
-rwxr-xr-xproton4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 25acd107..e1919f4d 100644
--- a/README.md
+++ b/README.md
@@ -275,6 +275,7 @@ the Wine prefix. Removing the option will revert to the previous behavior.
| <tt>forcelgadd</tt> | <tt>PROTON_FORCE_LARGE_ADDRESS_AWARE</tt> | Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. |
| <tt>noforcelgadd</tt> | | Disable forcelgadd. If both this and `forcelgadd` are set, enabled wins. |
| <tt>oldglstr</tt> | <tt>PROTON_OLD_GL_STRING</tt> | Set some driver overrides to limit the length of the GL extension string, for old games that crash on very long extension strings. |
+| <tt>vkd3dfl12</tt> | | Force the Direct3D 12 feature level to 12, regardless of driver support. |
| | <tt>WINE_FULLSCREEN_INTEGER_SCALING</tt> | Enable integer scaling mode, to give sharp pixels when upscaling. |
| <tt>cmdlineappend:</tt>| | Append the string after the colon as an argument to the game command. May be specified more than once. Escape commas and backslashes with a backslash. |
| <tt>d9vk</tt> | <tt>PROTON_USE_D9VK</tt> | **Note: Obsoleted in Proton 5.0.** In older versions, use Vulkan-based DXVK instead of OpenGL-based wined3d for d3d9. |
diff --git a/proton b/proton
index f2a2ab14..14c83d27 100755
--- a/proton
+++ b/proton
@@ -523,6 +523,10 @@ class Session:
if "forcelgadd" in self.compat_config:
self.env["WINE_LARGE_ADDRESS_AWARE"] = "1"
+ if "vkd3dfl12" in self.compat_config:
+ if not "VKD3D_FEATURE_LEVEL" in self.env:
+ self.env["VKD3D_FEATURE_LEVEL"] = "12_0"
+
if "SteamGameId" in self.env:
if self.env["WINEDEBUG"] != "-all":
lfile_path = os.environ["HOME"] + "/steam-" + os.environ["SteamGameId"] + ".log"