Module: Mesa Branch: main Commit: ee9386411768bdedfa5c96254a82e847d18aed3c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee9386411768bdedfa5c96254a82e847d18aed3c
Author: Samuel Pitoiset <[email protected]> Date: Mon Apr 24 14:17:03 2023 +0200 ac/sqtt: initialize clock calibration/queue info/queue event records Signed-off-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22594> --- src/amd/common/ac_sqtt.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/amd/common/ac_sqtt.c b/src/amd/common/ac_sqtt.c index 5cc88e6a2cf..235ee18f59d 100644 --- a/src/amd/common/ac_sqtt.c +++ b/src/amd/common/ac_sqtt.c @@ -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
