projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b96b47
)
glsl2: Use a better talloc context for ir_expression_flattening.
author
Eric Anholt
<eric@anholt.net>
Mon, 12 Jul 2010 22:41:31 +0000
(15:41 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 12 Jul 2010 23:07:02 +0000
(16:07 -0700)
The instruction can be hung off of any other in the tree, even if the
other one will be deleted, since it'll get stolen to the shader's
context later if it's still live.
src/glsl/ir_expression_flattening.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_expression_flattening.cpp
b/src/glsl/ir_expression_flattening.cpp
index 0f10b671936312970f83b70df2912e8c522bf809..629194c1a041beebffb9466875170c3b5bc9406e 100644
(file)
--- a/
src/glsl/ir_expression_flattening.cpp
+++ b/
src/glsl/ir_expression_flattening.cpp
@@
-82,7
+82,7
@@
do_expression_flattening(exec_list *instructions,
ir_rvalue *
ir_expression_flattening_visitor::operand_to_temp(ir_rvalue *ir)
{
- void *ctx =
talloc_parent(base_ir)
;
+ void *ctx =
base_ir
;
ir_variable *var;
ir_assignment *assign;