iris: fix indirect draw refcnt imbalance

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: 5438b19104 ("iris: enable generated indirect draws")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30975>
This commit is contained in:
Patrick Lerda 2024-08-28 15:35:04 +02:00 committed by Marge Bot
parent 06d417af80
commit 6ac3beeb85

View file

@ -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);