summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-07-16 16:14:07 -0400
committerTom Stellard <[email protected]>2014-07-17 09:33:37 -0400
commit74dfd86ed69c11bd4eddee60ac8a14c39e4d5fc4 (patch)
tree35f1c8b2d4e3ac8245ec11bb7bf56641ab27b699 /src/gallium
parent48deb4dbf278c03ea49aeaa7f9d9eda231def817 (diff)
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 <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> CC: "10.2" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/clover/core/timestamp.cpp1
1 files changed, 1 insertions, 0 deletions
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) :