mirror of
https://github.com/simple64/simple64.git
synced 2026-09-07 04:42:43 +02:00
update parallel rdp
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "memory_allocator.hpp"
|
||||
#include "timeline_trace_file.hpp"
|
||||
#include "device.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
@@ -697,7 +698,11 @@ bool DeviceAllocator::internal_allocate(
|
||||
}
|
||||
|
||||
VkDeviceMemory device_memory;
|
||||
VkResult res = table->vkAllocateMemory(device->get_device(), &info, nullptr, &device_memory);
|
||||
VkResult res;
|
||||
{
|
||||
GRANITE_SCOPED_TIMELINE_EVENT_FILE(device->get_system_handles().timeline_trace_file, "vkAllocateMemory");
|
||||
res = table->vkAllocateMemory(device->get_device(), &info, nullptr, &device_memory);
|
||||
}
|
||||
|
||||
// If we're importing, make sure we consume the native handle.
|
||||
if (external && bool(*external) &&
|
||||
@@ -736,7 +741,11 @@ bool DeviceAllocator::internal_allocate(
|
||||
{
|
||||
table->vkFreeMemory(device->get_device(), block_itr->memory, nullptr);
|
||||
heap.size -= block_itr->size;
|
||||
res = table->vkAllocateMemory(device->get_device(), &info, nullptr, &device_memory);
|
||||
{
|
||||
GRANITE_SCOPED_TIMELINE_EVENT_FILE(device->get_system_handles().timeline_trace_file,
|
||||
"vkAllocateMemory");
|
||||
res = table->vkAllocateMemory(device->get_device(), &info, nullptr, &device_memory);
|
||||
}
|
||||
++block_itr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user