anv: switch intel perf queries to query layout
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 10 Sep 2020 08:54:55 +0000 (11:54 +0300)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Feb 2021 13:25:55 +0000 (13:25 +0000)
commiteec2d4e466a89ece98b2c0e3947db41d84d08a95
tree4d35b59a529a92da7a36a403915770f4da5d107a
parent8ca1f488e6f6a5796173307a474b7fc22a2f7766
anv: switch intel perf queries to query layout

Apart from the single additional marker field, these queries will now
use the same layout as all other drivers.

This should allow us to modify a single component to add an additional
register for new metrics.

v2: Capture the query beging registers in reverse order to ensure
    timestamp is as close as possible from measured draw call.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6518>
src/intel/vulkan/genX_query.c