glsl: Move link_get_main_function_signature to a common location
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 17 Aug 2015 19:22:34 +0000 (12:22 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 13 Sep 2015 16:53:16 +0000 (09:53 -0700)
commitc4d049f64603d934aed2a75cac86d4a3d4adadb7
treefa7683c911213688dee17a9ec8fc3badc561bb95
parent34e187ec38cee78fbc0e1d1a09a99160fbdf7a9f
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>
src/glsl/builtin_functions.cpp
src/glsl/ir.h
src/glsl/linker.cpp
src/glsl/linker.h
src/glsl/lower_vertex_id.cpp