ac: fix nir_intrinsic_shared_atomic_comp_swap handling
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 1 Mar 2018 09:17:38 +0000 (20:17 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 1 Mar 2018 22:11:20 +0000 (09:11 +1100)
commitf5305c1b44a81d8e022997e0f2f5bd7556be7dea
treef7231a502e20e039f12183d8c48e982fbbac84f7
parent13cdf4e5906f2ac7ec39d0b06abc6b5671c0693d
ac: fix nir_intrinsic_shared_atomic_comp_swap handling

Following on from 49879f377870 this makes sure we use the correct
src index.

Fixes cts test:
KHR-GL46.compute_shader.atomic-case3

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c