summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-07-16 19:32:40 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-07-16 19:32:40 +0100
commitcf7e8fbc2ea2739f1955d83751b631c5444a3c91 (patch)
tree19bf69b494454a79f84b08047517cf95cf929c9b /src/gallium
parent5807ccb41b14890a1cdab4cc06806a9cf6c11ecc (diff)
python/retrace: Dump the surface copy contents.
Diffstat (limited to 'src/gallium')
-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 69515da218..bc06429b77 100755
--- a/src/gallium/state_trackers/python/retrace/interpreter.py
+++ b/src/gallium/state_trackers/python/retrace/interpreter.py
@@ -596,7 +596,17 @@ class Context(Object):
def surface_copy(self, dest, destx, desty, src, srcx, srcy, width, height):
if dest is not None and src is not None:
+ if self.interpreter.options.all:
+ self.interpreter.present(src, 'surface_copy_src', srcx, srcy, width, height)
self.real.surface_copy(dest, destx, desty, src, srcx, srcy, width, height)
+ if dest in self.cbufs:
+ self._set_dirty()
+ flags = gallium.PIPE_FLUSH_FRAME
+ else:
+ flags = 0
+ self.flush(flags)
+ if self.interpreter.options.all:
+ self.interpreter.present(dest, 'surface_copy_dest', destx, desty, width, height)
def is_texture_referenced(self, texture, face, level):
#return self.real.is_texture_referenced(format, texture, face, level)