From bce9cdf968a80b7e53d6a042674b77cd47d96c9a Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Mon, 13 Sep 2021 22:55:48 +0200 Subject: [PATCH] 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 Reviewed-by: Emma Anholt Part-of: --- .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