summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-shader-db.sh
blob: 7580457d850fccdb62701ffe6d0b3c4ec57cb245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 v3d; do
    env LD_PRELOAD=$LIBDIR/lib${driver}_noop_drm_shim.so \
        ./run -j 4 ./shaders \
            > $ARTIFACTSDIR/${driver}-shader-db.txt
done