mirror of
https://github.com/dockur/windows.git
synced 2026-09-13 21:38:22 +01:00
Update display.sh
This commit is contained in:
+4
-5
@@ -325,12 +325,8 @@ msg="Configuring display drivers..."
|
||||
enabled "$DEBUG" && echo "$msg"
|
||||
|
||||
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"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
|
||||
vmwareGpuSetup
|
||||
@@ -719,7 +715,10 @@ nvidiaVulkanReady() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
[[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]] || return 1
|
||||
if ! [[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]]; then
|
||||
NVIDIA_REASON="the NVIDIA driver version '$NVIDIA_DRIVER_VERSION' could not be parsed"
|
||||
return 1
|
||||
fi
|
||||
major="${BASH_REMATCH[1]}"
|
||||
minor="${BASH_REMATCH[2]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user