So we can free it later.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
bo->cpu[0] = mem.cpu;
bo->gpu[0] = mem.gpu;
bo->cpu[0] = mem.cpu;
bo->gpu[0] = mem.gpu;
+ bo->gem_handle = mem.gem_handle;
struct panfrost_memory mem = {
.cpu = bo->cpu[0],
.gpu = bo->gpu[0],
struct panfrost_memory mem = {
.cpu = bo->cpu[0],
.gpu = bo->gpu[0],
+ .size = bo->size[0],
+ .gem_handle = bo->gem_handle,
};
screen->driver->free_slab(screen, &mem);
};
screen->driver->free_slab(screen, &mem);