mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 01:08:29 +02:00
intel/perf: allocate cleared counter infos
This array of structure needs to be initialized to 0 as it contains a bitset we don't explicitly clear. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:3144bc1d33("intel/perf: move query_mask and location out of gen_perf_query_counter") Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893> (cherry picked from commite754bf6be4)
This commit is contained in:
parent
9476566032
commit
84ada12002
2 changed files with 2 additions and 2 deletions
|
|
@ -2596,7 +2596,7 @@
|
|||
"description": "intel/perf: allocate cleared counter infos",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "3144bc1d33692ed35c6431bca57d3b0d46330cde"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ build_unique_counter_list(struct intel_perf_config *perf)
|
|||
* below contains pointers to this array.
|
||||
*/
|
||||
struct intel_perf_query_counter_info *counter_infos =
|
||||
ralloc_array_size(perf, sizeof(counter_infos[0]), max_counters);
|
||||
rzalloc_array_size(perf, sizeof(counter_infos[0]), max_counters);
|
||||
|
||||
perf->n_counters = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue