diff options
author | Boris Brezillon <[email protected]> | 2020-01-20 22:00:48 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-21 14:57:12 +0000 |
commit | 9134f22df2b216f587ef9fe85e6dd86ff226e0b7 (patch) | |
tree | 8a4429df5ba99f552d1069ab47c2415fffa66686 | |
parent | 14b37ebd44e6964f87bc256c0e36586dacb16e56 (diff) |
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>
-rw-r--r-- | src/panfrost/midgard/disassemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |