summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-11 08:59:34 +0200
committerbunnei <bunneidev@gmail.com>2022-10-19 04:13:35 +0200
commitd00245d4440d30a2217c025572cf8a47f4ea2573 (patch)
treeee1d69b85e23c7f5a7e9fc7ac17c6e380c5fd798 /src/video_core
parentcore: hle: kernel: Integration application memory block slab manager. (diff)
downloadyuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar.gz
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar.bz2
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar.lz
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar.xz
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.tar.zst
yuzu-d00245d4440d30a2217c025572cf8a47f4ea2573.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp
index 7cb02631c..4b15c0f85 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -59,10 +59,11 @@ void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) {
std::find_if(pools.begin(), pools.end(), [query_pool = query.first](vk::QueryPool& pool) {
return query_pool == *pool;
});
- ASSERT(it != std::end(pools));
- const std::ptrdiff_t pool_index = std::distance(std::begin(pools), it);
- usage[pool_index * GROW_STEP + static_cast<std::ptrdiff_t>(query.second)] = false;
+ if (it != std::end(pools)) {
+ const std::ptrdiff_t pool_index = std::distance(std::begin(pools), it);
+ usage[pool_index * GROW_STEP + static_cast<std::ptrdiff_t>(query.second)] = false;
+ }
}
QueryCache::QueryCache(VideoCore::RasterizerInterface& rasterizer_, const Device& device_,