diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-24 01:14:17 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-24 01:14:17 +0200 |
commit | d702b393a4db452f354c6976c18d7093c934a003 (patch) | |
tree | 827327b23437969ed2e2d40e06b5720078424a3c /src | |
parent | QueryCache: Flush queries in order of running. (diff) | |
download | yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.gz yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.bz2 yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.lz yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.xz yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.zst yuzu-d702b393a4db452f354c6976c18d7093c934a003.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index c9cb32d71..259cba156 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp @@ -117,7 +117,8 @@ u64 HostCounter::BlockingQuery() const { 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); + query.first, query.second, 1, sizeof(data), &data, sizeof(data), + VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT); switch (query_result) { case VK_SUCCESS: |