glsl: Replace atomic_ssbo and ssbo_atomic with atomic
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 9 Oct 2015 22:55:34 +0000 (15:55 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commita108e14d1c11140def8e2207ce42d8b54660607b
tree201dd3065e05c579853aa7df343d01279ae778db
parent23da6aeb17a1f55c667537d9af12d6b1e4c550d7
glsl: Replace atomic_ssbo and ssbo_atomic with atomic

The atomic functions can also be used with shared variables in compute
shaders.

When lowering the intrinsic in lower_ubo_reference, we still create an
SSBO specific intrinsic since SSBO accesses can be indirectly
addressed, whereas all compute shader shared variable live in a single
shared variable area.

v2:
 * Also remove the _internal suffix from ssbo atomic intrinsic names (Iago)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/builtin_functions.cpp
src/glsl/lower_ubo_reference.cpp
src/glsl/nir/glsl_to_nir.cpp