mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 18:38:05 +02:00
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:
parent
975ae01208
commit
abcb0f6cf5
1 changed files with 1 additions and 0 deletions
|
|
@ -1698,6 +1698,7 @@ tu_autotune::~tu_autotune()
|
|||
at_log_base("finished processing all entries");
|
||||
}
|
||||
|
||||
active_batches.clear();
|
||||
tu_bo_suballocator_finish(&suballoc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue