2022-05-03 02:54:08 +08:00
|
|
|
#!/usr/bin/env bash
|
2024-09-11 01:49:51 +08:00
|
|
|
# shellcheck disable=SC1091 # paths only become valid at runtime
|
|
|
|
|
2019-04-11 06:59:12 +08:00
|
|
|
set -e
|
|
|
|
|
2024-09-11 01:49:51 +08:00
|
|
|
. "${SCRIPTS_DIR}/setup-test-env.sh"
|
|
|
|
|
2022-05-03 02:54:08 +08:00
|
|
|
ARTIFACTSDIR=$(pwd)/shader-db
|
|
|
|
mkdir -p "$ARTIFACTSDIR"
|
2019-04-11 06:59:12 +08:00
|
|
|
export DRM_SHIM_DEBUG=true
|
|
|
|
|
2022-05-03 02:54:08 +08:00
|
|
|
LIBDIR=$(pwd)/install/lib
|
2024-07-24 22:24:20 +08:00
|
|
|
export LD_LIBRARY_PATH=$LIBDIR
|
2019-04-11 06:59:12 +08:00
|
|
|
|
|
|
|
cd /usr/local/shader-db
|
|
|
|
|
2023-07-27 22:46:58 +08:00
|
|
|
for driver in freedreno intel lima v3d vc4; do
|
2022-12-12 00:46:41 +08:00
|
|
|
section_start shader-db-${driver} "Running shader-db for $driver"
|
2022-05-03 02:54:08 +08:00
|
|
|
env LD_PRELOAD="$LIBDIR/lib${driver}_noop_drm_shim.so" \
|
|
|
|
./run -j"${FDO_CI_CONCURRENT:-4}" ./shaders \
|
|
|
|
> "$ARTIFACTSDIR/${driver}-shader-db.txt"
|
2022-12-12 00:46:41 +08:00
|
|
|
section_end shader-db-${driver}
|
2019-07-26 06:46:51 +08:00
|
|
|
done
|
2022-04-26 12:11:38 +08:00
|
|
|
|
|
|
|
# Run shader-db over a number of supported chipsets for nouveau
|
2024-04-09 16:50:48 +08:00
|
|
|
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
|
2022-05-03 02:54:08 +08:00
|
|
|
|
|
|
|
# Run shader-db for r300 (RV370 and RV515)
|
|
|
|
for chipset in 0x5460 0x7140; do
|
2022-12-12 00:46:41 +08:00
|
|
|
section_start shader-db-r300-${chipset} "Running shader-db for r300 - ${chipset}"
|
2022-05-03 02:54:08 +08:00
|
|
|
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"
|
2022-12-12 00:46:41 +08:00
|
|
|
section_end shader-db-r300-${chipset}
|
2022-04-26 12:11:38 +08:00
|
|
|
done
|