mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
proton: Add PROTON_DXVK_D3D8 / dxvkd3d8.
This commit is contained in:
parent
3c7deb1047
commit
dbc6c0eaf7
@ -291,6 +291,7 @@ the Wine prefix. Removing the option will revert to the previous behavior.
|
||||
| `wined3d` | `PROTON_USE_WINED3D` | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11, d3d10, and d3d9. |
|
||||
| `nod3d11` | `PROTON_NO_D3D11` | Disable `d3d11.dll`, for d3d11 games which can fall back to and run better with d3d9. |
|
||||
| `nod3d10` | `PROTON_NO_D3D10` | Disable `d3d10.dll` and `dxgi.dll`, for d3d10 games which can fall back to and run better with d3d9. |
|
||||
| `dxvkd3d8` | `PROTON_DXVK_D3D8` | Use DXVK's `d3d8.dll`. |
|
||||
| `noesync` | `PROTON_NO_ESYNC` | Do not use eventfd-based in-process synchronization primitives. |
|
||||
| `nofsync` | `PROTON_NO_FSYNC` | Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no `FUTEX_WAIT_MULTIPLE` support.) |
|
||||
| `noxim` | `PROTON_NO_XIM` | Enabled by default. Do not attempt to use XIM (X Input Methods) support. XIM support is known to cause crashes with libx11 older than version 1.7. |
|
||||
|
10
proton
10
proton
@ -40,7 +40,7 @@ from random import randrange
|
||||
#To enable debug logging, copy "user_settings.sample.py" to "user_settings.py"
|
||||
#and edit it if needed.
|
||||
|
||||
CURRENT_PREFIX_VERSION="9.0-201"
|
||||
CURRENT_PREFIX_VERSION="9.0-202"
|
||||
|
||||
PFX="Proton: "
|
||||
ld_path_var = "LD_LIBRARY_PATH"
|
||||
@ -805,6 +805,7 @@ class CompatData:
|
||||
use_dxvk_dxgi = not use_wined3d and \
|
||||
not ("WINEDLLOVERRIDES" in g_session.env and "dxgi=b" in g_session.env["WINEDLLOVERRIDES"])
|
||||
use_nvapi = 'disablenvapi' not in g_session.compat_config or 'forcenvapi' in g_session.compat_config
|
||||
use_dxvk_d3d8 = "dxvkd3d8" in g_session.compat_config
|
||||
|
||||
builtin_dll_copy = os.environ.get("PROTON_DLL_COPY",
|
||||
#dxsetup redist
|
||||
@ -855,6 +856,7 @@ class CompatData:
|
||||
str(use_dxvk_dxgi),
|
||||
builtin_dll_copy,
|
||||
str(use_nvapi),
|
||||
str(use_dxvk_d3d8),
|
||||
))
|
||||
|
||||
# check whether any prefix config has changed
|
||||
@ -939,6 +941,11 @@ class CompatData:
|
||||
else:
|
||||
wined3dfiles.append("dxgi")
|
||||
|
||||
if use_dxvk_d3d8:
|
||||
dxvkfiles.append("d3d8")
|
||||
else:
|
||||
wined3dfiles.append("d3d8")
|
||||
|
||||
for f in wined3dfiles:
|
||||
try_copy(g_proton.default_pfx_dir + "drive_c/windows/system32/" + f + ".dll", "drive_c/windows/system32",
|
||||
prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
|
||||
@ -1350,6 +1357,7 @@ class Session:
|
||||
|
||||
if not self.check_environment("PROTON_USE_WINED3D", "wined3d"):
|
||||
self.check_environment("PROTON_USE_WINED3D11", "wined3d")
|
||||
self.check_environment("PROTON_DXVK_D3D8", "dxvkd3d8")
|
||||
self.check_environment("PROTON_NO_D3D11", "nod3d11")
|
||||
self.check_environment("PROTON_NO_D3D10", "nod3d10")
|
||||
self.check_environment("PROTON_NO_ESYNC", "noesync")
|
||||
|
Loading…
Reference in New Issue
Block a user