summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-05-02 20:28:11 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-02-04 21:21:30 -0500
commit40d7f02c67ed16f4894137757683475f837a3b4f (patch)
tree85857200b59e1673d38caf222d9fd292c3c2adab /src/gallium/docs/source
parent386a9ec77b7113c1e0c29c30b981a50175ac16e8 (diff)
downloadexternal_mesa3d-40d7f02c67ed16f4894137757683475f837a3b4f.zip
external_mesa3d-40d7f02c67ed16f4894137757683475f837a3b4f.tar.gz
external_mesa3d-40d7f02c67ed16f4894137757683475f837a3b4f.tar.bz2
gallium: add a way to store query result into buffer
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r--src/gallium/docs/source/context.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 4c03e00..904e1ff 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -325,6 +325,11 @@ 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_resource`` is used to store the result of a query into
+a resource without synchronizing with the CPU. This write will optionally
+wait for the query to complete, and will optionally write whether the value
+is available instead of the value itself.
+
The interface currently includes the following types of queries:
``PIPE_QUERY_OCCLUSION_COUNTER`` counts the number of fragments which