pan/decode: Select the right registers when dumping local storage descriptors

Leads to invalid mappings when the selected register is not matching the
one hardcoded in pandecode_run_idvs().

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30695>
This commit is contained in:
Boris Brezillon
2024-06-28 09:36:31 +02:00
committed by Marge Bot
parent 867aa82e6f
commit 9e7091352c

View File

@@ -328,13 +328,13 @@ pandecode_run_idvs(struct pandecode_context *ctx, FILE *fp,
(ctx, cs_get_u64(qctx, 20), "Fragment shader", qctx->gpu_id);
}
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, 24),
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, reg_position_tsd),
"Position Local Storage @%" PRIx64 ":\n",
cs_get_u64(qctx, reg_position_tsd));
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, 24),
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, reg_vary_tsd),
"Varying Local Storage @%" PRIx64 ":\n",
cs_get_u64(qctx, reg_vary_tsd));
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, 30),
DUMP_ADDR(ctx, LOCAL_STORAGE, cs_get_u64(qctx, reg_frag_tsd),
"Fragment Local Storage @%" PRIx64 ":\n",
cs_get_u64(qctx, reg_frag_tsd));