summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-11-19 20:06:04 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-11-19 20:06:04 +0900
commit03f19bc33d0c2e94bf0ad4ec6e42b708be0c0967 (patch)
treeaefc0b8c44d8f8fdef9cad522afd9946fd139228 /src
parent56ce90c8bee057cf69ba653adf57aa401d51c240 (diff)
python/retrace: Ignore irrelevant calls.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/interpreter.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py
index 61b3ef2abc..1918fc9bda 100755
--- a/src/gallium/state_trackers/python/retrace/interpreter.py
+++ b/src/gallium/state_trackers/python/retrace/interpreter.py
@@ -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]