summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-05-12 22:19:03 -0400
committerRob Clark <[email protected]>2014-05-14 07:54:02 -0400
commit209522070e370d927ede7b4fa60aca57566159f8 (patch)
tree7f45fad1e471652ef673b48e90e9104e64bc9d26 /src/gallium/docs
parentb18b7781b2311134d16495393413abc1be66accc (diff)
gallium/docs: clarify when query results are reset
It wasn't completely clear from the docs, so I had to figure out by looking at piglit results. Hopefully this saves the next driver writer implementing queries some time. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/context.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index fc8dd16f894..571ee87c2dc 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -300,6 +300,8 @@ 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.
+``begin_query`` will clear/reset previous query results.
+
``get_query_result`` is used to retrieve the results of a query. If
the ``wait`` parameter is TRUE, then the ``get_query_result`` call
will block until the results of the query are ready (and TRUE will be