From 9d5ec7f6f2c480093b2880387acf4a892c1d28f3 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 11 Sep 2020 18:47:04 +0200 Subject: [PATCH] etnaviv: stop leaking the dummy texure descriptor BO MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Free the dummy texture descriptor BO on context destroy. Fixes: eda73d71277a (etnaviv: GC7000: Texture descriptors) Signed-off-by: Lucas Stach Reviewed-by: Guido Günther Reviewed-by: Christian Gmeiner Cc: Part-of: --- src/gallium/drivers/etnaviv/etnaviv_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.c b/src/gallium/drivers/etnaviv/etnaviv_context.c index ffe2f32..9c334a4 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_context.c +++ b/src/gallium/drivers/etnaviv/etnaviv_context.c @@ -130,6 +130,9 @@ etna_context_destroy(struct pipe_context *pctx) } mtx_unlock(&ctx->lock); + if (ctx->dummy_desc_bo) + etna_bo_del(ctx->dummy_desc_bo); + if (ctx->dummy_rt) etna_bo_del(ctx->dummy_rt); -- 2.7.4