nvc0: fix reported driver queries for Pascal and later GPUs
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 21 Mar 2021 08:06:09 +0000 (04:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Mar 2021 15:20:45 +0000 (15:20 +0000)
commitcf58debf63b6b5485368bea8e50b4073b5de7a3d
treef19a98f3315cc04389d4550ce4b2f0960991dda6
parent8604cc81017ef4edbce37fded046f082e312e174
nvc0: fix reported driver queries for Pascal and later GPUs

We haven't added the sm/metric info post-GM200. So make sure we don't
report available queries there. Additionally, fix the group retrieval to
take into account that either driver stats or SM stats may not be
available.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9740>
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_metric.c
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c