nir: Add compute shader shared variable storage class
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 9 Jan 2016 01:16:29 +0000 (17:16 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 17 Mar 2016 08:23:40 +0000 (01:23 -0700)
commit3c807607df4ab457037f2daa5ea9e5ce18392b7b
tree9f31a0e05d53086a2ce0df141907aa3726d937bc
parent26f8262698d9f48ab5dbb85ef14cb7d5cefd9d53
nir: Add compute shader shared variable storage class

Previously we were receiving shared variable accesses via a lowered
intrinsic function from glsl. This change allows us to send in
variables instead. For example, when converting from SPIR-V.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_lower_atomics.c
src/compiler/nir/nir_print.c
src/compiler/nir/nir_sweep.c
src/compiler/nir/nir_validate.c