summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_screen.c
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-08-03 10:56:12 +0200
committerErico Nunes <[email protected]>2019-08-06 15:43:31 +0200
commite0aeee946004685527dfa0a4f5f141b85ae076dd (patch)
tree84377b66fb5c5f8b9e237b6aae65ae7038c886c4 /src/gallium/drivers/lima/lima_screen.c
parent9e41a514a8aabe209e7cc999a609c9a0a252b3d7 (diff)
lima: add summary report for shader-db
Very basic summary, loops and gpir spills:fills are not updated yet and are only there to comply with the strings to shader-db report.py regex. For now it can be used to analyze the impact of changes in instruction count in both gpir and ppir. The LIMA_DEBUG=shaderdb setting can be useful to output stats on applications other than shader-db. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_screen.c')
-rw-r--r--src/gallium/drivers/lima/lima_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c
index 26a7051e67e..8e337425f7a 100644
--- a/src/gallium/drivers/lima/lima_screen.c
+++ b/src/gallium/drivers/lima/lima_screen.c
@@ -440,6 +440,8 @@ static const struct debug_named_value debug_options[] = {
"print PP shader compiler result of each stage" },
{ "dump", LIMA_DEBUG_DUMP,
"dump GPU command stream to $PWD/lima.dump" },
+ { "shaderdb", LIMA_DEBUG_SHADERDB,
+ "print shader information for shaderdb" },
{ NULL }
};