Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
f56bbdb2
Commit
f56bbdb2
authored
May 09, 2025
by
Htylol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the ability to use dxvk and vkd3d which are shipped with proton versions.
parent
a81fdc48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
functions_helper
data_from_portwine/scripts/functions_helper
+29
-3
var
data_from_portwine/scripts/var
+1
-0
No files found.
data_from_portwine/scripts/functions_helper
View file @
f56bbdb2
...
...
@@ -3913,14 +3913,20 @@ start_portwine () {
if
[[
-n
"
$CP_DXVK_FILES
"
]]
;
then
print_info
"Try create symlink DXVK files..."
for
wine_dxvk_dll
in
$CP_DXVK_FILES
;
do
if
[[
$PW_USE_SUPPLIED_DXVK_VKD3D
==
"1"
]]
\
&&
[[
-f
"
${
WINEDIR
}
/lib64/wine/dxvk/
${
wine_dxvk_dll
}
.dll"
]]
;
then
try_force_link_file
"
${
WINEDIR
}
/lib/wine/dxvk/
${
wine_dxvk_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/
${
wine_dxvk_dll
}
.dll"
try_force_link_file
"
${
WINEDIR
}
/lib64/wine/dxvk/
${
wine_dxvk_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/
${
wine_dxvk_dll
}
.dll"
else
if
[[
-f
"
${
PATH_TO_DXVK_FILES
}
/x64/
${
wine_dxvk_dll
}
.dll"
]]
;
then
try_force_link_file
"
${
PATH_TO_DXVK_FILES
}
/x32/
${
wine_dxvk_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/
${
wine_dxvk_dll
}
.dll"
try_force_link_file
"
${
PATH_TO_DXVK_FILES
}
/x64/
${
wine_dxvk_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/
${
wine_dxvk_dll
}
.dll"
if
[[
"
$PW_USE_FAKE_DLSS_3
"
==
"1"
]]
&&
[[
"
$wine_dxvk_dll
"
==
dxgi
]]
fi
fi
if
[[
$PW_USE_FAKE_DLSS_3
==
"1"
]]
&&
[[
$wine_dxvk_dll
==
"dxgi"
]]
then
var_winedlloverride_update
"dxgi=n,b"
else
var_winedlloverride_update
"
${
wine_dxvk_dll
}
=n"
fi
fi
done
create_new_dir
"
${
PATH_TO_DXVK_FILES
}
/dxvk_cache"
export
DXVK_STATE_CACHE_PATH
=
"
${
PATH_TO_DXVK_FILES
}
"
/dxvk_cache
...
...
@@ -3929,9 +3935,16 @@ start_portwine () {
if
[[
"
$DXVK_ENABLE_NVAPI
"
==
"1"
]]
;
then
print_info
"Try create symlink NVAPI files..."
if
[[
$PW_USE_SUPPLIED_DXVK_VKD3D
==
"1"
]]
\
&&
[[
-f
"
${
WINEDIR
}
/lib64/wine/nvapi/nvapi64.dll"
]]
;
then
try_force_link_file
"
${
WINEDIR
}
/lib/wine/nvapi/nvapi.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/nvapi.dll"
try_force_link_file
"
${
WINEDIR
}
/lib64/wine/nvapi/nvapi64.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/nvapi64.dll"
try_force_link_file
"
${
WINEDIR
}
/lib64/wine/nvapi/nvofapi64.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/nvofapi64.dll"
else
try_force_link_file
"
${
PATH_TO_DXVK_FILES
}
/x32/nvapi.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/nvapi.dll"
try_force_link_file
"
${
PATH_TO_DXVK_FILES
}
/x64/nvapi64.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/nvapi64.dll"
try_force_link_file
"
${
PATH_TO_DXVK_FILES
}
/x64/nvofapi64.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/nvofapi64.dll"
fi
var_winedlloverride_update
"nvapi64,nvofapi64,nvapi=n;nvcuda=b"
else
try_remove_file
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/nvapi.dll"
...
...
@@ -3942,9 +3955,21 @@ start_portwine () {
if
[[
-n
"
$CP_VKD3D_FILES
"
]]
;
then
print_info
"Try create symlink VKD3D files..."
for
wine_vkd3d_dll
in
$CP_VKD3D_FILES
;
do
if
[[
$PW_USE_SUPPLIED_DXVK_VKD3D
==
"1"
]]
\
&&
[[
-f
"
${
WINEDIR
}
/lib64/wine/vkd3d-proton/
${
wine_vkd3d_dll
}
.dll"
||
-f
"
${
WINEDIR
}
/lib64/vkd3d/
${
wine_vkd3d_dll
}
.dll"
]]
;
then
if
[[
-f
"
${
WINEDIR
}
/lib64/wine/vkd3d-proton/
${
wine_vkd3d_dll
}
.dll"
]]
;
then
try_force_link_file
"
${
WINEDIR
}
/lib/wine/vkd3d-proton/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/
${
wine_vkd3d_dll
}
.dll"
try_force_link_file
"
${
WINEDIR
}
/lib64/wine/vkd3d-proton/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/
${
wine_vkd3d_dll
}
.dll"
fi
if
[[
-f
"
${
WINEDIR
}
/lib64/vkd3d/
${
wine_vkd3d_dll
}
.dll"
]]
;
then
try_force_link_file
"
${
WINEDIR
}
/lib/vkd3d/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/
${
wine_vkd3d_dll
}
.dll"
try_force_link_file
"
${
WINEDIR
}
/lib64/vkd3d/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/
${
wine_vkd3d_dll
}
.dll"
fi
else
if
[[
-f
"
${
PATH_TO_VKD3D_FILES
}
/x64/
${
wine_vkd3d_dll
}
.dll"
]]
;
then
try_force_link_file
"
${
PATH_TO_VKD3D_FILES
}
/x86/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/syswow64/
${
wine_vkd3d_dll
}
.dll"
try_force_link_file
"
${
PATH_TO_VKD3D_FILES
}
/x64/
${
wine_vkd3d_dll
}
.dll"
"
${
WINEPREFIX
}
/drive_c/windows/system32/
${
wine_vkd3d_dll
}
.dll"
fi
var_winedlloverride_update
"
${
wine_vkd3d_dll
}
=n"
fi
done
...
...
@@ -5087,7 +5112,7 @@ gui_edit_db () {
PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME PW_REDUCE_PULSE_LATENCY PW_USE_US_LAYOUT PW_USE_GSTREAMER
PW_USE_SHADER_CACHE PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE
PW_DISABLE_COMPOSITING PW_USE_RUNTIME PW_DINPUT_PROTOCOL PW_USE_NATIVE_WAYLAND PW_USE_GALLIUM_ZINK PW_USE_GALLIUM_NINE
PW_USE_DAMAVAND
PW_USE_DAMAVAND
PW_USE_SUPPLIED_DXVK_VKD3D
)
if
check_wayland_session
;
then
...
...
@@ -5143,6 +5168,7 @@ gui_edit_db () {
PW_USE_GALLIUM_ZINK_INFO=${translations[Use Gallium Zink (OpenGL driver is implemented via Vulkan)]}
PW_USE_GALLIUM_NINE_INFO=${translations[Use Gallium Nine (native DirectX 9 for MESA)]}
PW_USE_DAMAVAND_INFO=${translations[Instead of DXVK, use WineD3D vulkan (Damavand). Experimental function.]}
PW_USE_SUPPLIED_DXVK_VKD3D_INFO=${translations[Use dxvk and vkd3d which are bundled with wine or proton. (Does not work with PROTON_LG and WINE_LG)]}
# PW_VULKAN_NO_ASYNC_INFO=${translations[Disable asynchronous calls for VULKAN and DXVK modes]}
# PW_OLD_GL_STRING_INFO=${translations[Forced use of older versions of OpenGL]}
...
...
data_from_portwine/scripts/var
View file @
f56bbdb2
...
...
@@ -41,6 +41,7 @@ export STAGING_SHARED_MEMORY="1"
export
PW_USE_GALLIUM_ZINK
=
"0"
export
PW_USE_GALLIUM_NINE
=
"0"
export
PW_USE_DAMAVAND
=
"0"
export
PW_USE_SUPPLIED_DXVK_VKD3D
=
"1"
###DEFAULT_WINE###
export
PW_WINE_USE
=
"PROTON_LG"
export
PW_PLUGINS_VER
=
"_v20"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment