updated check nvidia for ALT
This commit is contained in:
parent
5746a7f9d0
commit
678b297c2b
@ -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 () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user