Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Reviewed-by: Alyssa Rosenzweig <aly...@rosenzweig.io> --- src/gallium/drivers/panfrost/pan_context.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index fdb3aa7ccdc2..3c8a483b8f58 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2586,9 +2586,16 @@ static void panfrost_destroy(struct pipe_context *pipe) { struct panfrost_context *panfrost = pan_context(pipe); + struct panfrost_screen *screen = pan_screen(pipe->screen); if (panfrost->blitter) util_blitter_destroy(panfrost->blitter); + + screen->driver->free_slab(screen, &panfrost->scratchpad); + screen->driver->free_slab(screen, &panfrost->varying_mem); + screen->driver->free_slab(screen, &panfrost->shaders); + screen->driver->free_slab(screen, &panfrost->tiler_heap); + screen->driver->free_slab(screen, &panfrost->misc_0); } static struct pipe_query * -- 2.20.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev