[Mesa-dev] [PATCH shader-db 3/4] report.py: Handle TCS and TES shaders.

Kenneth Graunke kenneth at whitecape.org
Tue Jan 5 03:04:44 PST 2016


VS/GS/FS match the regex '.S' but TCS/TES do not.  Just match \S+.
---
 report.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/report.py b/report.py
index 877e4ff..f9b1776 100755
--- a/report.py
+++ b/report.py
@@ -10,7 +10,7 @@ def get_results(filename):
 
     results = {}
 
-    re_match = re.compile(r"(\S+) - (.S \S+) shader: (\S*) inst, (\S*) loops, (\S*) cycles")
+    re_match = re.compile(r"(\S+) - (\S+ \S+) shader: (\S*) inst, (\S*) loops, (\S*) cycles")
     for line in lines:
         match = re.search(re_match, line)
         if match is None:
-- 
2.6.4



More information about the mesa-dev mailing list