freedreno/ir3/a6xx: fix ssbo comp_swap
authorRob Clark <robdclark@gmail.com>
Wed, 20 Mar 2019 15:47:03 +0000 (11:47 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 20 Mar 2019 15:48:13 +0000 (11:48 -0400)
One line left out of the conversion to ir3 ssbo intrinsics on a6xx.

Fixes: 2e4525883f0 ir3/compiler: Enable lower_io_offsets pass and handle new SSBO intrinsics
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_a6xx.c

index 048b84c33705569d00efa1822edef809b1149499..c0536d357fc953424569a0eb79a6d96454746a4f 100644 (file)
@@ -152,7 +152,7 @@ emit_intrinsic_atomic_ssbo(struct ir3_context *ctx, nir_intrinsic_instr *intr)
         */
        dummy = create_immed(b, 0);
 
-       if (intr->intrinsic == nir_intrinsic_ssbo_atomic_comp_swap) {
+       if (intr->intrinsic == nir_intrinsic_ssbo_atomic_comp_swap_ir3) {
                src0 = ir3_get_src(ctx, &intr->src[4])[0];
                struct ir3_instruction *compare = ir3_get_src(ctx, &intr->src[3])[0];
                src1 = ir3_create_collect(ctx, (struct ir3_instruction*[]){