aco: fix 64-bit shared_atomic_exchange
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 4 May 2020 13:11:00 +0000 (14:11 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 May 2020 10:34:03 +0000 (10:34 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4880>

src/amd/compiler/aco_instruction_selection.cpp

index 9f97e1fc64759dc0474bc1dfe24bb4d2976d894c..55fc1a59d4f91a14eff91e8564db71619b82ad79 100644 (file)
@@ -6690,7 +6690,7 @@ void visit_shared_atomic(isel_context *ctx, nir_intrinsic_instr *instr)
          op32 = aco_opcode::ds_write_b32;
          op64 = aco_opcode::ds_write_b64;
          op32_rtn = aco_opcode::ds_wrxchg_rtn_b32;
-         op64_rtn = aco_opcode::ds_wrxchg2_rtn_b64;
+         op64_rtn = aco_opcode::ds_wrxchg_rtn_b64;
          break;
       case nir_intrinsic_shared_atomic_comp_swap:
          op32 = aco_opcode::ds_cmpst_b32;