gallium: add an interface for query predicates

as specified in the arb_occlusion_query2. just the interface.
This commit is contained in:
Zack Rusin
2011-01-26 00:01:51 -05:00
parent 779e9cb658
commit 0657fc00dd
2 changed files with 7 additions and 1 deletions

View File

@@ -233,6 +233,11 @@ The most common type of query is the occlusion query,
are written to the framebuffer without being culled by
:ref:`Depth, Stencil, & Alpha` testing or shader KILL instructions.
The result is an unsigned 64-bit integer.
In cases where a boolean result of an occlusion query is enough,
``PIPE_QUERY_OCCLUSION_PREDICATE`` should be used. It is just like
``PIPE_QUERY_OCCLUSION_COUNTER`` except that the result is a boolean
value of FALSE for cases where COUNTER would result in 0 and TRUE
for all other cases.
Another type of query, ``PIPE_QUERY_TIME_ELAPSED``, returns the amount of
time, in nanoseconds, the context takes to perform operations.