gallium: add the concept of batch queries
authorNicolai Hähnle <nhaehnle@gmail.com>
Tue, 10 Nov 2015 13:06:59 +0000 (14:06 +0100)
committerNicolai Hähnle <nhaehnle@gmail.com>
Fri, 20 Nov 2015 16:27:28 +0000 (17:27 +0100)
commitd61d4df02e568d314c4e763ba9b5bdd57aef98c5
treed6003262842a8b974ec8051ca23edf838f484190
parentc235300bfc3547d418f9a66555a5ee93a15666f9
gallium: add the concept of batch queries

Some drivers (in particular radeon[si], but also freedreno judging from
a quick grep) may want to expose performance counters that cannot be
individually enabled or disabled.

Allow such drivers to mark driver-specific queries as requiring a new
type of batch query object that is used to start and stop a list of queries
simultaneously.

v3: adjust recently added nv50 queries

v2: documentation for create_batch_query

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_defines.h