diff options
author | Timothy Arceri <[email protected]> | 2015-02-21 21:47:14 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-03-06 07:26:41 +1100 |
commit | 50859c688c15bd0e98ce20fb1563e61e90aca169 (patch) | |
tree | 8ce83a35ad71b4aa131f43677f106e4dd5a52080 /src/glsl/linker.h | |
parent | aa0705c06c03d2b882ac7b185ed123bc8a10d716 (diff) |
glsl: move array validation into its own function
V2: return true when var->type is unsized but max access is within valid range
Reviewed-by: Mark Janes <[email protected]>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r-- | src/glsl/linker.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h index be4da5e0aa2..ce3dc323297 100644 --- a/src/glsl/linker.h +++ b/src/glsl/linker.h @@ -61,6 +61,11 @@ link_uniform_blocks(void *mem_ctx, unsigned num_shaders, struct gl_uniform_block **blocks_ret); +bool +validate_intrastage_arrays(struct gl_shader_program *prog, + ir_variable *const var, + ir_variable *const existing); + void validate_intrastage_interface_blocks(struct gl_shader_program *prog, const gl_shader **shader_list, |