nv50: add compute invocations counter
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 2 Mar 2021 05:18:07 +0000 (00:18 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 May 2021 20:04:21 +0000 (20:04 +0000)
commit58d47ca32447fdf7762be22efd2394b9f399f0f8
treed4ddb8a67bb8256c2c551d105780eb8fd09d19d3
parentbd2f14a5ea5eea2f178736223cd65730d798108f
nv50: add compute invocations counter

This is a purely software counter alongside the other hardware counters
for ease of use and consistency. However we have to make room for it in
the allocated query space. Use this opportunity to make the nv50 queries
work like the nvc0 ones in terms of space allocation.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10164>
src/gallium/drivers/nouveau/nv50/nv50_compute.c
src/gallium/drivers/nouveau/nv50/nv50_context.h
src/gallium/drivers/nouveau/nv50/nv50_query_hw.c