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
4e8bbf09
Commit
4e8bbf09
authored
Sep 01, 2025
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Htylol-added_MESA_VK_DEVICE_SELECT' into devel
parents
f7bbc2ca
b2ca9765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
functions_helper
data_from_portwine/scripts/functions_helper
+10
-5
No files found.
data_from_portwine/scripts/functions_helper
View file @
4e8bbf09
...
...
@@ -3798,9 +3798,14 @@ start_portwine () {
[[
"
${
PW_MANGOHUD_USER_CONF
}
"
==
1
]]
&&
unset
MANGOHUD_CONFIG
[[
"
${
PW_VKBASALT_USER_CONF
}
"
==
1
]]
&&
unset
PW_VKBASALT_EFFECTS PW_VKBASALT_FFX_CAS
if
[[
"
${
PW_GPU_USE
}
"
!=
"disabled"
]]
&&
[[
"
${
PW_AMD_VULKAN_USE
}
"
==
"disabled"
]]
;
then
export
DXVK_FILTER_DEVICE_NAME
=
"
${
PW_GPU_USE
}
"
export
VKD3D_FILTER_DEVICE_NAME
=
"
${
PW_GPU_USE
}
"
if
[[
-n
$PW_GPU_USE
&&
$PW_GPU_USE
!=
"disabled"
]]
\
&&
[[
-z
$PW_AMD_VULKAN_USE
||
$PW_AMD_VULKAN_USE
==
"disabled"
]]
;
then
export
DXVK_FILTER_DEVICE_NAME
=
"
$PW_GPU_USE
"
export
VKD3D_FILTER_DEVICE_NAME
=
"
$PW_GPU_USE
"
export
PW_vendorID
=
"
$(
grep
-B3
"
$PW_GPU_USE
"
"
${
PW_TMPFS_PATH
}
/vulkaninfo.tmp"
|
grep
vendorID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
export
PW_deviceID
=
"
$(
grep
-B3
"
$PW_GPU_USE
"
"
${
PW_TMPFS_PATH
}
/vulkaninfo.tmp"
|
grep
deviceID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
export
MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE
=
"1"
export
MESA_VK_DEVICE_SELECT
=
"
$PW_vendorID
:
$PW_deviceID
"
fi
if
[[
-f
"
$PATH_TO_GAME
/dxvk.conf"
]]
;
then
...
...
@@ -3821,9 +3826,11 @@ start_portwine () {
export
WEBKIT_DISABLE_DMABUF_RENDERER
=
"1"
#Для того чтобы OpenGL всегда работал через nvidia (если в PW_GPU_USE выбрана nvidia)
export
__NV_PRIME_RENDER_OFFLOAD
=
"1"
export
__VK_LAYER_NV_optimus
=
"NVIDIA_only"
export
__GLX_VENDOR_LIBRARY_NAME
=
"nvidia"
else
export
__NV_PRIME_RENDER_OFFLOAD
=
"0"
export
__VK_LAYER_NV_optimus
=
"non_NVIDIA_only"
fi
if
check_gamescope_session
;
then
...
...
@@ -4675,8 +4682,6 @@ fi
&&
!
check_gamescope_session
then
if
[[
"
${
PW_GPU_USE
}
"
!=
"disabled"
]]
;
then
PW_vendorID
=
"
$(
grep
-B3
"
${
PW_GPU_USE
}
"
"
${
PW_TMPFS_PATH
}
/vulkaninfo.tmp"
|
grep
vendorID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_deviceID
=
"
$(
grep
-B3
"
${
PW_GPU_USE
}
"
"
${
PW_TMPFS_PATH
}
/vulkaninfo.tmp"
|
grep
deviceID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_ID_VIDEO
=
" --prefer-vk-device
${
PW_vendorID
}
:
${
PW_deviceID
}
"
else
PW_ID_VIDEO
=
""
...
...
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