projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
939a180
)
glsl2: Update the callee pointer of calls to newly-linked-in functions.
author
Eric Anholt
<eric@anholt.net>
Fri, 30 Jul 2010 18:24:23 +0000
(11:24 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 30 Jul 2010 21:57:22 +0000
(14:57 -0700)
Otherwise, ir_function_inlining will see the body of the function from
the unlinked version of the shader, which won't have had the lowering
passes done on it or linking's variable remapping.
src/glsl/link_functions.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_functions.cpp
b/src/glsl/link_functions.cpp
index a9ed49a3492cd098ccc95b63091856a30dbd6c72..327be73afe6681ef09516e369bd178f2d022c541 100644
(file)
--- a/
src/glsl/link_functions.cpp
+++ b/
src/glsl/link_functions.cpp
@@
-164,6
+164,8
@@
public:
*/
linked_sig->accept(this);
+ ir->set_callee(linked_sig);
+
return visit_continue;
}