Mesa (glsl2): glsl2: Update the callee pointer of calls to newly-linked-in functions.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Jul 30 21:58:10 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 5e5583ee06cff53db48151c13b21916a166ea2ed
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e5583ee06cff53db48151c13b21916a166ea2ed
Author: Eric Anholt <eric at anholt.net>
Date: Fri Jul 30 11:24:23 2010 -0700
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.
---
src/glsl/link_functions.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/glsl/link_functions.cpp b/src/glsl/link_functions.cpp
index a9ed49a..327be73 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;
}
More information about the mesa-commit
mailing list