pan/decode: Print the resource table label

Useful to quickly spot which stage of the pipeline is using a resource
table.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26221>
This commit is contained in:
Boris Brezillon 2023-10-04 09:31:45 +02:00 committed by Marge Bot
parent 408b3f3ced
commit 7dd610f908

View file

@ -434,6 +434,8 @@ GENX(pandecode_resource_tables)(struct pandecode_context *ctx, mali_ptr addr,
const uint8_t *cl =
pandecode_fetch_gpu_mem(ctx, addr, MALI_RESOURCE_LENGTH * count);
pandecode_log(ctx, "%s resource table @%" PRIx64 "\n", label, addr);
ctx->indent += 2;
for (unsigned i = 0; i < count; ++i) {
pan_unpack(cl + i * MALI_RESOURCE_LENGTH, RESOURCE, entry);
DUMP_UNPACKED(ctx, RESOURCE, entry, "Entry %u @%" PRIx64 ":\n", i,
@ -444,6 +446,7 @@ GENX(pandecode_resource_tables)(struct pandecode_context *ctx, mali_ptr addr,
pandecode_resources(ctx, entry.address, entry.size);
ctx->indent -= 2;
}
ctx->indent -= 2;
}
void