From 1c7d106aacccbabd6551ce3882ac1acfa1b14fca Mon Sep 17 00:00:00 2001
From: lat9nq <lat9nq@virginia.edu>
Date: Thu, 9 Jul 2020 21:28:32 -0400
Subject: [PATCH] vk_stream_buffer: set allocable_size to 9 MiB

This solves the crash on Linux systems running the current Linux Long Lived branch nVidia driver.
---
 src/video_core/renderer_vulkan/vk_stream_buffer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_core/renderer_vulkan/vk_stream_buffer.cpp b/src/video_core/renderer_vulkan/vk_stream_buffer.cpp
index 868447af22..2d28a6c470 100644
--- a/src/video_core/renderer_vulkan/vk_stream_buffer.cpp
+++ b/src/video_core/renderer_vulkan/vk_stream_buffer.cpp
@@ -121,7 +121,7 @@ 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 - 4 * 1024 * 1024;
+    const VkDeviceSize allocable_size = heap_size - 9 * 1024 * 1024;
 
     VkBufferCreateInfo buffer_ci;
     buffer_ci.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;