i965: Track the number of monitors that need OA counters.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 3 Nov 2013 02:44:49 +0000 (19:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:14 +0000 (15:01 -0800)
commitb05b1eff1c974c897d99f8ae1b3cb480ee39ef67
tree99a16cebb85b2d0381749d27f2dd8075fda64c1d
parent7329f8dd10673a474554fd881eb09d6908496e0f
i965: Track the number of monitors that need OA counters.

Using the OA counters requires some per-batch work.  When starting and
ending a batch, it's useful to know whether any monitors are actually
interested in OA data.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_performance_monitor.c