radeonsi/sqtt: clear record_counts variable

This avoids hitting the asserts in ac_sqtt_finish.

Fixes: 94ce6540d8 ("ac/sqtt: add helpers for initializing ac_thread_trace_data")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26774>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2023-09-25 11:21:38 +02:00
committed by Marge Bot
parent 77098ec467
commit e4d537fb84

View File

@@ -677,12 +677,14 @@ void si_destroy_sqtt(struct si_context *sctx) {
list_for_each_entry_safe(struct rgp_pso_correlation_record, record,
&pso_correlation->record, list) {
list_del(&record->list);
pso_correlation->record_count--;
free(record);
}
list_for_each_entry_safe(struct rgp_loader_events_record, record,
&loader_events->record, list) {
list_del(&record->list);
loader_events->record_count--;
free(record);
}
@@ -698,6 +700,7 @@ void si_destroy_sqtt(struct si_context *sctx) {
}
list_del(&record->list);
free(record);
code_object->record_count--;
}
ac_sqtt_finish(sctx->sqtt);