summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-18 22:02:54 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-19 00:03:19 +0100
commitb6b2e31e5e83addbe6fb3c945624bbe8726fdadf (patch)
tree6a9d2e655a648a106e758514738a37e9a219cc13 /src/video_core
parentvk_rasterizer: Remove unused variable (diff)
downloadyuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.gz
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.bz2
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.lz
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.xz
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.zst
yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
index d9ea3cc21..374959f82 100644
--- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
@@ -100,7 +100,6 @@ void VKStagingBufferPool::ReleaseCache(bool host_visible) {
}
u64 VKStagingBufferPool::ReleaseLevel(StagingBuffersCache& cache, std::size_t log2) {
- static constexpr u64 epochs_to_destroy = 180;
static constexpr std::size_t deletions_per_tick = 16;
auto& staging = cache[log2];
@@ -108,6 +107,7 @@ u64 VKStagingBufferPool::ReleaseLevel(StagingBuffersCache& cache, std::size_t lo
const std::size_t old_size = entries.size();
const auto is_deleteable = [this](const auto& entry) {
+ static constexpr u64 epochs_to_destroy = 180;
return entry.last_epoch + epochs_to_destroy < epoch && !entry.watch.IsUsed();
};
const std::size_t begin_offset = staging.delete_index;