Update megabuffer execution/sequence numbers after updating an allocation

This commit is contained in:
Billy Laws 2022-09-18 15:27:47 +01:00
parent 4b2b6fc6e9
commit b3cf9c40ba

View File

@ -298,6 +298,8 @@ namespace skyline::gpu {
// Use max(oldSize, newSize) to avoid redundant reallocations within an execution if a larger allocation comes along later
auto mirrorAllocationRegion{mirror.subspan(bufferEntryOffset, std::max(entryViewOffset + size, entry.allocation.region.size()))};
entry.allocation = allocator.Push(pCycle, mirrorAllocationRegion, true);
entry.executionNumber = executionNumber;
entry.sequenceNumber = sequenceNumber;
}
return {entry.allocation.buffer, entry.allocation.offset + entryViewOffset, size};