glsl: Check for SSBO variable in SSBO atomic lowering
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 10 Oct 2015 00:43:53 +0000 (17:43 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commitc2e6cfbd78d25849a4e91e3ce3bb413b32ae337e
tree65251038ba95a2bf9290b6130414b330e52a5912
parenta108e14d1c11140def8e2207ce42d8b54660607b
glsl: Check for SSBO variable in SSBO atomic lowering

When an atomic function is called, we need to check to see if it is
for an SSBO variable before lowering it to the SSBO specific intrinsic
function.

v2:
 * is_in_buffer_block => is_in_shader_storage_block (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_ubo_reference.cpp