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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user