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:
3144bc1d3369 ("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>
* 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;