nv50: add compute invocations counter

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 1 May 2021 20:04 UTC

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.

58d47ca3244 nv50: add compute invocations counter
src/gallium/drivers/nouveau/nv50/nv50_compute.c | 3 +++
src/gallium/drivers/nouveau/nv50/nv50_context.h | 2 ++
src/gallium/drivers/nouveau/nv50/nv50_query_hw.c | 34 +++++++++++++++++-------
3 files changed, 29 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share