From ad74cd3c3f1f9021298877577f930edbc9a78aa7 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 16 Sep 2022 16:43:12 +0200 Subject: [PATCH] r600: Add slot to ALU disassambly Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_asm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index f7c1005..0a79a1d 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -2355,6 +2355,7 @@ void r600_bytecode_disasm(struct r600_bytecode *bc) nliteral = 0; last = 1; LIST_FOR_EACH_ENTRY(alu, &cf->alu, list) { + const char chan[] = "xyzwt"; const char *omod_str[] = {"","*2","*4","/2"}; const struct alu_op_info *aop = r600_isa_alu(alu->op); int o = 0; @@ -2365,6 +2366,7 @@ void r600_bytecode_disasm(struct r600_bytecode *bc) o += fprintf(stderr, "%4d ", ++ngr); else o += fprintf(stderr, " "); + o += fprintf(stderr, "%c:", chan[alu->dst.chan]); o += fprintf(stderr, "%c%c %c ", alu->execute_mask ? 'M':' ', alu->update_pred ? 'P':' ', alu->pred_sel ? alu->pred_sel==2 ? '0':'1':' '); -- 2.7.4