clover: Call end_query before getting timestamp result v2
authorTom Stellard <thomas.stellard@amd.com>
Wed, 16 Jul 2014 20:14:07 +0000 (16:14 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 17 Jul 2014 13:33:37 +0000 (09:33 -0400)
v2:
  - Move the end_query() call into the timestamp constructor.
  - Still pass false as the wait parameter to get_query_result().

Reviewed-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
CC: "10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/clover/core/timestamp.cpp

index 481c4f9d2ffb5520d32e0157832c5f9afdf1ca5d..3fd341f30dafa098b37a0f673a282e12652f23c3 100644 (file)
@@ -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) :