glsl: Linker support for ARB_shader_atomic_counters.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 11 Sep 2013 19:14:46 +0000 (12:14 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 7 Nov 2013 23:56:57 +0000 (15:56 -0800)
commit5c114939b486c153148279302128946a1879e90e
tree14f8188c988507d61cd8ca91bfe548834f2e7e51
parente63bb298531918c3a17e77a9ad96670e724c9c37
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 <currojerez@riseup.net>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/Makefile.sources
src/glsl/link_atomics.cpp [new file with mode: 0644]
src/glsl/linker.cpp
src/glsl/linker.h