diff options
author | Matt Turner <mattst88@gmail.com> | 2021-01-19 13:14:31 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2021-01-19 14:40:15 -0500 |
commit | fcee009c51bb7f04beeebc579505a2a34d3ba3fd (patch) | |
tree | f49a0037e5c3b95b92f5f2195a212af991365849 | |
parent | d8f4c7a4f887d85d9673c932221c0d217f5842ee (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-x | report.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 '' |