summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-06-26 19:33:07 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2014-07-01 11:34:31 -0400
commit43e4b3e311df3bede930229380a7aa389ac7019a (patch)
tree4dffb0752eb8ac60416156b277074cb3a290efdd /src/gallium/docs
parent7f1b365f65ed5b95a941cf22f35f480d00739d4b (diff)
downloadexternal_mesa3d-43e4b3e311df3bede930229380a7aa389ac7019a.zip
external_mesa3d-43e4b3e311df3bede930229380a7aa389ac7019a.tar.gz
external_mesa3d-43e4b3e311df3bede930229380a7aa389ac7019a.tar.bz2
gallium: add an index argument to create_query
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/context.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index a9625f3..5861f46 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -300,6 +300,10 @@ Queries can be created with ``create_query`` and deleted with
``destroy_query``. To start a query, use ``begin_query``, and when finished,
use ``end_query`` to end the query.
+``create_query`` takes a query type (``PIPE_QUERY_*``), as well as an index,
+which is the vertex stream for ``PIPE_QUERY_PRIMITIVES_GENERATED`` and
+``PIPE_QUERY_PRIMITIVES_EMITTED``, and allocates a query structure.
+
``begin_query`` will clear/reset previous query results.
``get_query_result`` is used to retrieve the results of a query. If