Update display.sh

This commit is contained in:
Kroese
2026-09-02 21:45:05 +02:00
committed by GitHub
parent 690b66a615
commit 17eb55bc0c
+6 -7
View File
@@ -325,11 +325,7 @@ msg="Configuring display drivers..."
enabled "$DEBUG" && echo "$msg" enabled "$DEBUG" && echo "$msg"
if [[ "$ARCH" != "amd64" ]]; then if [[ "$ARCH" != "amd64" ]]; then
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
fi
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform" gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
return 0
fi fi
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
@@ -719,9 +715,12 @@ nvidiaVulkanReady() {
return 1 return 1
fi fi
[[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]] || return 1 if ! [[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]]; then
major="${BASH_REMATCH[1]}" NVIDIA_REASON="the NVIDIA driver version '$NVIDIA_DRIVER_VERSION' could not be parsed"
minor="${BASH_REMATCH[2]}" return 1
fi
major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}"
if (( major < 570 || (major == 570 && minor < 86) )); then if (( major < 570 || (major == 570 && minor < 86) )); then
NVIDIA_REASON="NVIDIA driver $NVIDIA_DRIVER_VERSION is older than the 570.86 minimum required by Venus" NVIDIA_REASON="NVIDIA driver $NVIDIA_DRIVER_VERSION is older than the 570.86 minimum required by Venus"