summaryrefslogtreecommitdiff
path: root/src/gallium/tests/python/retrace
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-10-04 17:05:03 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-10-06 11:37:49 +0100
commit5661e51c01cec8d8f4a1400300ced8f8f07eaff3 (patch)
tree78ff5cb59578970c721b6386a353a4ca2179f4ce /src/gallium/tests/python/retrace
parent9528fc2107d4cae39bc932c1943ffc57ebc92499 (diff)
retrace: Handle clear_render_target and clear_depth_stencil.
Diffstat (limited to 'src/gallium/tests/python/retrace')
-rwxr-xr-xsrc/gallium/tests/python/retrace/interpreter.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py
index 16132abb06..954a701a53 100755
--- a/src/gallium/tests/python/retrace/interpreter.py
+++ b/src/gallium/tests/python/retrace/interpreter.py
@@ -610,6 +610,15 @@ class Context(Object):
_rgba[i] = rgba[i]
self.real.clear(buffers, _rgba, depth, stencil)
+ def clear_render_target(self, dst, rgba, dstx, dsty, width, height):
+ _rgba = gallium.FloatArray(4)
+ for i in range(4):
+ _rgba[i] = rgba[i]
+ self.real.clear_render_target(dst, _rgba, dstx, dsty, width, height)
+
+ def clear_depth_stencil(self, dst, clear_flags, depth, stencil, dstx, dsty, width, height):
+ self.real.clear_depth_stencil(dst, clear_flags, depth, stencil, dstx, dsty, width, height)
+
def _present(self):
self.real.flush()