From de7ed1cbe9831e68b9ed4962073ea95d46f6edc0 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 20 Jul 2021 20:08:33 +0300 Subject: [PATCH] vk: Scrap minimum scratch buffer size and just allocate what is requested. --- rpcs3/Emu/RSX/VK/vkutils/scratch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/vkutils/scratch.cpp b/rpcs3/Emu/RSX/VK/vkutils/scratch.cpp index bb2966e4c6..d87edaaabd 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/scratch.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/scratch.cpp @@ -156,7 +156,7 @@ namespace vk if (!scratch_buffer) { // Choose optimal size - const u64 alloc_size = std::max(64 * 0x100000, utils::align(min_required_size, 0x100000)); + const u64 alloc_size = utils::align(min_required_size, 0x100000); scratch_buffer = std::make_unique(*g_render_device, alloc_size, g_render_device->get_memory_mapping().device_local, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,