From a677799e51a8d3651a8c963dac0a09ff0b282d63 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 26 Jul 2017 19:16:14 +0200 Subject: gallium: add PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE and corresponding cap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: rename cap to PIPE_CAP_QUERY_SO_OVERFLOW and be a bit more explicit in the documentation Reviewed-by: Roland Scheidegger Reviewed-by: Marek Olšák --- src/gallium/docs/source/context.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/gallium/docs/source/context.rst') diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index a46131c31fe..7002802248e 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -428,9 +428,17 @@ XXX the 2nd value is equivalent to ``PIPE_QUERY_PRIMITIVES_GENERATED`` but it is unclear if it should be increased if stream output is not active. ``PIPE_QUERY_SO_OVERFLOW_PREDICATE`` returns a boolean value indicating -whether the stream output targets have overflowed as a result of the +whether a selected stream output target has overflowed as a result of the commands issued between ``begin_query`` and ``end_query``. -This query can be used with ``render_condition``. +This query can be used with ``render_condition``. The output stream is +selected by the stream number passed to ``create_query``. + +``PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE`` returns a boolean value indicating +whether any stream output target has overflowed as a result of the commands +issued between ``begin_query`` and ``end_query``. This query can be used +with ``render_condition``, and its result is the logical OR of multiple +``PIPE_QUERY_SO_OVERFLOW_PREDICATE`` queries, one for each stream output +target. ``PIPE_QUERY_GPU_FINISHED`` returns a boolean value indicating whether all commands issued before ``end_query`` have completed. However, this -- cgit v1.2.3