Mesa (main): ci/piglit: Start vtest server if driver is set to virpipe

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 18 19:13:49 UTC 2022


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

Author: Rohan Garg <rohan.garg at collabora.com>
Date:   Mon Sep 13 22:55:48 2021 +0200

ci/piglit: Start vtest server if driver is set to virpipe

This allows for running of piglit tests with vtest.

Signed-off-by: Rohan Garg <rohan.garg at collabora.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14413>

---

 .gitlab-ci/piglit/piglit-runner.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.gitlab-ci/piglit/piglit-runner.sh b/.gitlab-ci/piglit/piglit-runner.sh
index d228f6cea37..86d83a5747c 100755
--- a/.gitlab-ci/piglit/piglit-runner.sh
+++ b/.gitlab-ci/piglit/piglit-runner.sh
@@ -14,6 +14,22 @@ export LD_LIBRARY_PATH=`pwd`/install/lib/
 export EGL_PLATFORM=surfaceless
 export VK_ICD_FILENAMES=`pwd`/install/share/vulkan/icd.d/"$VK_DRIVER"_icd.${VK_CPU:-`uname -m`}.json
 
+if [ "$GALLIUM_DRIVER" = "virpipe" ]; then
+    # deqp is to use virpipe, and virgl_test_server llvmpipe
+    export GALLIUM_DRIVER="$GALLIUM_DRIVER"
+
+    VTEST_ARGS="--use-egl-surfaceless"
+    if [ "$VIRGL_HOST_API" = "GLES" ]; then
+        VTEST_ARGS="$VTEST_ARGS --use-gles"
+    fi
+
+    GALLIUM_DRIVER=llvmpipe \
+    GALLIVM_PERF="nopt" \
+    virgl_test_server $VTEST_ARGS >$RESULTS/vtest-log.txt 2>&1 &
+
+    sleep 1
+fi
+
 RESULTS=`pwd`/${PIGLIT_RESULTS_DIR:-results}
 mkdir -p $RESULTS
 



More information about the mesa-commit mailing list