mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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 <niels_ole@salscheider-online.de> Reviewed-by: Francisco Jerez <currojerez@riseup.net> CC: "10.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
48deb4dbf2
commit
74dfd86ed6
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ using namespace clover;
|
||||||
timestamp::query::query(command_queue &q) :
|
timestamp::query::query(command_queue &q) :
|
||||||
q(q),
|
q(q),
|
||||||
_query(q.pipe->create_query(q.pipe, PIPE_QUERY_TIMESTAMP, 0)) {
|
_query(q.pipe->create_query(q.pipe, PIPE_QUERY_TIMESTAMP, 0)) {
|
||||||
|
q.pipe->end_query(q.pipe, _query);
|
||||||
}
|
}
|
||||||
|
|
||||||
timestamp::query::query(query &&other) :
|
timestamp::query::query(query &&other) :
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue