tu/autotune: Clear active_batches before history objects are freed

Fixes use-after-free errors during device destruction.

Fixes: 40ffc052af ("tu: Rewrite autotune in C++")
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41476>
This commit is contained in:
Valentine Burley 2026-05-11 12:50:44 +02:00 committed by Marge Bot
parent 975ae01208
commit abcb0f6cf5

View file

@ -1698,6 +1698,7 @@ tu_autotune::~tu_autotune()
at_log_base("finished processing all entries");
}
active_batches.clear();
tu_bo_suballocator_finish(&suballoc);
}