nir/spirv: Use the correct sources for CompareExchange on images
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Sep 2016 22:13:42 +0000 (15:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Sep 2016 00:08:13 +0000 (17:08 -0700)
commitf2a10937d8024cce25da2f4b764b2b8a61d6398e
treed8ba7e93eb2129c7bf56e6b501e95c70d05e13b3
parent0ead7bef6b24add7bf0119f8d5f63e4ff806ec72
nir/spirv: Use the correct sources for CompareExchange on images

The CompareExchange operation has two "Memory Semantics" parameters instead
of one so the real arguments start at w[7] instead of w[6].

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/spirv/spirv_to_nir.c