Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
/* TODO */
printf("--leaking checksum (%zd bytes)--\n", bo->checksum_slab.size);
}
+
+ if (bo->imported) {
+ screen->driver->free_imported_bo(screen, bo);
+ }
}
static void
/* Memory entry corresponding to gpu above */
struct panfrost_memory_entry *entry[MAX_MIP_LEVELS];
+ /* Set if this bo was imported rather than allocated */
+ bool imported;
+
+ /* Number of bytes of the imported allocation */
+ size_t imported_size;
+
/* Set for tiled, clear for linear. */
bool tiled;
int extent);
void (*free_slab) (struct panfrost_screen *screen,
struct panfrost_memory *mem);
+ void (*free_imported_bo) (struct panfrost_screen *screen,
+ struct panfrost_bo *bo);
void (*enable_counters) (struct panfrost_screen *screen);
};