summaryrefslogtreecommitdiffstats
path: root/progs/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-15 00:25:43 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-15 00:25:43 +0000
commit21fe86b036451bb8352ed6aa0774d49f45fcd417 (patch)
treeb3ac63f45abc82e5d23d96f48bb0cc55320f0adb /progs/gallium
parente918519fe916da727eb051367f57b26dbd9ec870 (diff)
downloadexternal_mesa3d-21fe86b036451bb8352ed6aa0774d49f45fcd417.zip
external_mesa3d-21fe86b036451bb8352ed6aa0774d49f45fcd417.tar.gz
external_mesa3d-21fe86b036451bb8352ed6aa0774d49f45fcd417.tar.bz2
python/retrace: Reconstruct blend state from binary blobs.
Diffstat (limited to 'progs/gallium')
-rwxr-xr-xprogs/gallium/python/retrace/interpreter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/gallium/python/retrace/interpreter.py b/progs/gallium/python/retrace/interpreter.py
index a34122e..2db71a2 100755
--- a/progs/gallium/python/retrace/interpreter.py
+++ b/progs/gallium/python/retrace/interpreter.py
@@ -376,6 +376,9 @@ class Context(Object):
pass
def create_blend_state(self, state):
+ if isinstance(state, str):
+ state = gallium.Blend(state)
+ sys.stdout.write('\t%s\n' % state)
return state
def bind_blend_state(self, state):