diff options
author | Ian Romanick <[email protected]> | 2016-09-15 11:09:34 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-11-10 14:30:49 -0800 |
commit | 9788b3b6f363580fd8d9d7e221cab28879e4d169 (patch) | |
tree | 4b7a4156d35ba43246068616e99e89410d2df054 /src/compiler/glsl/linker.h | |
parent | 7372d2153ab68eefec792a8cb094a6557bdb8b4a (diff) |
glsl/linker: Allow link_intrastage_shaders when there is no main()
This enables a sort of par-linking. The primary use for this feature is
resolving built-in functions in the stand-alone compiler.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.h')
-rw-r--r-- | src/compiler/glsl/linker.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/glsl/linker.h b/src/compiler/glsl/linker.h index d30aeda4f65..8363d549428 100644 --- a/src/compiler/glsl/linker.h +++ b/src/compiler/glsl/linker.h @@ -85,6 +85,15 @@ extern void link_check_atomic_counter_resources(struct gl_context *ctx, struct gl_shader_program *prog); + +extern struct gl_linked_shader * +link_intrastage_shaders(void *mem_ctx, + struct gl_context *ctx, + struct gl_shader_program *prog, + struct gl_shader **shader_list, + unsigned num_shaders, + bool allow_missing_main); + /** * Class for processing all of the leaf fields of a variable that corresponds * to a program resource. |