summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-30 11:24:23 -0700
committerEric Anholt <[email protected]>2010-07-30 14:57:22 -0700
commit5e5583ee06cff53db48151c13b21916a166ea2ed (patch)
treee50b008ca33e77af89130ed67d3b9fdee15ada01
parent939a1807fe5a70db25725335ba0acccce8b01db3 (diff)
glsl2: Update the callee pointer of calls to newly-linked-in functions.
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.
-rw-r--r--src/glsl/link_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/link_functions.cpp b/src/glsl/link_functions.cpp
index a9ed49a3492..327be73afe6 100644
--- 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;
}