From 9d668f87d3d10efdfdc758a5e29c961fbee550aa Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Sat, 22 Jul 2023 18:36:54 +0900 Subject: [PATCH] asahi: Print info about shadowed resources If resource and perf debugging are both enabled, this prints resource info for shadowed resources. Signed-off-by: Asahi Lina Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index dce48fb..bffb440 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -688,6 +688,7 @@ agx_shadow(struct agx_context *ctx, struct agx_resource *rsrc, bool needs_copy) if (needs_copy) { perf_debug_ctx(ctx, "Shadowing %zu bytes on the CPU (%s)", size, (old->flags & AGX_BO_WRITEBACK) ? "cached" : "uncached"); + agx_resource_debug(rsrc, "Shadowed: "); memcpy(new_->ptr.cpu, old->ptr.cpu, size); } -- 2.7.4