From ed2d15d42f13fc8c574ebd7051b1e90f8327eac5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 6 Apr 2024 11:48:37 -0400 Subject: [PATCH] asahi: track imports for decode otherwise we fail with interesting dmabuf tracing Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asahi/lib/agx_device.c b/src/asahi/lib/agx_device.c index 7caedd5d6c5..efacc89a18c 100644 --- a/src/asahi/lib/agx_device.c +++ b/src/asahi/lib/agx_device.c @@ -264,6 +264,9 @@ agx_bo_import(struct agx_device *dev, int fd) } pthread_mutex_unlock(&dev->bo_map_lock); + if (dev->debug & AGX_DBG_TRACE) + agxdecode_track_alloc(dev->agxdecode, bo); + return bo; error: