vk: Scrap minimum scratch buffer size and just allocate what is requested.

This commit is contained in:
kd-11 2021-07-20 20:08:33 +03:00 committed by kd-11
parent 7d3bbd3cf7
commit de7ed1cbe9
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace vk
if (!scratch_buffer)
{
// Choose optimal size
const u64 alloc_size = std::max<u64>(64 * 0x100000, utils::align(min_required_size, 0x100000));
const u64 alloc_size = utils::align(min_required_size, 0x100000);
scratch_buffer = std::make_unique<vk::buffer>(*g_render_device, alloc_size,
g_render_device->get_memory_mapping().device_local, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,