glsl: Move link_get_main_function_signature to a common location

Also rename to _mesa_get_main_function_signature.

We will call it near the end of compilation to insert some code into
main for initializing some compute shader global variables.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
Jordan Justen
2015-08-17 12:22:34 -07:00
parent 34e187ec38
commit c4d049f646
5 changed files with 34 additions and 33 deletions

View File

@@ -2529,6 +2529,9 @@ _mesa_glsl_find_builtin_function_by_name(const char *name);
extern gl_shader *
_mesa_glsl_get_builtin_function_shader(void);
extern ir_function_signature *
_mesa_get_main_function_signature(gl_shader *sh);
extern void
_mesa_glsl_release_functions(void);