summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-02 13:04:08 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-02 15:32:09 +0100
commit316b6fa50936470ee4f3c14d982ec216ec352ea1 (patch)
tree3512670831c9e492aedd29963da7c975f1ff4d2a /src/gallium/tests
parentdb1ed3da6caa51bd07887b78bd30453ccf0b2ef5 (diff)
downloadexternal_mesa3d-316b6fa50936470ee4f3c14d982ec216ec352ea1.zip
external_mesa3d-316b6fa50936470ee4f3c14d982ec216ec352ea1.tar.gz
external_mesa3d-316b6fa50936470ee4f3c14d982ec216ec352ea1.tar.bz2
retrace: Add sampler_view_destroy
Diffstat (limited to 'src/gallium/tests')
-rwxr-xr-xsrc/gallium/tests/python/retrace/interpreter.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py
index 7118ff85..e58a693 100755
--- a/src/gallium/tests/python/retrace/interpreter.py
+++ b/src/gallium/tests/python/retrace/interpreter.py
@@ -432,6 +432,9 @@ class Context(Object):
swizzle_b = templ.swizzle_g,
swizzle_a = templ.swizzle_a)
+ def sampler_view_destroy(self, view):
+ pass
+
def set_fragment_sampler_views(self, num, views):
for i in range(num):
self.real.set_fragment_sampler_view(i, views[i])
@@ -456,6 +459,10 @@ class Context(Object):
return elements[0:num_elements]
def bind_vertex_elements_state(self, state):
+ if state is None:
+ self.real.set_vertex_elements(0)
+ return
+
elements = state
num_elements = len(elements)
self.velems = elements