summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-22 03:14:51 +0100
committerJosé Fonseca <[email protected]>2008-08-22 03:14:51 +0100
commitd32f51d4717686d626b0f7ec9a92c3c9af50009f (patch)
treeb31850b9f536ceb9e9c80e175d0726f294ade675 /src/gallium/state_trackers
parent807a7487ff6f0af60240ce467bd1ac160b0b054e (diff)
python/retrace: Interpret texture/surfaces destructions.
Diffstat (limited to 'src/gallium/state_trackers')
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/interpreter.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py
index a2f924f5280..351a6e739be 100755
--- a/src/gallium/state_trackers/python/retrace/interpreter.py
+++ b/src/gallium/state_trackers/python/retrace/interpreter.py
@@ -254,15 +254,21 @@ class Screen(Object):
tex_usage = template.tex_usage,
)
- def texture_release(self, texture):
+ def texture_destroy(self, texture):
self.interpreter.unregister_object(texture)
+ def texture_release(self, surface):
+ pass
+
def get_tex_surface(self, texture, face, level, zslice, usage):
return texture.get_surface(face, level, zslice, usage)
- def tex_surface_release(self, surface):
+ def tex_surface_destroy(self, surface):
self.interpreter.unregister_object(surface)
+ def tex_surface_release(self, surface):
+ pass
+
def surface_write(self, surface, data, stride, size):
assert surface.nblocksy * stride == size
surface.put_tile_raw(0, 0, surface.width, surface.height, data, stride)