diff options
author | Olivier Galibert <galibert@pobox.com> | 2012-05-02 23:11:41 +0200 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2012-05-08 12:55:52 -0700 |
commit | 2ff7b121cad2892698ff1aa7690dd361ea2739a7 (patch) | |
tree | 36f37ef92994c7cd82b50fe7e35fb466fbb654f3 /src/glsl/ir.cpp | |
parent | 8ec01ba2ff95449674c779c05afcd32bbf7dbdc8 (diff) |
glsl: Add an origin pointer in the function signature object.
This points to the object with the function body, allowing us to map
from a built-in prototype to the actual body with IR code to execute.
Signed-off-by: Olivier Galibert <galibert@pobox.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 839d5b3fdb4..970d8f3bac0 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1481,6 +1481,7 @@ ir_function_signature::ir_function_signature(const glsl_type *return_type) { this->ir_type = ir_type_function_signature; this->is_builtin = false; + this->origin = NULL; } |