
In preparation for using apitrace to replay traces in LAVA jobs, build a newer waffle so apitrace can use the surfaceless EGL platform. As things were before this commit, Xvfb would have been needed in the LAVA images. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4000>
35 lines
853 B
Bash
Executable File
35 lines
853 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
ARTIFACTS="$(pwd)/artifacts"
|
|
|
|
# Set up the driver environment.
|
|
export LD_LIBRARY_PATH="$(pwd)/install/lib/"
|
|
|
|
# Set environment for renderdoc libraries.
|
|
export PYTHONPATH="$PYTHONPATH:/renderdoc/build/lib"
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/renderdoc/build/lib"
|
|
|
|
# Set environment for the waffle library.
|
|
export LD_LIBRARY_PATH="/waffle/build/lib:$LD_LIBRARY_PATH"
|
|
|
|
# Set environment for apitrace executable.
|
|
export PATH=/apitrace/build:$PATH
|
|
|
|
# Use the surfaceless EGL platform.
|
|
export EGL_PLATFORM=surfaceless
|
|
export DISPLAY=
|
|
export WAFFLE_PLATFORM=surfaceless_egl
|
|
|
|
# Perform a self-test to ensure tracie is working properly.
|
|
"$ARTIFACTS/tracie/tests/test.sh"
|
|
|
|
ret=0
|
|
|
|
"$ARTIFACTS/tracie/tracie.sh" "$ARTIFACTS/traces.yml" renderdoc || ret=1
|
|
|
|
"$ARTIFACTS/tracie/tracie.sh" "$ARTIFACTS/traces.yml" apitrace || ret=1
|
|
|
|
exit $ret
|