python/retrace: Ignore irrelevant calls.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 19 Nov 2008 11:06:04 +0000 (20:06 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 19 Nov 2008 11:06:04 +0000 (20:06 +0900)
src/gallium/state_trackers/python/retrace/interpreter.py

index 61b3ef2abc2666592d58d79bc6df6efb2246abde..1918fc9bdae69af6ba1f9adf361f39c08d80623f 100755 (executable)
@@ -442,6 +442,12 @@ class Context(Object):
 
 class Interpreter(parser.TraceDumper):
     
+    ignore_calls = set((
+            ('pipe_screen', 'is_format_supported'),
+            ('pipe_screen', 'get_param'),
+            ('pipe_screen', 'get_paramf'),
+    ))
+
     def __init__(self, stream):
         parser.TraceDumper.__init__(self, stream)
         self.objects = {}
@@ -463,6 +469,10 @@ class Interpreter(parser.TraceDumper):
             self.interpret_call(call)
 
     def handle_call(self, call):
+
+        if (call.klass, call.method) in self.ignore_calls:
+            return
+
         parser.TraceDumper.handle_call(self, call)
         
         args = [self.interpret_arg(arg) for name, arg in call.args]