nir/spirv: Use fill_common_atomic_sources for image atomics
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Sep 2016 22:07:57 +0000 (15:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Sep 2016 00:08:13 +0000 (17:08 -0700)
commit2b18a3f5d33e7f9a87ed7c2016e9fde657823286
treef16b4816eda39d1fad7732928e7cf4a5a2531d67
parentf2a10937d8024cce25da2f4b764b2b8a61d6398e
nir/spirv: Use fill_common_atomic_sources for image atomics

We had two almost identical copies of this code and they were both broken
but in different ways.  The previous two commits fixed both of them.  This
one just unifies them so that it's easier to handle in the future.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/spirv/spirv_to_nir.c