st/mesa: maintain active perfmon counters in an array
authorNicolai Hähnle <nhaehnle@gmail.com>
Thu, 12 Nov 2015 11:30:23 +0000 (12:30 +0100)
committerNicolai Hähnle <nhaehnle@gmail.com>
Fri, 20 Nov 2015 16:27:23 +0000 (17:27 +0100)
commitc235300bfc3547d418f9a66555a5ee93a15666f9
tree1b7c01505320948036a443c51f62e60f77030e6f
parentafa6121b4ef2d249004cff0bb40237c71c61946d
st/mesa: maintain active perfmon counters in an array

It is easy enough to pre-determine the required size, and arrays are
generally better behaved especially when they get large.

v2: make sure init_perf_monitor returns true when no counters are active
(spotted by Samuel Pitoiset)

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/state_tracker/st_cb_perfmon.c
src/mesa/state_tracker/st_cb_perfmon.h