diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-10-01 17:40:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 17:40:13 +0200 |
commit | a0d56c855cf816b0e47d1faefdd9d201321aa7fb (patch) | |
tree | 94af3dae4c1241a463e5e3594ce57e97f0ba1586 /src | |
parent | Merge pull request #11493 from merryhime/evt (diff) | |
parent | Query Cache: Fix memory leak. (diff) | |
download | yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar.gz yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar.bz2 yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar.lz yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar.xz yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.tar.zst yuzu-a0d56c855cf816b0e47d1faefdd9d201321aa7fb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/query_cache/bank_base.h | 1 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/query_cache/bank_base.h b/src/video_core/query_cache/bank_base.h index 420927091..44769ea97 100644 --- a/src/video_core/query_cache/bank_base.h +++ b/src/video_core/query_cache/bank_base.h @@ -82,6 +82,7 @@ public: size_t new_index = bank_indices.front(); bank_indices.pop_front(); bank_pool[new_index].Reset(); + bank_indices.push_back(new_index); return new_index; } size_t new_index = bank_pool.size(); diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index 17b2587ad..2edaafa7e 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp @@ -506,6 +506,7 @@ private: SetAccumulationValue(query->value); Free(index); }); + rasterizer->SyncOperation(std::move(func)); } template <bool is_resolve> |