summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2022-05-24 15:17:47 -0700
committerKenneth Graunke <kenneth@whitecape.org>2022-05-24 15:18:15 -0700
commita9b6151af8741a82f6e502ae4849d626da96f283 (patch)
tree897abef6132cbdb366fe37da8bd5715145e968e8
parentb6c62e8d9cd0388c87a987c5e313abd269cd82a9 (diff)
report.py: Fix scheduler mode descriptions
This fixes a bug where the scheduler mode for every shader was detected as "scheduled" instead of the actual mode name. Code above this block was detecting "scheduled with mode X" and parsing that as field = word 0 = "scheduled" and val = word 3 = "X". Then this code came along and did the default parsing of "N things" as value = word 0 and field = word 1, and overrode that. We should just put it in the else case so each case happens independently.
-rwxr-xr-xreport.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/report.py b/report.py
index 595ddb2..aa08eb5 100755
--- a/report.py
+++ b/report.py
@@ -68,8 +68,7 @@ def get_results(filename, args):
continue
else:
name = stat_split_spaces[1]
-
- val = stat_split_spaces[0]
+ val = stat_split_spaces[0]
if name == "inst":
name = "instructions"