projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a9786
)
glsl2: Flatten expressions that appear as the children of ir_return as well.
author
Eric Anholt
<eric@anholt.net>
Tue, 13 Jul 2010 02:31:54 +0000
(19:31 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 13 Jul 2010 02:50:49 +0000
(19:50 -0700)
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 629194c1a041beebffb9466875170c3b5bc9406e..66268a679d9ff222f5cac9e8e7257ac0c8f52747 100644
(file)
--- a/
src/glsl/ir_expression_flattening.cpp
+++ b/
src/glsl/ir_expression_flattening.cpp
@@
-176,9
+176,7
@@
ir_expression_flattening_visitor::visit_enter(ir_call *ir)
ir_visitor_status
ir_expression_flattening_visitor::visit_enter(ir_return *ir)
{
- /* FINISHME: Why not process the return value? (Same behavior as original
- * FINISHME: code.)
- */
- (void) ir;
- return visit_continue_with_parent;
+ if (ir->value)
+ ir->value = operand_to_temp(ir->value);
+ return visit_continue;
}