freedreno/ir3/a6xx: fix load_ssbo barrier type.
authorRob Clark <robdclark@gmail.com>
Tue, 19 Feb 2019 19:44:10 +0000 (14:44 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 20 Feb 2019 23:50:08 +0000 (18:50 -0500)
Silly copy/pasta bug, since load_image is actually the same instruction
but different barrier class.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_a6xx.c

index 7330acc7063582e2488ef70a1f6ab0196866d3cc..29b7ea8416c4d6429280d151c2967fc7df294e92 100644 (file)
@@ -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;
        }