mesa: Add constants for the GL_QUERY_COUNTER_BITS per target.
authorEric Anholt <eric@anholt.net>
Thu, 23 Aug 2012 17:18:47 +0000 (10:18 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 26 Aug 2012 17:40:28 +0000 (10:40 -0700)
commitb765119c5d2cd41a7f47cce10fd1fdbcf162b03d
treed94b689df8707a17627b31da8f32f0c0f55c5112
parent6754ec831e5aaec516db929c8db6e7478a2f5540
mesa: Add constants for the GL_QUERY_COUNTER_BITS per target.

Drivers need to be able to communicate their actual number of bits populated
in the field in order for applications to be able to properly handle rollover.

There's a small behavior change here: Instead of reporting the
GL_SAMPLES_PASSED bits for GL_ANY_SAMPLES_PASSED (which would also be valid),
just return 1, because more bits don't make any sense.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/mtypes.h
src/mesa/main/queryobj.c