]> git.cworth.org Git - apitrace/blobdiff - scripts/convert.py
retrace: Implement glxCopySubBufferMESA
[apitrace] / scripts / convert.py
index e98f6d5eb359ebd675c5ed665e2ed96167a1b0b7..3dacd72c8698fdd35d32c9f3e5a8662bc72852ba 100755 (executable)
@@ -60,7 +60,7 @@ def callProcess(cmd):
 
 
 def convertToPix(inTrace, outPixrun):
-    pix = getPixPath()
+    pix = getPixExe()
 
     pixExp = os.path.join(os.path.dirname(__file__), 'apitrace.PIXExp')
 
@@ -90,10 +90,11 @@ def convertFromPix(inPix, outTrace):
     pixExe = getPixExe()
 
     if False:
+        # TODO: Use -exporttocsv option to detect which API to use
         cmd = [
             pixExe,
             inPix,
-            '-exporttocsv', 'c:\test.csv',
+            '-exporttocsv', # XXX: output filename is ignored
         ]
         callProcess(cmd)
 
@@ -127,7 +128,7 @@ def main():
     optparser.add_option(
         '--apitrace', metavar='PROGRAM',
         type='string', dest='apitrace', default='apitrace.exe',
-        help='retrace command [default: %default]')
+        help='path to apitrace command [default: %default]')
     optparser.add_option(
         '-a', '--api', metavar='API',
         type='string', dest='api', default='d3d9',
@@ -135,7 +136,7 @@ def main():
     optparser.add_option(
         '-r', '--retrace', metavar='PROGRAM',
         type='string', dest='retrace', default='d3dretrace.exe',
-        help='retrace command [default: %default]')
+        help='path to retrace command [default: %default]')
     optparser.add_option(
         '-v', '--verbose',
         action='store_true', dest='verbose', default=False,