mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
c02b682204
Suggested-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8585>
28 lines
793 B
Bash
Executable File
28 lines
793 B
Bash
Executable File
set -e
|
|
set -v
|
|
|
|
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 v3d; do
|
|
echo "Running drm-shim for $driver"
|
|
env LD_PRELOAD=$LIBDIR/lib${driver}_noop_drm_shim.so \
|
|
./run -j${FDO_CI_CONCURRENT:-4} ./shaders \
|
|
> $ARTIFACTSDIR/${driver}-shader-db.txt
|
|
done
|
|
|
|
# Run shader-db over a number of supported chipsets for nouveau
|
|
for chipset in 40 a3 c0 e4 f0 134 162; do
|
|
echo "Running drm-shim 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
|
|
done
|