mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
ac/sqtt: initialize clock calibration/queue info/queue event records
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22594>
This commit is contained in:
parent
94ce6540d8
commit
ee93864117
1 changed files with 18 additions and 0 deletions
|
|
@ -73,6 +73,15 @@ ac_thread_trace_init(struct ac_thread_trace_data *data)
|
|||
|
||||
list_inithead(&data->rgp_code_object.record);
|
||||
simple_mtx_init(&data->rgp_code_object.lock, mtx_plain);
|
||||
|
||||
list_inithead(&data->rgp_clock_calibration.record);
|
||||
simple_mtx_init(&data->rgp_clock_calibration.lock, mtx_plain);
|
||||
|
||||
list_inithead(&data->rgp_queue_info.record);
|
||||
simple_mtx_init(&data->rgp_queue_info.lock, mtx_plain);
|
||||
|
||||
list_inithead(&data->rgp_queue_event.record);
|
||||
simple_mtx_init(&data->rgp_queue_event.lock, mtx_plain);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -86,6 +95,15 @@ ac_thread_trace_finish(struct ac_thread_trace_data *data)
|
|||
|
||||
assert(data->rgp_code_object.record_count == 0);
|
||||
simple_mtx_destroy(&data->rgp_code_object.lock);
|
||||
|
||||
assert(data->rgp_clock_calibration.record_count == 0);
|
||||
simple_mtx_destroy(&data->rgp_clock_calibration.lock);
|
||||
|
||||
assert(data->rgp_queue_info.record_count == 0);
|
||||
simple_mtx_destroy(&data->rgp_queue_info.lock);
|
||||
|
||||
assert(data->rgp_queue_event.record_count == 0);
|
||||
simple_mtx_destroy(&data->rgp_queue_event.lock);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue