mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
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 <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>
This commit is contained in:
parent
ccbd125468
commit
9d668f87d3
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue