update parallel rdp

This commit is contained in:
Logan McNaughton
2022-12-20 09:32:55 -05:00
parent 06a962d607
commit 08a78f6073
46 changed files with 1896 additions and 631 deletions
@@ -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;
}