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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user