Commit ad66916b authored by Marek Olšák's avatar Marek Olšák

si-report.py: don't crash if there are no shaders found

Acked-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
parent ab69586f
...@@ -366,6 +366,9 @@ def compare_results(before_all_results, after_all_results): ...@@ -366,6 +366,9 @@ def compare_results(before_all_results, after_all_results):
errors_names.append(name) errors_names.append(name)
print '{} shaders in {} tests'.format(num_shaders, num_tests) print '{} shaders in {} tests'.format(num_shaders, num_tests)
if num_shaders == 0:
return
print "Totals:" print "Totals:"
print_before_after_stats(total_before, total_after) print_before_after_stats(total_before, total_after)
print "Totals from affected shaders:" print "Totals from affected shaders:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment