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
9929d950
Commit
9929d950
authored
Aug 30, 2025
by
Htylol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated: fix for pw_check_dxvk
parent
c193e64f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
functions_helper
data_from_portwine/scripts/functions_helper
+27
-8
No files found.
data_from_portwine/scripts/functions_helper
View file @
9929d950
...
...
@@ -2870,8 +2870,7 @@ pw_check_dxvk () {
*
)
other_group+
=(
"
$elem
"
)
;;
esac
done
unset
SELECTED_VULKAN_GPU
SELECTED_VULKAN_GPU_NEW
=(
SELECTED_VULKAN_GPU
=(
"
${
nvidia_group
[@]
}
"
"
${
amd_group
[@]
}
"
"
${
intel_group
[@]
}
"
...
...
@@ -2880,14 +2879,34 @@ pw_check_dxvk () {
fi
# получаем информацию о конкретном драйвере который выбран в PW_GPU_USE,
# либо ищем наилучший драйвер с учётом приоритета видеокарт + информация
mapfile
-t
PW_VULKAN_DRIVER_ARRAY < <
(
awk
'
/apiVersion|driverVersion/ { print $3 }
/deviceName|driverName|driverInfo/ {
split($0, parts, "= ")
print parts[2]
mapfile
-t
PW_VULKAN_DRIVER_ARRAY < <
(
awk
'/^GPU[0-9]+/ {
if (count == 5) {
# Выводим собранные значения перед переходом к следующему GPU
for (i = 1; i <= 5; i++) print values[i]
}
# Сбрасываем счетчик и массив значений для нового GPU
count = 0
delete values
next
}
count < 5 {
if (/apiVersion|driverVersion/) {
values[++count] = $3
} else if (/deviceName|driverName|driverInfo/) {
split($0, parts, "= ")
values[++count] = parts[2]
}
}
END {
# Выводим значения для последнего GPU, если набралось 5
if (count == 5) {
for (i = 1; i <= 5; i++) print values[i]
}
}'
"
${
PW_TMPFS_PATH
}
/vulkaninfo.tmp"
)
for
i
in
"
${
SELECTED_VULKAN_GPU
_NEW
[@]
}
"
"
${
SELECTED_VULKAN_GPU
[@]
}
"
;
do
for
i
in
"
${
SELECTED_VULKAN_GPU
[@]
}
"
;
do
x
=
"0"
&&
y
=
"5"
while
true
;
do
PW_VULKAN_DRIVER_ARRAY_CHECK
=(
"
${
PW_VULKAN_DRIVER_ARRAY
[@]
:x:y
}
"
)
...
...
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