mirror of
https://github.com/dockur/windows.git
synced 2026-09-14 05:43:02 +01:00
Update display.sh
This commit is contained in:
+6
-7
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user