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.
This commit is contained in:
Ian Romanick
2010-06-29 18:53:38 -07:00
parent e2e5d0def4
commit 13f782c4ae
4 changed files with 63 additions and 2 deletions
+1
View File
@@ -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);
}