diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2020-04-21 15:44:03 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-04-24 05:37:06 +0000 |
commit | 8cba1a13fa6baa6fd55a80b5bd1fce6cbb4b12f8 (patch) | |
tree | ae7b78eb54d7985238bfe27046e655cd46e0a2fe /.gitlab-ci | |
parent | 5a5316ee1bc2cdc8515819d575418cdc70cb58c5 (diff) |
gitlab-ci: Test Virgl with traces
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4659>
Diffstat (limited to '.gitlab-ci')
-rw-r--r-- | .gitlab-ci/traces.yml | 6 | ||||
-rwxr-xr-x | .gitlab-ci/tracie-runner-gl.sh | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci/traces.yml b/.gitlab-ci/traces.yml index 70a7d1a1bb0..0f756899f1a 100644 --- a/.gitlab-ci/traces.yml +++ b/.gitlab-ci/traces.yml @@ -7,14 +7,20 @@ traces: expectations: - device: gl-vmware-llvmpipe checksum: 8867f3a41f180626d0d4b7661ff5c0f4 + - device: gl-virgl + checksum: 8867f3a41f180626d0d4b7661ff5c0f4 - path: glmark2/jellyfish.rdc expectations: - device: gl-vmware-llvmpipe checksum: e0fe979fee129c0ed42a3059d1a4e1c9 + - device: gl-virgl + checksum: e0fe979fee129c0ed42a3059d1a4e1c9 - path: glxgears/glxgears.trace expectations: - device: gl-vmware-llvmpipe checksum: 02aca9b4b4ad6fd60331df6e4f87f2cd + - device: gl-virgl + checksum: 02aca9b4b4ad6fd60331df6e4f87f2cd - path: KhronosGroup-Vulkan-Tools/vkcube.gfxr expectations: - device: vk-amd-polaris10 diff --git a/.gitlab-ci/tracie-runner-gl.sh b/.gitlab-ci/tracie-runner-gl.sh index 1c329c9cbe0..a8dc8206d05 100755 --- a/.gitlab-ci/tracie-runner-gl.sh +++ b/.gitlab-ci/tracie-runner-gl.sh @@ -22,9 +22,25 @@ export EGL_PLATFORM="surfaceless" export DISPLAY= export WAFFLE_PLATFORM="surfaceless_egl" +RESULTS=`pwd`/results +mkdir -p $RESULTS + # Perform a self-test to ensure tracie is working properly. "$INSTALL/tracie/tests/test.sh" +if [ "$GALLIUM_DRIVER" = "virpipe" ]; then + # tracie is to use virpipe, and virgl_test_server llvmpipe + export GALLIUM_DRIVER="$GALLIUM_DRIVER" + + GALLIUM_DRIVER=llvmpipe \ + GALLIVM_PERF="nopt,no_filter_hacks" \ + VTEST_USE_EGL_SURFACELESS=1 \ + VTEST_USE_GLES=1 \ + virgl_test_server >$RESULTS/vtest-log.txt 2>&1 & + + sleep 1 +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. MESA_VERSION=$(cat "$INSTALL/VERSION" | sed 's/\./\\./g') |