summaryrefslogtreecommitdiff
path: root/README
blob: 6958d837b19b9f8667b017b32cc32f739058aaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
=== What ===

A giant pile of shaders from various apps, for whatever purpose.  In
particular, we use it to capture assembly output of the shader
compiler for analysis of regressions in compiler behavior.

=== Capturing shaders ===
env MESA_GLSL=dump appname |& tee log
./split-to-files.py appname log
# clean up resulting files, as the parsing is just an assist, not actually
# complete.
$EDITOR shaders/appname/*

=== Running shaders ===
# We rely on piglit binaries to actually execute the shader code.
# Replace this path with wherever you actually built piglit.
ln -s $HOME/src/piglit/bin ./

# this relies on i965 driver debug output, hack it up for anything else.
./run.py |& tee new-run

# To run just a subset:
./run.py shaders/supertuxkart |& tee new-run

=== Analysis ===
./result.py old-run new-run