mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
vk: Scrap minimum scratch buffer size and just allocate what is requested.
This commit is contained in:
parent
7d3bbd3cf7
commit
de7ed1cbe9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue