nvc0: allow only one active query for the MP counters group
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 28 Sep 2015 15:29:37 +0000 (17:29 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 16 Oct 2015 19:57:44 +0000 (21:57 +0200)
commit8cd4b8478aac56f0ed516c4ff13f8af012fb8eaa
treed489d95933693647981411b0d9b055a960de6664
parentcef22f3490f9809a6e77949f73448efac23be7ee
nvc0: allow only one active query for the MP counters group

Because we can't expose the number of hardware counters needed for each
different query, we don't want to allow more than one active query
simultaneously to avoid failure when the maximum number of counters
is reached. Note that these groups of GPU counters are currently only
used by AMD_performance_monitor.

Like for Kepler, this limits the maximum number of active queries
to 1 on Fermi.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_query.c