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:
committed by
Marge Bot
parent
fbb38a30a6
commit
55cd987de2
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user