summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorGravatar ameerj2023-05-27 21:46:15 -0400
committerGravatar ameerj2023-05-28 00:38:46 -0400
commit642c14f0c7ee71f1f4daa50cee84ec9143697af6 (patch)
tree864fae9c9389790e87f8f63341c89e09f6fed5bc /src/video_core/renderer_vulkan
parentMerge pull request #10414 from liamwhite/anv-push-descriptor (diff)
downloadyuzu-642c14f0c7ee71f1f4daa50cee84ec9143697af6.tar.gz
yuzu-642c14f0c7ee71f1f4daa50cee84ec9143697af6.tar.xz
yuzu-642c14f0c7ee71f1f4daa50cee84ec9143697af6.zip
OpenGL: Make use of persistent buffer maps in buffer cache downloads
Persistent buffer maps were already used by the texture cache, this extends their usage for the buffer cache. In my testing, using the memory maps for uploads was slower than the existing "ImmediateUpload" path, so the memory map usage is limited to downloads for the time being.
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.h b/src/video_core/renderer_vulkan/vk_buffer_cache.h
index 5e9602905..b1f3c071f 100644
--- a/src/video_core/renderer_vulkan/vk_buffer_cache.h
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache.h
@@ -157,6 +157,7 @@ struct BufferCacheParams {
157 static constexpr bool USE_MEMORY_MAPS = true; 157 static constexpr bool USE_MEMORY_MAPS = true;
158 static constexpr bool SEPARATE_IMAGE_BUFFER_BINDINGS = false; 158 static constexpr bool SEPARATE_IMAGE_BUFFER_BINDINGS = false;
159 static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = true; 159 static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = true;
160 static constexpr bool USE_MEMORY_MAPS_FOR_UPLOADS = true;
160}; 161};
161 162
162using BufferCache = VideoCommon::BufferCache<BufferCacheParams>; 163using BufferCache = VideoCommon::BufferCache<BufferCacheParams>;