From: Tom Stellard Date: Wed, 16 Jul 2014 20:14:07 +0000 (-0400) Subject: clover: Call end_query before getting timestamp result v2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74dfd86ed69c11bd4eddee60ac8a14c39e4d5fc4;p=mesa.git clover: Call end_query before getting timestamp result v2 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 Reviewed-by: Francisco Jerez CC: "10.2" --- diff --git a/src/gallium/state_trackers/clover/core/timestamp.cpp b/src/gallium/state_trackers/clover/core/timestamp.cpp index 481c4f9d2ff..3fd341f30da 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) :