intel/perf: fix calculation of used counter space
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Wed, 10 Jun 2020 13:29:53 +0000 (15:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 Aug 2020 13:41:29 +0000 (13:41 +0000)
commite7e6f709389be9744841d42dade3fcee8e8c6a30
tree98d91a23b82b6f61a348cfd1404da3be4e14928e
parent6d988ad4a21f25899936963e385e702002e4f18e
intel/perf: fix calculation of used counter space

It matters only when counters are not ordered by offset.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5788>
src/intel/perf/gen_perf_query.c