mesa: Track whether a performance monitor has ever ended.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Nov 2013 01:12:37 +0000 (17:12 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Nov 2013 02:51:07 +0000 (18:51 -0800)
commitbde5e4a1e64cd0ddd89556f654185d256743728f
treea2353a2974ff16fd502e6986c9ba539e0ef217b6
parenta6712f51093f24be08afe14f67e78518b3754266
mesa: Track whether a performance monitor has ever ended.

If a monitor has ended, it means a result should eventually become
available, pending some flushing.

This is distinct from !m->Active; if a monitor has not been started,
then m->Active == false and m->Ended == false.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/main/performance_monitor.c