summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-07 05:29:37 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:30 +0200
commit56c47951c5d92d5e6145060469528301c67e0754 (patch)
tree3fb7999a7f16771826a4c2c4a5bfc7b2306124c9 /src/video_core
parentvk_master_semaphore: Use fetch_add to increase master semaphore tick (diff)
downloadyuzu-56c47951c5d92d5e6145060469528301c67e0754.tar
yuzu-56c47951c5d92d5e6145060469528301c67e0754.tar.gz
yuzu-56c47951c5d92d5e6145060469528301c67e0754.tar.bz2
yuzu-56c47951c5d92d5e6145060469528301c67e0754.tar.lz
yuzu-56c47951c5d92d5e6145060469528301c67e0754.tar.xz
yuzu-56c47951c5d92d5e6145060469528301c67e0754.tar.zst
yuzu-56c47951c5d92d5e6145060469528301c67e0754.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp
index 1dd78328c..c9cb32d71 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -114,17 +114,10 @@ void HostCounter::EndQuery() {
}
u64 HostCounter::BlockingQuery() const {
- auto& scheduler{cache.GetScheduler()};
- if (tick >= scheduler.CurrentTick()) {
- scheduler.Flush();
- // This may not be necessary, but it's better to play it safe and assume drivers don't
- // support wait before signal on vkGetQueryPoolResults
- scheduler.WaitWorker();
- }
+ cache.GetScheduler().Wait(tick);
u64 data;
const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults(
- query.first, query.second, 1, sizeof(data), &data, sizeof(data),
- VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT);
+ query.first, query.second, 1, sizeof(data), &data, sizeof(data), VK_QUERY_RESULT_64_BIT);
switch (query_result) {
case VK_SUCCESS: