proton: Use Wine's DXGI by default

Required for vkd3d support. You can still use DXVK's DXGI with
WINEDLLOVERRIDES="dxgi=n".
This commit is contained in:
Andrew Eikum 2019-10-22 09:42:06 -05:00
parent 7a21c57606
commit 6fc7e9580c

10
proton
View file

@ -414,15 +414,21 @@ class CompatData:
if "wined3d" in g_session.compat_config: if "wined3d" in g_session.compat_config:
dxvkfiles = [] dxvkfiles = []
wined3dfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "dxgi", "d3d9"] wined3dfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "d3d9"]
else: else:
dxvkfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1", "dxgi"] dxvkfiles = ["d3d11", "d3d10", "d3d10core", "d3d10_1"]
wined3dfiles = [] wined3dfiles = []
if "d9vk" in g_session.compat_config: if "d9vk" in g_session.compat_config:
dxvkfiles.append("d3d9") dxvkfiles.append("d3d9")
else: else:
wined3dfiles.append("d3d9") wined3dfiles.append("d3d9")
#if the user asked for dxvk's dxgi (dxgi=n), then copy it into place
if "WINEDLLOVERRIDES" in os.environ and "dxgi=n" in os.environ["WINEDLLOVERRIDES"]:
dxvkfiles.append("dxgi")
else:
wined3dfiles.append("dxgi")
for f in wined3dfiles: for f in wined3dfiles:
try_copy(g_proton.default_pfx_dir + "drive_c/windows/system32/" + f + ".dll", try_copy(g_proton.default_pfx_dir + "drive_c/windows/system32/" + f + ".dll",
self.prefix_dir + "drive_c/windows/system32/" + f + ".dll") self.prefix_dir + "drive_c/windows/system32/" + f + ".dll")