ac/nir: Fix ordering of parameters for image atomic cmpswap intrinsics
authorAlex Smith <asmith@feralinteractive.com>
Fri, 30 Jun 2017 10:15:42 +0000 (11:15 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 6 Jul 2017 22:57:25 +0000 (00:57 +0200)
commitc2a5cb64272da3cd8d97b0a58da6c6992b0417d3
tree87d8c19c1e6e7a196cbd31262c20c0f0dd393693
parent7cc6ee56c657782fe218aaf3dbc46905f4663c21
ac/nir: Fix ordering of parameters for image atomic cmpswap intrinsics

The NIR parameters are ordered "compare, data", matching GLSL, but both
the image and buffer LLVM intrinsics take them the other way around.
This is already handled correctly for SSBO atomics.

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
src/amd/common/ac_nir_to_llvm.c