asahi: fix agxdecode memory mapping

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32434>
This commit is contained in:
Alyssa Rosenzweig
2024-11-30 15:26:44 -05:00
committed by Marge Bot
parent fbb38a30a6
commit 55cd987de2
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -388,8 +388,10 @@ agx_bo_create(struct agx_device *dev, size_t size, unsigned align,
bo->label = label;
p_atomic_set(&bo->refcnt, 1);
if (dev->debug & AGX_DBG_TRACE)
if (dev->debug & AGX_DBG_TRACE) {
agx_bo_map(bo);
agxdecode_track_alloc(dev->agxdecode, bo);
}
agx_bo_dump_all_periodic(dev);
return bo;
+3 -1
View File
@@ -296,8 +296,10 @@ agx_bo_import(struct agx_device *dev, int fd)
}
pthread_mutex_unlock(&dev->bo_map_lock);
if (dev->debug & AGX_DBG_TRACE)
if (dev->debug & AGX_DBG_TRACE) {
agx_bo_map(bo);
agxdecode_track_alloc(dev->agxdecode, bo);
}
return bo;