mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 16:41:51 +01:00
Update megabuffer execution/sequence numbers after updating an allocation
This commit is contained in:
parent
4b2b6fc6e9
commit
b3cf9c40ba
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user