[Piglit] [PATCH] apitrace: update for new dump-images filenames

Rob Clark robdclark at gmail.com
Mon Jan 23 17:45:40 UTC 2017


The 'retrace: support for dumping multiple snapshots' patch changes the
output filenames for dumped images to have -mrtN/-z/-s suffixes.  MRT #0
is equivalent to the old behavior.
---
 tests/apitrace/test-trace.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/apitrace/test-trace.py b/tests/apitrace/test-trace.py
index 1230243..b1551be 100755
--- a/tests/apitrace/test-trace.py
+++ b/tests/apitrace/test-trace.py
@@ -115,7 +115,11 @@ def run_trace(filename, driver_categories):
 
         prefix = m.group(1)
         drawcall = m.group(2)
-        out_file = '{}.out.{}.png'.format(prefix, drawcall)
+
+        # Look for new filename first:
+        out_file = '{}.out.{}-mrt0.png'.format(prefix, drawcall)
+        if not os.path.isfile(out_file):
+            out_file = '{}.out.{}.png'.format(prefix, drawcall)
 
         # Go through the list of categories our driver
         for category in driver_categories:
-- 
2.9.3



More information about the Piglit mailing list