From 3fc211bcb8dcddd90d50b081553750573bddea7d Mon Sep 17 00:00:00 2001 From: grbr404 <166065505+grbr404@users.noreply.github.com> Date: Sat, 3 May 2025 19:23:13 +0200 Subject: Update run-client.sh Added Vulkan support check befor looking for Zink support --- scripts/ci/linux/run-client.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'scripts/ci') 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\"`" -- cgit v1.2.3