v3d/v3dv: define performance counters in common
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 20 Feb 2023 11:51:00 +0000 (12:51 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Mar 2023 18:57:41 +0000 (18:57 +0000)
commitbaff5099247c26782ead85ee6171da1217906741
tree13ab534e914f7d5f5b03f98a580d4d1f3ab7e8d2
parent161e3f29f479e259deaff84d11059dc2eb688be6
v3d/v3dv: define performance counters in common

Both OpenGL and Vulkan drivers share the same performance counters.

Let's move them to a common place instead of duplicating.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21420>
src/broadcom/common/v3d_performance_counters.h [new file with mode: 0644]
src/broadcom/vulkan/v3dv_query.c
src/gallium/drivers/v3d/v3d_query_perfcnt.c