linker: Link built-in functions instead of including them in every shader
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 20 Jul 2010 18:29:46 +0000 (11:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Jul 2010 22:52:58 +0000 (15:52 -0700)
commitd5be2acae379783c4aa31243e0a88a9e67e6ca7e
tree91ebf30796116f1b4d20b6f2fe420a085a59d59e
parent4ccd3c548b9b9a2fee79342445f68d73525bfcdb
linker: Link built-in functions instead of including them in every shader

This is an invasive set of changes.  Each user shader tracks a set of other
shaders that contain built-in functions.  During compilation, function
prototypes are imported from these shaders.  During linking, the
shaders are linked with these built-in-function shaders just like with
any other shader.
src/glsl/builtin_function.cpp
src/glsl/builtins/110_vs/ftransform
src/glsl/builtins/tools/generate_builtins.pl
src/glsl/glsl_parser_extras.h
src/glsl/ir.h
src/glsl/linker.cpp
src/glsl/main.cpp
src/mesa/main/mtypes.h
src/mesa/shader/ir_to_mesa.cpp