diff options
| author | 2020-03-18 18:02:54 -0300 | |
|---|---|---|
| committer | 2020-03-18 20:03:19 -0300 | |
| commit | b6b2e31e5e83addbe6fb3c945624bbe8726fdadf (patch) | |
| tree | 6a9d2e655a648a106e758514738a37e9a219cc13 /src | |
| parent | vk_rasterizer: Remove unused variable (diff) | |
| download | yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.gz yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.tar.xz yuzu-b6b2e31e5e83addbe6fb3c945624bbe8726fdadf.zip | |
vk_staging_buffer_pool: Silence unused constant warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | 2 |
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) { | |||
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | u64 VKStagingBufferPool::ReleaseLevel(StagingBuffersCache& cache, std::size_t log2) { | 102 | u64 VKStagingBufferPool::ReleaseLevel(StagingBuffersCache& cache, std::size_t log2) { |
| 103 | static constexpr u64 epochs_to_destroy = 180; | ||
| 104 | static constexpr std::size_t deletions_per_tick = 16; | 103 | static constexpr std::size_t deletions_per_tick = 16; |
| 105 | 104 | ||
| 106 | auto& staging = cache[log2]; | 105 | auto& staging = cache[log2]; |
| @@ -108,6 +107,7 @@ u64 VKStagingBufferPool::ReleaseLevel(StagingBuffersCache& cache, std::size_t lo | |||
| 108 | const std::size_t old_size = entries.size(); | 107 | const std::size_t old_size = entries.size(); |
| 109 | 108 | ||
| 110 | const auto is_deleteable = [this](const auto& entry) { | 109 | const auto is_deleteable = [this](const auto& entry) { |
| 110 | static constexpr u64 epochs_to_destroy = 180; | ||
| 111 | return entry.last_epoch + epochs_to_destroy < epoch && !entry.watch.IsUsed(); | 111 | return entry.last_epoch + epochs_to_destroy < epoch && !entry.watch.IsUsed(); |
| 112 | }; | 112 | }; |
| 113 | const std::size_t begin_offset = staging.delete_index; | 113 | const std::size_t begin_offset = staging.delete_index; |