diff options
author | Ian Romanick <[email protected]> | 2010-07-20 11:29:46 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-21 15:52:58 -0700 |
commit | d5be2acae379783c4aa31243e0a88a9e67e6ca7e (patch) | |
tree | 91ebf30796116f1b4d20b6f2fe420a085a59d59e /src/glsl/ir.h | |
parent | 4ccd3c548b9b9a2fee79342445f68d73525bfcdb (diff) |
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.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 38b10f5b06d..3a643fc5807 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1316,6 +1316,9 @@ _mesa_glsl_initialize_functions(exec_list *instructions, struct _mesa_glsl_parse_state *state); extern void +_mesa_glsl_release_functions(void); + +extern void reparent_ir(exec_list *list, void *mem_ctx); class glsl_symbol_table; |