mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 07:05:48 +00:00
Process VK_WHOLE_SIZE before marking memory as referenced
This commit is contained in:
@@ -812,8 +812,14 @@ VkResult WrappedVulkan::vkFlushMappedMemoryRanges(VkDevice device, uint32_t memR
|
||||
|
||||
if(capframe)
|
||||
{
|
||||
GetResourceManager()->MarkMemoryFrameReferenced(GetResID(pMemRanges[i].memory),
|
||||
pMemRanges[i].offset, pMemRanges[i].size,
|
||||
VkDeviceSize offs = pMemRanges[i].offset;
|
||||
VkDeviceSize size = pMemRanges[i].size;
|
||||
|
||||
// map VK_WHOLE_SIZE into a specific size
|
||||
if(size == VK_WHOLE_SIZE)
|
||||
size = state->mapOffset + state->mapSize - offs;
|
||||
|
||||
GetResourceManager()->MarkMemoryFrameReferenced(GetResID(pMemRanges[i].memory), offs, size,
|
||||
eFrameRef_CompleteWrite);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user