Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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
Vladislav
PortWINE-old
Commits
95b56832
Commit
95b56832
authored
Jun 24, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimized code
parent
ba3146aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
functions_helper
data_from_portwine/scripts/functions_helper
+3
-3
start.sh
data_from_portwine/scripts/start.sh
+11
-12
No files found.
data_from_portwine/scripts/functions_helper
View file @
95b56832
...
...
@@ -1756,8 +1756,8 @@ start_portwine () {
export
INTEL_DEBUG
=
"norbc"
fi
if
[[
"
${
PW_GPU_USE
}
"
!=
"disabled"
]]
;
then
PW_vendorID
=
"
$(
"
$PW_VULKANINFO_PORTABLE
"
2>/dev/null
|
grep
-B3
"
${
PW_GPU_USE
}
"
|
grep
vendorID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_deviceID
=
"
$(
"
$PW_VULKANINFO_PORTABLE
"
2>/dev/null
|
grep
-B3
"
${
PW_GPU_USE
}
"
|
grep
deviceID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_vendorID
=
"
$(
echo
"
${
PW_VULKANINFO_PORTABLE
[@]
}
"
|
grep
-B3
"
${
PW_GPU_USE
}
"
|
grep
vendorID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_deviceID
=
"
$(
echo
"
${
PW_VULKANINFO_PORTABLE
[@]
}
"
|
grep
-B3
"
${
PW_GPU_USE
}
"
|
grep
deviceID |
sort
-u
|
awk
-F
'0x'
'{print $2}'
)
"
PW_ID_VIDEO
=
"--prefer-vk-device
${
PW_vendorID
}
:
${
PW_deviceID
}
"
else
unset
PW_ID_VIDEO
...
...
@@ -4246,7 +4246,7 @@ portwine_start_debug () {
echo
"PW_SCREEN_PRIMARY=
$PW_SCREEN_PRIMARY
"
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
echo
"----------------------------------------------"
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
echo
"Vulkan info device name:"
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
"
$PW_VULKANINFO_PORTABLE
"
2>/dev/null
|
grep
-E
'^GPU|deviceName|driverName'
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
echo
"
${
PW_VULKANINFO_PORTABLE
[@]
}
"
|
grep
-E
'^GPU|deviceName|driverName'
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
"
${
PW_PLUGINS_PATH
}
/portable/bin/vkcube"
--c
50
if
[
$?
-eq
0
]
;
then
echo
"Vulkan cube test passed successfully"
>>
"
${
PORT_WINE_PATH
}
/PortProton.log"
...
...
data_from_portwine/scripts/start.sh
View file @
95b56832
...
...
@@ -186,25 +186,23 @@ case "$PW_GUI_START" in
esac
pw_check_and_download_plugins
export
PW_VULKANINFO_PORTABLE
=
"
$PW_PLUGINS_PATH
/portable/bin/x86_64-linux-gnu-vulkaninfo"
# check skip update
if
[[
"
${
SKIP_CHECK_UPDATES
}
"
!=
1
]]
\
&&
[[
!
-f
"/tmp/portproton.lock"
]]
then
pw_port_update
VULKAN_DRIVER_NAME
=
"
$(
"
$PW_VULKANINFO_PORTABLE
"
2>/dev/null |
grep
driverName |
awk
'{print$3}'
|
head
-1
)
"
GET_GPU_NAMES
=
$(
"
$PW_VULKANINFO_PORTABLE
"
2>/dev/null |
awk
-F
'='
'/deviceName/{print $2}'
|
sed
'/llvm/d'
|
sort
-u
|
sed
's/^ //'
|
paste
-sd
'!'
)
PW_VULKANINFO_PORTABLE
=
"
$(
$PW_PLUGINS_PATH
/portable/bin/x86_64-linux-gnu-vulkaninfo 2>/dev/null
)
"
VULKAN_DRIVER_NAME
=
"
$(
echo
"
${
PW_VULKANINFO_PORTABLE
[@]
}
"
|
grep
driverName |
awk
'{print$3}'
|
head
-1
)
"
GET_GPU_NAMES
=
$(
echo
"
${
PW_VULKANINFO_PORTABLE
[@]
}
"
|
awk
-F
'='
'/deviceName/{print $2}'
|
sed
'/llvm/d'
|
sort
-u
|
sed
's/^ //'
|
paste
-sd
'!'
)
LSPCI_VGA
=
"
$(
lspci
-k
2>/dev/null |
grep
-E
'VGA|3D'
|
tr
-d
'\n'
)
"
export
LSPCI_VGA VULKAN_DRIVER_NAME GET_GPU_NAMES
export
PW_VULKANINFO_PORTABLE VULKAN_DRIVER_NAME GET_GPU_NAMES LSPCI_VGA
if
command
-v
xrandr &>/dev/null
;
then
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_screen_configuration"
if
[[
$(
xrandr |
grep
"primary"
|
awk
'{print $1}'
)
]]
;
then
PW_SCREEN_RESOLUTION
=
"
$(
xrandr |
sed
-rn
's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p'
)
"
PW_SCREEN_PRIMARY
=
"
$(
xrandr |
grep
"primary"
|
awk
'{print $1}'
)
"
fi
export
PW_SCREEN_PRIMARY PW_SCREEN_RESOLUTION
PW_XRANDR
=
"
$(
xrandr
)
"
PW_SCREEN_RESOLUTION
=
"
$(
echo
"
${
PW_XRANDR
[@]
}
"
|
sed
-rn
's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p'
)
"
PW_SCREEN_PRIMARY
=
"
$(
echo
"
${
PW_XRANDR
[@]
}
"
|
grep
"primary"
|
awk
'{print $1}'
)
"
export
PW_XRANDR PW_SCREEN_PRIMARY PW_SCREEN_RESOLUTION
echo
""
print_var PW_SCREEN_RESOLUTION PW_SCREEN_PRIMARY
else
...
...
@@ -222,11 +220,12 @@ then
GET_LOCALE_LIST
=
"ru_RU.utf en_US.utf zh_CN.utf ja_JP.utf ko_KR.utf"
unset
LOCALE_LIST
PW_LOCALE_ALL
=
"
$(
locale
-a
)
"
for
LOCALE
in
$GET_LOCALE_LIST
;
do
if
locale
-a
|
grep
-i
"
$LOCALE
"
&>/dev/null
;
then
if
[[
!
-z
"
$LOCALE_LIST
"
]]
then
LOCALE_LIST+
=
"!
$(
locale
-a
|
grep
-i
"
$LOCALE
"
)
"
else
LOCALE_LIST
=
"
$(
locale
-a
|
grep
-i
"
$LOCALE
"
)
"
then
LOCALE_LIST+
=
"!
$(
echo
"
${
PW_LOCALE_ALL
[@]
}
"
|
grep
-i
"
$LOCALE
"
)
"
else
LOCALE_LIST
=
"
$(
echo
"
${
PW_LOCALE_ALL
[@]
}
"
|
grep
-i
"
$LOCALE
"
)
"
fi
fi
done
...
...
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