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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15288>
This commit is contained in:
Connor Abbott
2022-03-08 20:49:01 +01:00
committed by Marge Bot
parent 5f020bcc8d
commit 625ebb977f

View File

@@ -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);