mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-24 03:31:48 +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
|
// 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()))};
|
auto mirrorAllocationRegion{mirror.subspan(bufferEntryOffset, std::max(entryViewOffset + size, entry.allocation.region.size()))};
|
||||||
entry.allocation = allocator.Push(pCycle, mirrorAllocationRegion, true);
|
entry.allocation = allocator.Push(pCycle, mirrorAllocationRegion, true);
|
||||||
|
entry.executionNumber = executionNumber;
|
||||||
|
entry.sequenceNumber = sequenceNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {entry.allocation.buffer, entry.allocation.offset + entryViewOffset, size};
|
return {entry.allocation.buffer, entry.allocation.offset + entryViewOffset, size};
|
||||||
|
Loading…
Reference in New Issue
Block a user