projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python/retrace: Reconstruct blend state from binary blobs.
[mesa.git]
/
progs
/
gallium
/
python
/
retrace
/
interpreter.py
diff --git
a/progs/gallium/python/retrace/interpreter.py
b/progs/gallium/python/retrace/interpreter.py
index a34122e0e0f1074d3b1319d00a4122360f43e8d0..2db71a212f623e905eab9ae3b22b8c938b0e298b 100755
(executable)
--- 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):