summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-04-13 19:47:16 +0000
committerMatt Turner <mattst88@gmail.com>2015-04-13 14:16:20 -0700
commit23e3086191fb0d2308c6ba60bee1a3fce28c3032 (patch)
tree9e26c420a8adf7f4a8e148be7a39562120ea5495
parentab7d7a02eefbb2603a8fe21255760817a4b736d1 (diff)
README: Add instructions for radeonsi
-rw-r--r--README17
1 files changed, 16 insertions, 1 deletions
diff --git a/README b/README
index 4e09937..e301d0e 100644
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ 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.
-Currently it supports Mesa's i965 driver only.
+Currently it supports Mesa's i965 and radeonsi drivers.
=== Capturing shaders ===
env MESA_GLSL=dump appname |& tee log
@@ -13,6 +13,8 @@ env MESA_GLSL=dump appname |& tee log
# complete.
$EDITOR shaders/appname/*
+=== i965 Usage ===
+
=== Running shaders ===
./run shaders 2> err | tee new-run
@@ -30,6 +32,19 @@ to run.
=== Analysis ===
./report.py old-run new-run
+
+=== radeonsi Usage ===
+
+=== Running shaders ===
+
+ST_DEBUG=precompile R600_DEBUG=ps,vs,gs,precompile ./run shaders -1 2> new-run
+
+-1 option for disabling multi-threading is required to avoid garbled shader dumps.
+
+=== Analysis ===
+./si-report.py old-run new-run
+
+
=== Dependencies ===
run requires some GNU C extensions, render nodes (/dev/dri/renderD128),
libepoxy, OpenMP, and Mesa configured with --with-egl-platforms=x11,drm