From 6ac3beeb85033a23efbcc160a7d392e29807f345 Mon Sep 17 00:00:00 2001 From: Patrick Lerda Date: Wed, 28 Aug 2024 15:35:04 +0200 Subject: [PATCH] iris: fix indirect draw refcnt imbalance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Indeed, the object ring_bo was not freed. For instance, this issue is triggered with: "piglit/bin/arb_shader_image_load_store-host-mem-barrier -auto -fbo" while setting GALLIUM_REFCNT_LOG=refcnt.log. Fixes: 5438b1910464 ("iris: enable generated indirect draws") Signed-off-by: Patrick Lerda Reviewed-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index e777d5a0e6e..6b8372a5bdc 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -248,6 +248,7 @@ iris_destroy_context(struct pipe_context *ctx) iris_destroy_batches(ice); iris_destroy_binder(&ice->state.binder); + iris_bo_unreference(ice->draw.generation.ring_bo); iris_utrace_fini(ice);