Commit 6aac756f by Ben Clayton

VkQueryPool: Add missing lock on the Query.

Bug: b/133127573 Change-Id: I0915cd5f90b75d2bb97152a6b1083755ad14c8b3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31815Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent caf60317
...@@ -123,6 +123,7 @@ namespace vk ...@@ -123,6 +123,7 @@ namespace vk
UNIMPLEMENTED("flags"); UNIMPLEMENTED("flags");
} }
std::unique_lock<std::mutex> lock(pool[query].mutex);
ASSERT(pool[query].state == Query::UNAVAILABLE); ASSERT(pool[query].state == Query::UNAVAILABLE);
pool[query].state = Query::ACTIVE; pool[query].state = Query::ACTIVE;
pool[query].data = 0; pool[query].data = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment