diff options
| author | 2021-09-24 01:14:17 +0200 | |
|---|---|---|
| committer | 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.gz yuzu-d702b393a4db452f354c6976c18d7093c934a003.tar.xz yuzu-d702b393a4db452f354c6976c18d7093c934a003.zip | |
Vulkan Query Cache: make sure to wait for the query result.
Diffstat (limited to 'src')
| -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 { | |||
| 117 | cache.GetScheduler().Wait(tick); | 117 | cache.GetScheduler().Wait(tick); |
| 118 | u64 data; | 118 | u64 data; |
| 119 | const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults( | 119 | const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults( |
| 120 | query.first, query.second, 1, sizeof(data), &data, sizeof(data), VK_QUERY_RESULT_64_BIT); | 120 | query.first, query.second, 1, sizeof(data), &data, sizeof(data), |
| 121 | VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT); | ||
| 121 | 122 | ||
| 122 | switch (query_result) { | 123 | switch (query_result) { |
| 123 | case VK_SUCCESS: | 124 | case VK_SUCCESS: |