diff options
author | Francisco Jerez <[email protected]> | 2013-09-11 12:14:46 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-11-07 15:56:57 -0800 |
commit | 5c114939b486c153148279302128946a1879e90e (patch) | |
tree | 14f8188c988507d61cd8ca91bfe548834f2e7e51 /src/glsl/linker.h | |
parent | e63bb298531918c3a17e77a9ad96670e724c9c37 (diff) |
glsl: Linker support for ARB_shader_atomic_counters.
v2: Add comments on the purpose of the auxiliary data structures.
Check for atomic counter overlaps. Use the contains_atomic()
convenience method. Add static assert with the number of expected
shader stages.
v3: Don't resize atomic arrays.
v4: Add comment on the reason why we don't resize atomic counter
arrays. Use 'strcmp(...) == 0' instead of '!strcmp(...)'.
v5 (idr): Don't use STL in the linker.
Signed-off-by: Francisco Jerez <[email protected]>
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r-- | src/glsl/linker.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h index 887cd33d1cd..7b1f6f9c5eb 100644 --- a/src/glsl/linker.h +++ b/src/glsl/linker.h @@ -69,6 +69,14 @@ validate_interstage_interface_blocks(struct gl_shader_program *prog, const gl_shader *producer, const gl_shader *consumer); +extern void +link_assign_atomic_counter_resources(struct gl_context *ctx, + struct gl_shader_program *prog); + +extern void +link_check_atomic_counter_resources(struct gl_context *ctx, + struct gl_shader_program *prog); + /** * Class for processing all of the leaf fields of a variable that corresponds * to a program resource. |