From cadf6def0cc9770c6d0d9e0e15db6e14d3763684 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 19 Feb 2019 14:44:10 -0500 Subject: [PATCH] freedreno/ir3/a6xx: fix load_ssbo barrier type. Silly copy/pasta bug, since load_image is actually the same instruction but different barrier class. Signed-off-by: Rob Clark --- src/freedreno/ir3/ir3_a6xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/ir3/ir3_a6xx.c b/src/freedreno/ir3/ir3_a6xx.c index 7330acc7063..29b7ea8416c 100644 --- a/src/freedreno/ir3/ir3_a6xx.c +++ b/src/freedreno/ir3/ir3_a6xx.c @@ -85,8 +85,8 @@ emit_intrinsic_load_ssbo(struct ir3_context *ctx, nir_intrinsic_instr *intr, sam = ir3_SAM(b, OPC_ISAM, TYPE_U32, 0b1, 0, tex_idx, tex_idx, ir3_create_collect(ctx, coords, 2), NULL); - sam->barrier_class = IR3_BARRIER_IMAGE_R; - sam->barrier_conflict = IR3_BARRIER_IMAGE_W; + sam->barrier_class = IR3_BARRIER_BUFFER_R; + sam->barrier_conflict = IR3_BARRIER_BUFFER_W; dst[i] = sam; } -- 2.30.2