diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-09-27 01:52:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 01:52:49 +0200 |
commit | e5a1e0a76d831a6c6669aac6a31e692355bb9de5 (patch) | |
tree | 7e21101bd60f0ce7150933b9d5ec1383819b91ec /src/video_core | |
parent | Merge pull request #4703 from lioncash/desig7 (diff) | |
parent | vk_stream_buffer: Fix initializing Vulkan with NVIDIA on Linux (diff) | |
download | yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar.gz yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar.bz2 yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar.lz yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar.xz yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.tar.zst yuzu-e5a1e0a76d831a6c6669aac6a31e692355bb9de5.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_stream_buffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_stream_buffer.cpp b/src/video_core/renderer_vulkan/vk_stream_buffer.cpp index 5218c875b..1b59612b9 100644 --- a/src/video_core/renderer_vulkan/vk_stream_buffer.cpp +++ b/src/video_core/renderer_vulkan/vk_stream_buffer.cpp @@ -120,7 +120,8 @@ void VKStreamBuffer::CreateBuffers(VkBufferUsageFlags usage) { // Substract from the preferred heap size some bytes to avoid getting out of memory. const VkDeviceSize heap_size = memory_properties.memoryHeaps[preferred_heap].size; - const VkDeviceSize allocable_size = heap_size - 9 * 1024 * 1024; + // As per DXVK's example, using `heap_size / 2` + const VkDeviceSize allocable_size = heap_size / 2; buffer = device.GetLogical().CreateBuffer({ .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .pNext = nullptr, |