[Mesa-dev] [PATCH] gallium/docs: clarify when query results are reset

Marek Olšák maraeo at gmail.com
Wed May 14 04:04:12 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, May 14, 2014 at 12:25 AM, Rob Clark <robdclark at gmail.com> wrote:
> 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 | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
> index fc8dd16..571ee87 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
> --
> 1.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list