ci: Move zink's validation layer setup to deqp-runner.sh.
authorEmma Anholt <emma@anholt.net>
Wed, 5 Apr 2023 19:31:51 +0000 (12:31 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Apr 2023 19:21:50 +0000 (19:21 +0000)
I want the path to be always set in case someone wants some
ZINK_DEBUG=validation, rather than having to do it per test job.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22459>

.gitlab-ci/deqp-runner.sh
src/gallium/drivers/zink/ci/gitlab-ci.yml

index 29a0b56..dc29a1e 100755 (executable)
@@ -124,6 +124,9 @@ if [ "$PIGLIT_PLATFORM" = "gbm" ]; then
     DEQP_SKIPS="$DEQP_SKIPS $INSTALL/gbm-skips.txt"
 fi
 
+# Set the path to VK validation layer settings (in case it ends up getting loaded)
+export VK_LAYER_SETTINGS_PATH=$INSTALL/$GPU_VERSION-validation-settings.txt
+
 report_load() {
     echo "System load: $(cut -d' ' -f1-3 < /proc/loadavg)"
     echo "# of CPU cores: $(cat /proc/cpuinfo | grep processor | wc -l)"
index 47f1faa..96af17e 100644 (file)
@@ -39,7 +39,6 @@ zink-lvp:
     # Enable validation (except for on piglit, see deqp-zink-lvp.toml), logging
     # to stdout and aborting on unknown failures.
     ZINK_DEBUG: validation
-    VK_LAYER_SETTINGS_PATH: ${CI_PROJECT_DIR}/install/zink-lvp-validation-settings.txt
     XVFB_SCRIPT: "GALLIUM_DRIVER=zink VK_DRIVER=lvp install/deqp-runner.sh"
   script: |
     xvfb-run --server-args='-noreset' bash -c ". $SCRIPTS_DIR/setup-test-env.sh && ${XVFB_SCRIPT}"