anv/perf: fixup counter/query mapping
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 27 Jul 2022 08:51:29 +0000 (08:51 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Nov 2022 12:57:06 +0000 (12:57 +0000)
commit56bd81ee21cb42e4a5afa2939514b570a1283754
treea5d0dafea8cf537dc1f749518653f3068e484801
parent7fbfa694a891369ff408235cb7839505033cfc80
anv/perf: fixup counter/query mapping

The intel_perf_counter_pass::pass field is actually useless and
invalid.

Once you have mapped all the counters to all the metrics, the order of
the metrics capture is dictated by intel_perf_get_n_passes().

When reading values that is the order we should follow.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2001a80d4a81 ("anv: Implement VK_KHR_performance_query")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893>
src/intel/perf/intel_perf.c
src/intel/perf/intel_perf.h
src/intel/vulkan/anv_perf.c
src/intel/vulkan_hasvk/anv_perf.c