panfrost: Cleanup leak todos

Many of these are now patched; one of them we patch here. Regardless,
this is one less thing to worry about in the code, I suppose.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig
2019-05-17 00:14:49 +00:00
parent c65271c929
commit 81d3262fa5
3 changed files with 9 additions and 16 deletions

View File

@@ -353,8 +353,14 @@ panfrost_destroy_bo(struct panfrost_screen *screen, struct panfrost_bo *pbo)
}
if (bo->has_checksum) {
/* TODO */
DBG("--leaking checksum (%zd bytes)--\n", bo->checksum_slab.size);
struct panfrost_memory mem = {
.cpu = bo->checksum_slab.cpu,
.gpu = bo->checksum_slab.gpu,
.size = bo->checksum_slab.size,
.gem_handle = bo->checksum_slab.gem_handle,
};
screen->driver->free_slab(screen, &mem);
}
if (bo->imported) {