From 70bb1902794e52e0e22f5f51c6a04b6db8eb0b1d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 6 Jul 2022 09:06:49 +0200 Subject: [PATCH] etnaviv: print writemask of store operations Signed-off-by: Italo Nicola Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/drivers/etnaviv/etnaviv_disasm.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_disasm.c b/src/gallium/drivers/etnaviv/etnaviv_disasm.c index fea8cb36dd8..70c75339a20 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_disasm.c +++ b/src/gallium/drivers/etnaviv/etnaviv_disasm.c @@ -449,6 +449,18 @@ print_opc_imm(struct opc_operands *operands) printf("label_%04d", operands->imm); } +static void +print_opc_store(struct opc_operands *operands) +{ + printf("mem"); + print_components(operands->dst->write_mask); + printf(", "); + + print_src(operands->src0, true); + print_src(operands->src1, true); + print_src(operands->src2, false); +} + #define OPC_BITS 7 static const struct opc_info { @@ -459,6 +471,7 @@ static const struct opc_info { #define OPC_MOV(opc) [INST_OPCODE_##opc] = {#opc, print_opc_mov} #define OPC_TEX(opc) [INST_OPCODE_##opc] = {#opc, print_opc_tex} #define OPC_IMM(opc) [INST_OPCODE_##opc] = {#opc, print_opc_imm} +#define OPC_STORE(opc) [INST_OPCODE_##opc] = {#opc, print_opc_store} OPC(NOP), OPC(ADD), OPC(MAD), @@ -506,7 +519,7 @@ static const struct opc_info { OPC(F2I), OPC(CMP), OPC(LOAD), - OPC(STORE), + OPC_STORE(STORE), OPC(IMULLO0), OPC(IMULHI0), OPC(IMADLO0),