tools/trace: Return dummy fence object to silence warnings.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Jul 2013 11:06:37 +0000 (12:06 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Jul 2013 11:06:58 +0000 (12:06 +0100)
src/gallium/tools/trace/dump_state.py

index f7ac76935e5fdc57a3fb7b5ba73729bc65c31b2b..9711a661ac01e8671d86e4d4c695074e1ee5dc03 100755 (executable)
@@ -523,7 +523,8 @@ class Context(Dispatcher):
             resource.data[box.x : box.x + box.width] = data
 
     def flush(self, flags):
-        pass
+        # Return a fake fence
+        return self.interpreter.call_no
 
     def clear(self, buffers, color, depth, stencil):
         pass