diff options
-rwxr-xr-x | scripts/ci/linux/run-client.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/ci/linux/run-client.sh b/scripts/ci/linux/run-client.sh index 6faf5e7..014c2f6 100755 --- a/scripts/ci/linux/run-client.sh +++ b/scripts/ci/linux/run-client.sh @@ -1,11 +1,14 @@ #!/bin/sh -# Check for Zink support -if MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo | grep -q 'renderer string.*zink'; then - # Set environment variables for Zink - export __GLX_VENDOR_LIBRARY_NAME=mesa - export MESA_LOADER_DRIVER_OVERRIDE=zink - export GALLIUM_DRIVER=zink +# Check for Vulkan support +if command -v vulkaninfo &> /dev/null; then + # Check for Zink support + if MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo | grep -q 'renderer string.*zink'; then + # Set environment variables for Zink + export __GLX_VENDOR_LIBRARY_NAME=mesa + export MESA_LOADER_DRIVER_OVERRIDE=zink + export GALLIUM_DRIVER=zink + fi fi cd "`dirname \"$0\"`" |