Module: Mesa Branch: master Commit: 9134f22df2b216f587ef9fe85e6dd86ff226e0b7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9134f22df2b216f587ef9fe85e6dd86ff226e0b7
Author: Boris Brezillon <[email protected]> Date: Mon Jan 20 22:00:48 2020 +0100 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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3482> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3482> --- src/panfrost/midgard/disassemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
