diff options
author | Nicolai Hähnle <[email protected]> | 2017-07-26 19:16:14 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 09:37:10 +0200 |
commit | a677799e51a8d3651a8c963dac0a09ff0b282d63 (patch) | |
tree | 3fbed65a794ade42a0c86f025bdd21485a21ae0a /src/gallium/docs/source | |
parent | f444ac5e6026d58b77ffada92698773127c734cd (diff) |
gallium: add PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE and corresponding cap
v2: rename cap to PIPE_CAP_QUERY_SO_OVERFLOW and be a bit more explicit
in the documentation
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r-- | src/gallium/docs/source/context.rst | 12 | ||||
-rw-r--r-- | src/gallium/docs/source/screen.rst | 5 |
2 files changed, 15 insertions, 2 deletions
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 diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index ee7accba5e9..5c5c7909f0d 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -398,6 +398,11 @@ The integer capabilities: supported. * ``PIPE_CAP_NIR_SAMPLERS_AS_DEREF``: Whether NIR tex instructions should reference texture and sampler as NIR derefs instead of by indices. +* ``PIPE_CAP_QUERY_SO_OVERFLOW``: Whether the + ``PIPE_QUERY_SO_OVERFLOW_PREDICATE`` and + ``PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE`` query types are supported. Note that + for a driver that does not support multiple output streams (i.e., + ``PIPE_CAP_MAX_VERTEX_STREAMS`` is 1), both query types are identical. .. _pipe_capf: |