summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <lat9nq@virginia.edu>2020-09-25 23:42:59 +0200
committerlat9nq <lat9nq@virginia.edu>2020-09-25 23:42:59 +0200
commitca26fd0f4297bc5cdf495c5304ed0bd9737f40b2 (patch)
tree9663ee60c06345e55d242fa71bdf204ecf8c4346 /src
parentMerge pull request #4717 from lioncash/debug (diff)
downloadyuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar.gz
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar.bz2
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar.lz
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar.xz
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.tar.zst
yuzu-ca26fd0f4297bc5cdf495c5304ed0bd9737f40b2.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_stream_buffer.cpp3
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,