glsl: Lazily import built-in function prototypes.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Nov 2010 20:11:27 +0000 (12:11 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Nov 2010 21:48:28 +0000 (13:48 -0800)
commitf5692f452f7ae77d1e710041ffebb468cc5ba87b
tree42cae3cfa1dd713f8eb54593926baaab1d10ef42
parent01a25bb64ecae156729794320f9a39733ff8eeaa
glsl: Lazily import built-in function prototypes.

This makes a very simple 1.30 shader go from 196k of memory to 9k.

NOTE: This -may- be a candidate for the 7.9 branch, as the benefit is
substantial.  However, it's not a simple change, so it may be wiser to
wait for 7.10.
src/glsl/ast_function.cpp
src/glsl/builtin_function.cpp
src/glsl/builtins/tools/generate_builtins.py