mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
ef175ea594
If you're emitting a section header under set -x, you will see: + section_start foo "foo" + x_off [the section header] This is kind of annoying. Instead of trying to squash it everywhere by dancing around local set +x management, play some extremely stupid tricks with shells to make sure we never emit it. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31602>
44 lines
1.5 KiB
Bash
Executable File
44 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# shellcheck disable=SC1091 # paths only become valid at runtime
|
|
|
|
set -e
|
|
|
|
. "${SCRIPTS_DIR}/setup-test-env.sh"
|
|
|
|
ARTIFACTSDIR=$(pwd)/shader-db
|
|
mkdir -p "$ARTIFACTSDIR"
|
|
export DRM_SHIM_DEBUG=true
|
|
|
|
LIBDIR=$(pwd)/install/lib
|
|
export LD_LIBRARY_PATH=$LIBDIR
|
|
|
|
cd /usr/local/shader-db
|
|
|
|
for driver in freedreno intel lima v3d vc4; do
|
|
section_start shader-db-${driver} "Running shader-db for $driver"
|
|
env LD_PRELOAD="$LIBDIR/lib${driver}_noop_drm_shim.so" \
|
|
./run -j"${FDO_CI_CONCURRENT:-4}" ./shaders \
|
|
> "$ARTIFACTSDIR/${driver}-shader-db.txt"
|
|
section_end shader-db-${driver}
|
|
done
|
|
|
|
# Run shader-db over a number of supported chipsets for nouveau
|
|
for chipset in 40 a3 c0 e4 f0 134 162; do
|
|
section_start shader-db-nouveau-${chipset} "Running shader-db for nouveau - ${chipset}"
|
|
env LD_PRELOAD="$LIBDIR/libnouveau_noop_drm_shim.so" \
|
|
NOUVEAU_CHIPSET=${chipset} \
|
|
./run -j"${FDO_CI_CONCURRENT:-4}" ./shaders \
|
|
> "$ARTIFACTSDIR/nouveau-${chipset}-shader-db.txt"
|
|
section_end shader-db-nouveau-${chipset}
|
|
done
|
|
|
|
# Run shader-db for r300 (RV370 and RV515)
|
|
for chipset in 0x5460 0x7140; do
|
|
section_start shader-db-r300-${chipset} "Running shader-db for r300 - ${chipset}"
|
|
env LD_PRELOAD="$LIBDIR/libradeon_noop_drm_shim.so" \
|
|
RADEON_GPU_ID=${chipset} \
|
|
./run -j"${FDO_CI_CONCURRENT:-4}" -o r300 ./shaders \
|
|
> "$ARTIFACTSDIR/r300-${chipset}-shader-db.txt"
|
|
section_end shader-db-r300-${chipset}
|
|
done
|