[Mesa-dev] [PATCH 1/2] clover: Call end_query before getting timestamp result v2
Francisco Jerez
currojerez at riseup.net
Thu Jul 17 05:17:27 PDT 2014
Tom Stellard <thomas.stellard at amd.com> writes:
> v2:
> - Move the end_query() call into the timestamp constructor.
> - Still pass false as the wait parameter to get_query_result().
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
> src/gallium/state_trackers/clover/core/timestamp.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/state_trackers/clover/core/timestamp.cpp b/src/gallium/state_trackers/clover/core/timestamp.cpp
> index 481c4f9..3fd341f 100644
> --- a/src/gallium/state_trackers/clover/core/timestamp.cpp
> +++ b/src/gallium/state_trackers/clover/core/timestamp.cpp
> @@ -30,6 +30,7 @@ using namespace clover;
> timestamp::query::query(command_queue &q) :
> q(q),
> _query(q.pipe->create_query(q.pipe, PIPE_QUERY_TIMESTAMP, 0)) {
> + q.pipe->end_query(q.pipe, _query);
> }
>
> timestamp::query::query(query &&other) :
> --
> 1.8.1.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140717/66085ff0/attachment.sig>
More information about the mesa-dev
mailing list