diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-20 00:09:56 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-04-29 00:46:31 +0200 |
commit | a16c2611316e534bda310f99319f4e8c74c49c92 (patch) | |
tree | 906e44bc1bfcd358ecf7510a99adff05394c2846 /src/video_core/renderer_vulkan/vk_buffer_cache.cpp | |
parent | Merge pull request #10051 from liamwhite/surface-capabilities (diff) | |
download | yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar.gz yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar.bz2 yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar.lz yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar.xz yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.tar.zst yuzu-a16c2611316e534bda310f99319f4e8c74c49c92.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_buffer_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index 9cbcb3c8f..510602e8e 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -314,8 +314,12 @@ StagingBufferRef BufferCacheRuntime::UploadStagingBuffer(size_t size) { return staging_pool.Request(size, MemoryUsage::Upload); } -StagingBufferRef BufferCacheRuntime::DownloadStagingBuffer(size_t size) { - return staging_pool.Request(size, MemoryUsage::Download); +StagingBufferRef BufferCacheRuntime::DownloadStagingBuffer(size_t size, bool deferred) { + return staging_pool.Request(size, MemoryUsage::Download, deferred); +} + +void BufferCacheRuntime::FreeDeferredStagingBuffer(StagingBufferRef& ref) { + staging_pool.FreeDeferred(ref); } u64 BufferCacheRuntime::GetDeviceLocalMemory() const { |