diff options
author | Brian <brian@yutani.localnet.net> | 2007-03-14 10:49:35 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-14 10:49:35 -0600 |
commit | 2dc3e944704dd90eb4324babac070b7e2fff70fc (patch) | |
tree | a388bf7bc431945a97482c97589b512402285272 /src/mesa/shader/slang/slang_typeinfo.h | |
parent | b1a955b5186d9d455416534bcdc170373c7393d9 (diff) |
After we've found the slang_function ptr for a SLANG_OPER_CALL node, save the ptr in the node for reuse.
This can save a tremendous amount of time when resolving types in complex
expressions. One particular shader was taking several minutes to compile
but now compiles almost instantaneoulsy.
Diffstat (limited to 'src/mesa/shader/slang/slang_typeinfo.h')
-rw-r--r-- | src/mesa/shader/slang/slang_typeinfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_typeinfo.h b/src/mesa/shader/slang/slang_typeinfo.h index 12a773dee9..be2e229b76 100644 --- a/src/mesa/shader/slang/slang_typeinfo.h +++ b/src/mesa/shader/slang/slang_typeinfo.h @@ -69,7 +69,7 @@ typedef struct slang_assemble_ctx_ extern struct slang_function_ * _slang_locate_function(const struct slang_function_scope_ *funcs, - slang_atom name, const struct slang_operation_ *params, + slang_atom name, struct slang_operation_ *params, GLuint num_params, const slang_name_space *space, slang_atom_pool *atoms, slang_info_log *log); @@ -168,11 +168,11 @@ slang_typeinfo_destruct(slang_typeinfo *); */ extern GLboolean _slang_typeof_operation(const slang_assemble_ctx *, - const struct slang_operation_ *, + struct slang_operation_ *, slang_typeinfo *); extern GLboolean -_slang_typeof_operation_(const struct slang_operation_ *, +_slang_typeof_operation_(struct slang_operation_ *, const slang_name_space *, slang_typeinfo *, slang_atom_pool *, slang_info_log *log); |