mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
panfrost: Fix a memory leak in the CSF backend
The geometry BO should be released in csf_cleanup_context().
Fixes: 447075eeee ("panfrost: Add support for the CSF job frontend")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31705>
This commit is contained in:
parent
27bde761a7
commit
3d066e5ef1
1 changed files with 1 additions and 0 deletions
|
|
@ -1206,6 +1206,7 @@ GENX(csf_cleanup_context)(struct panfrost_context *ctx)
|
|||
drmIoctl(panfrost_device_fd(dev), DRM_IOCTL_PANTHOR_GROUP_DESTROY, &gd);
|
||||
assert(!ret);
|
||||
|
||||
panfrost_bo_unreference(ctx->csf.tmp_geom_bo);
|
||||
panfrost_bo_unreference(ctx->csf.heap.desc_bo);
|
||||
ctx->csf.is_init = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue