diff options
author | Kenneth Graunke <[email protected]> | 2010-11-11 12:11:27 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-11-30 13:48:28 -0800 |
commit | f5692f452f7ae77d1e710041ffebb468cc5ba87b (patch) | |
tree | 42cae3cfa1dd713f8eb54593926baaab1d10ef42 /src/glsl/builtin_function.cpp | |
parent | 01a25bb64ecae156729794320f9a39733ff8eeaa (diff) |
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.
Diffstat (limited to 'src/glsl/builtin_function.cpp')
-rw-r--r-- | src/glsl/builtin_function.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glsl/builtin_function.cpp b/src/glsl/builtin_function.cpp index bc368141053..631aeac12ce 100644 --- a/src/glsl/builtin_function.cpp +++ b/src/glsl/builtin_function.cpp @@ -13590,7 +13590,6 @@ _mesa_read_profile(struct _mesa_glsl_parse_state *state, builtin_profiles[profile_index] = sh; } - import_prototypes(sh->ir, instructions, state->symbols, state); state->builtins_to_link[state->num_builtins_to_link] = sh; state->num_builtins_to_link++; } |