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:
+4
-5
@@ -325,12 +325,8 @@ 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"
|
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
|
||||||
fi
|
fi
|
||||||
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
|
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
|
||||||
vmwareGpuSetup
|
vmwareGpuSetup
|
||||||
@@ -719,7 +715,10 @@ 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
|
||||||
|
NVIDIA_REASON="the NVIDIA driver version '$NVIDIA_DRIVER_VERSION' could not be parsed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
major="${BASH_REMATCH[1]}"
|
major="${BASH_REMATCH[1]}"
|
||||||
minor="${BASH_REMATCH[2]}"
|
minor="${BASH_REMATCH[2]}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user