From: Rob Clark Date: Wed, 20 Mar 2019 15:47:03 +0000 (-0400) Subject: freedreno/ir3/a6xx: fix ssbo comp_swap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70904eb99ae0c31c7cca8edeec9ba1c6353e4218;p=mesa.git freedreno/ir3/a6xx: fix ssbo comp_swap 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 --- diff --git a/src/freedreno/ir3/ir3_a6xx.c b/src/freedreno/ir3/ir3_a6xx.c index 048b84c3370..c0536d357fc 100644 --- a/src/freedreno/ir3/ir3_a6xx.c +++ b/src/freedreno/ir3/ir3_a6xx.c @@ -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*[]){