Module: Mesa
Branch: main
Commit: 40c7262c40747112865cda7146297ab76cd38ff2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=40c7262c40747112865cda7146297ab76cd38ff2

Author: David Heidelberg <[email protected]>
Date:   Tue Jun  6 01:44:21 2023 +0200

ci/traces: guard DXVK and VK behind VK_DRIVER

Reviewed-by: Guilherme Gallo <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23268>

---

 .gitlab-ci/piglit/piglit-traces.sh | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci/piglit/piglit-traces.sh 
b/.gitlab-ci/piglit/piglit-traces.sh
index fc59667d453..c64e84e1635 100755
--- a/.gitlab-ci/piglit/piglit-traces.sh
+++ b/.gitlab-ci/piglit/piglit-traces.sh
@@ -30,19 +30,20 @@ esac
 # Avoid asking about Gecko or Mono instalation
 export WINEDLLOVERRIDES="mscoree=d;mshtml=d"  # FIXME: drop, not needed 
anymore? (wine dir is already created)
 
-# Set environment for DXVK.
-export DXVK_LOG_LEVEL="info"
-export DXVK_LOG="$RESULTS/dxvk"
-[ -d "$DXVK_LOG" ] || mkdir -pv "$DXVK_LOG"
-export DXVK_STATE_CACHE=0
 
-
-# Set up the driver environment.
+# Set up the environment.
 # Modifiying here directly LD_LIBRARY_PATH may cause problems when
 # using a command wrapper. Hence, we will just set it when running the
 # command.
 export __LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INSTALL/lib/"
-export 
VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.${VK_CPU:-$(uname
 -m)}.json"
+if [ -n "${VK_DRIVER}" ]; then
+  # Set environment for DXVK.
+  export DXVK_LOG_LEVEL="info"
+  export DXVK_LOG="$RESULTS/dxvk"
+  [ -d "$DXVK_LOG" ] || mkdir -pv "$DXVK_LOG"
+  export DXVK_STATE_CACHE=0
+  export 
VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.${VK_CPU:-$(uname
 -m)}.json"
+fi
 
 # Sanity check to ensure that our environment is sufficient to make our tests
 # run against the Mesa built by CI, rather than any installed distro version.

Reply via email to