nir/spirv: Swap the argument order for AtomicCompareExchange
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Sep 2016 22:02:31 +0000 (15:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Sep 2016 00:08:13 +0000 (17:08 -0700)
commit0ead7bef6b24add7bf0119f8d5f63e4ff806ec72
treec27a1e4a0492a42e641766b308cb152c31fcc52f
parentedd688d986da17b99ee8e4bc7c4e62fc2af5ed0e
nir/spirv: Swap the argument order for AtomicCompareExchange

SPIR-V has the two arguments in the opposite order from GLSL.  NIR uses the
GLSL order so we had them backwards.

Fixes dEQP-VK.spirv_assembly.instruction.compute.opatomic.compex

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