summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-06-15 18:38:37 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-07-30 19:45:34 +0000
commitc2c26c128bac34a704707eb80df4895a29f5d5d0 (patch)
tree30771dc96fd1fd726f775c05aa73cf03af7330b2
parent4cc90a6a7e88208baa1e978592452594b13d1fb5 (diff)
si-report: Fix algorithm for determing difference in shader stats
-rwxr-xr-xsi-report.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/si-report.py b/si-report.py
index fbeed11..ec88112 100755
--- a/si-report.py
+++ b/si-report.py
@@ -145,7 +145,13 @@ class si_stats:
self.__dict__[name] += 1
def is_empty(self):
- return sum(map(lambda x : x[0] if type(x) == tuple else x, self.__dict__.values())) == 0
+ for name in self.__dict__.keys():
+ x = self.__dict__[name]
+ if type(x) == tuple and x[0] is not 0:
+ return False
+ if type(x) != tuple and x is not 0:
+ return False
+ return True
def get_results(filename):
file = open(filename, "r")