summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2021-01-19 13:14:31 -0500
committerMatt Turner <mattst88@gmail.com>2021-01-19 14:40:15 -0500
commitfcee009c51bb7f04beeebc579505a2a34d3ba3fd (patch)
treef49a0037e5c3b95b92f5f2195a212af991365849
parentd8f4c7a4f887d85d9673c932221c0d217f5842ee (diff)
report.py: Don't require spills/fills
Similar to commit d0167a28fadd (report.py: fix crash on get_sched_mode), the report.py script will fail if spills/fills are not available in the shader-db results. freedreno doesn't provide such stats. Reviewed-by: Eric Anholt <eric@anholt.net>
-rwxr-xr-xreport.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/report.py b/report.py
index 81670b7..2d13a30 100755
--- a/report.py
+++ b/report.py
@@ -104,6 +104,9 @@ def get_result_string(p, b, a):
return p + change(b, a)
def get_spill_fill_if_change(m, b, a):
+ if not b.get("spills") or not b.get("fills"):
+ return ''
+
if m in ("spills", "fills"):
return ''