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:
Anil Hiranniah 2024-10-17 09:21:11 +02:00 committed by Marge Bot
parent 27bde761a7
commit 3d066e5ef1

View file

@ -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;
}