diff options
author | Tomeu Vizoso <[email protected]> | 2019-03-11 13:35:27 +0100 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2019-03-13 07:35:39 +0100 |
commit | 56e04f67f906aea6101ba6081c5b0efcc25999cc (patch) | |
tree | 6e6923b6be09fb98e8b5634e40517936353e4aeb /src/gallium | |
parent | bfbad30543dd896459b09e0e05bc70ea1727e0b9 (diff) |
panfrost: Set bo->gem_handle when creating a linear BO
So we can free it later.
Signed-off-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index d647f618ee7..2fa468b177b 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -237,6 +237,7 @@ panfrost_create_bo(struct panfrost_screen *screen, const struct pipe_resource *t bo->cpu[0] = mem.cpu; bo->gpu[0] = mem.gpu; + bo->gem_handle = mem.gem_handle; /* TODO: Mipmap */ } @@ -312,7 +313,8 @@ panfrost_destroy_bo(struct panfrost_screen *screen, struct panfrost_bo *pbo) struct panfrost_memory mem = { .cpu = bo->cpu[0], .gpu = bo->gpu[0], - .size = bo->size[0] + .size = bo->size[0], + .gem_handle = bo->gem_handle, }; screen->driver->free_slab(screen, &mem); |