[Mesa-dev] [PATCH] gallium/docs: clarify get_query_result()

Rob Clark robdclark at gmail.com
Mon May 12 19:21:54 PDT 2014


From: Rob Clark <robclark at freedesktop.org>

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 <robclark at freedesktop.org>
---
 src/gallium/docs/source/context.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index fc8dd16..9278796 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -307,6 +307,10 @@ returned).  Otherwise, if the ``wait`` parameter is FALSE, the call
 will not block and the return value will be TRUE if the query has
 completed or FALSE otherwise.
 
+``get_query_result`` (if it returns TRUE) will clear/reset previous query
+results.  In other words, subsequent calls to ``get_query_result`` will
+only return results since the previous call.
+
 The interface currently includes the following types of queries:
 
 ``PIPE_QUERY_OCCLUSION_COUNTER`` counts the number of fragments which
-- 
1.9.0



More information about the mesa-dev mailing list