summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_reader.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-06-29 18:53:38 -0700
committerIan Romanick <[email protected]>2010-07-12 18:51:55 -0700
commit13f782c4ae4e38e64ec4fe87a1c24597a5e894c3 (patch)
tree073251c0f9c563a0f1ea59a6c274d03ac2c4714b /src/glsl/ir_reader.cpp
parente2e5d0def490ed03970efa0a7468fef0623ae617 (diff)
linker: Implement first bits of intrastage linking
This currently involves an ugly hack so that every link doesn't result in all the built-in functions showing up as multiply defined. As soon as the built-in functions are stored in a separate compilation unit, ir_function_signature::is_built_in can be removed.
Diffstat (limited to 'src/glsl/ir_reader.cpp')
-rw-r--r--src/glsl/ir_reader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 03212830cdb..c83f92ef575 100644
--- a/src/glsl/ir_reader.cpp
+++ b/src/glsl/ir_reader.cpp
@@ -291,6 +291,7 @@ read_function_sig(_mesa_glsl_parse_state *st, ir_function *f, s_list *list,
}
} else {
sig = new(ctx) ir_function_signature(return_type);
+ sig->is_built_in = true;
f->add_signature(sig);
}