From: Eric Anholt Date: Fri, 30 Jul 2010 18:24:23 +0000 (-0700) Subject: glsl2: Update the callee pointer of calls to newly-linked-in functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e5583ee06cff53db48151c13b21916a166ea2ed;p=mesa.git 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. --- 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; }