From: Boris Brezillon Date: Mon, 20 Jan 2020 21:00:48 +0000 (+0100) Subject: panfrost/midgard: Print the actual source register for store operations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9134f22df2b216f587ef9fe85e6dd86ff226e0b7;p=mesa.git panfrost/midgard: Print the actual source register for store operations Store operation use r26/r27 but have a word->reg set to 0 or 1 (base is r26). Let's take this base offset into account in print_load_store_instr(). Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index eb0471bc90c..e92214417c4 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1121,7 +1121,7 @@ print_load_store_instr(uint64_t data, midg_stats.attribute_count = -16; } - printf(" r%u", word->reg); + printf(" r%u", word->reg + (OP_IS_STORE(word->op) ? 26 : 0)); print_mask_4(word->mask, false); if (!OP_IS_STORE(word->op))