Commit 678b297c authored by Mikhail Tergoev's avatar Mikhail Tergoev

updated check nvidia for ALT

parent 5746a7f9
...@@ -1601,7 +1601,9 @@ pw_init_runtime () { ...@@ -1601,7 +1601,9 @@ pw_init_runtime () {
if grep -i "altlinux" "/etc/os-release" &>/dev/null ; then if grep -i "altlinux" "/etc/os-release" &>/dev/null ; then
export LIBGL_DRIVERS_PATH="/usr/lib/X11/modules/dri:/usr/lib64/X11/modules/dri" export LIBGL_DRIVERS_PATH="/usr/lib/X11/modules/dri:/usr/lib64/X11/modules/dri"
if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] ; then if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] \
&& [[ "$LSPCI_VGA" == *nvidia* ]]
then
VK_ADD_DRIVER_FILES="$(realpath /usr/share/vulkan/icd.d/nvidia_icd.json)" VK_ADD_DRIVER_FILES="$(realpath /usr/share/vulkan/icd.d/nvidia_icd.json)"
export VK_ADD_DRIVER_FILES export VK_ADD_DRIVER_FILES
fi fi
...@@ -2191,7 +2193,7 @@ check_dirs_and_files_in_pfx () { ...@@ -2191,7 +2193,7 @@ check_dirs_and_files_in_pfx () {
} }
check_nvidia_rtx () { check_nvidia_rtx () {
if [[ -n $(echo "$LSPCI_VGA" | grep -i "nvidia") ]] ; then if [[ "$LSPCI_VGA" == *nvidia* ]] ; then
# Turing (without nvidia 16XX) # Turing (without nvidia 16XX)
[[ "$LSPCI_VGA" == *TU[0-9]* ]] && [[ "$LSPCI_VGA" != *TU11[6-7]* ]] && return 0 [[ "$LSPCI_VGA" == *TU[0-9]* ]] && [[ "$LSPCI_VGA" != *TU11[6-7]* ]] && return 0
# Ampere # Ampere
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment