nir/spirv: Use the type from the deref for atomics
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 29 Jun 2017 17:33:24 +0000 (10:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Jul 2017 22:26:51 +0000 (15:26 -0700)
commita10d887ad1eba7baca74b8fbd9c9ec171dbcf3a7
tree4997945bf732e533438c9d553f9dae08d9eef5b8
parentcc577ca3772980cafe04d3f20465b5a5d947c45d
nir/spirv: Use the type from the deref for atomics

Previously, we were using the type of the variable which is incorrect.

Cc: "17.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/spirv/spirv_to_nir.c