summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma Anholt <emma@anholt.net>2021-12-02 09:47:37 -0800
committerEmma Anholt <emma@anholt.net>2022-03-07 15:29:58 +0000
commit21f9732b3571e436dc455c9867c0208ebf85a9bd (patch)
tree46dea5ef1ea0bb3b6a55c0a09f2c39820913e54d
parenta458a22fae276de242f25b6f34c761be64eab88c (diff)
report.py: Add support for shader-db without a loops count.
i915 doesn't have loops at all, so just skip the check.
-rwxr-xr-xreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/report.py b/report.py
index 5620854..a48c60a 100755
--- a/report.py
+++ b/report.py
@@ -221,7 +221,7 @@ def main():
# If the number of loops changed, then we may have unrolled some
# loops, in which case other measurements will be misleading.
- if m != "loops" and before[p]["loops"] != after[p]["loops"] and not args.ignore_loops:
+ if m != "loops" and "loops" in before[p] and before[p]["loops"] != after[p]["loops"] and not args.ignore_loops:
continue
after_count = after[p][m]