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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3482>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3482>
This commit is contained in:
Boris Brezillon
2020-01-20 22:00:48 +01:00
committed by Marge Bot
parent 14b37ebd44
commit 9134f22df2

View File

@@ -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))