From: José Fonseca Date: Mon, 4 Oct 2010 16:05:03 +0000 (+0100) Subject: retrace: Handle clear_render_target and clear_depth_stencil. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5661e51c01cec8d8f4a1400300ced8f8f07eaff3;p=mesa.git retrace: Handle clear_render_target and clear_depth_stencil. --- diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py index 16132abb06d..954a701a53f 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()