intel/perf: reuse offset specified in the query
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 13 Sep 2019 14:21:02 +0000 (17:21 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commitceb822f9e00f57ebf7fccea4dd8acb510e28cefd
tree2f40ea5046a16b4a7823031de810be2d3053c9f2
parent63c193e921e5936c0d4a906285627ac11fd267f7
intel/perf: reuse offset specified in the query

The current code relies on the order of the function
gen_perf_query_result_accumulate() to match the descriptions written
by gen_perf.py. Let's just reuse the offset specified in the python
script.

v2: Use accumlator offsets more (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/perf/gen_perf.c