glsl: Translate atomic intrinsic functions on shared variables
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 10 Oct 2015 14:55:42 +0000 (07:55 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commit7333593cf3141e61610f25f86e8b5282c8db099e
tree95c085a4b5d487a07809b70d7188ec12035f4e24
parent614ad9b40b9412e243f4d86bcd7cb0952c42c46f
glsl: Translate atomic intrinsic functions on shared variables

When an intrinsic atomic operation is used on a shared variable, we
translate it to a new 'shared variable' specific intrinsic function
call.

For example, a call to __intrinsic_atomic_add when used on a shared
variable will be translated to a call to
__intrinsic_atomic_add_shared.

v3:
 * Fix stale comments copied from SSBOs (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/lower_shared_reference.cpp