From 625ebb977f42b1f834c149aa2e4e1b19a512259d Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 8 Mar 2022 20:49:01 +0100 Subject: [PATCH] ir3: Actually use wrmask in emit_sam I noticed that isam emitted for SSBO loads was writing all 4 components, which this fixes. Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 0e730636731..8ff044011ce 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -1379,7 +1379,7 @@ emit_sam(struct ir3_context *ctx, opc_t opc, struct tex_src_info info, if (info.flags & IR3_INSTR_A1EN) { addr = ir3_get_addr1(ctx, info.a1_val); } - sam = ir3_SAM(ctx->block, opc, type, 0b1111, info.flags, info.samp_tex, src0, + sam = ir3_SAM(ctx->block, opc, type, wrmask, info.flags, info.samp_tex, src0, src1); if (info.flags & IR3_INSTR_A1EN) { ir3_instr_set_address(sam, addr);