Upload only newest spectrum ring slot
This commit is contained in:
parent
07a7864944
commit
73140607a9
6 changed files with 24 additions and 18 deletions
|
|
@ -693,13 +693,13 @@ static int RunMimirSpectrumUploadSmoke()
|
|||
!validation.HasErrors &&
|
||||
!frame.Scene.SplineFrame.HasInput &&
|
||||
!frame.Scene.BufferFieldFrame.HasInput &&
|
||||
matchingUploads.Length == expectedHistoryCount &&
|
||||
matchingUploads.Length == 1 &&
|
||||
matchingResources.Length == 1 &&
|
||||
matchingRamps.Length == 1 &&
|
||||
matchingLowerings.Length == 4 &&
|
||||
matchingClaims.Length == matchingLowerings.Length &&
|
||||
matchingUploads.All(upload => upload.Version == resource.Version) &&
|
||||
matchingUploads.Sum(upload => upload.Float32Data.Count) == lowering.Width * expectedSourceLaneCapacity * expectedHistoryCount &&
|
||||
matchingUploads.Sum(upload => upload.Float32Data.Count) == lowering.Width * expectedSourceLaneCapacity &&
|
||||
matchingUploads.All(upload =>
|
||||
upload.Float32Data.Count == lowering.Width * expectedSourceLaneCapacity &&
|
||||
upload.ElementOffset >= 0 &&
|
||||
|
|
@ -707,9 +707,7 @@ static int RunMimirSpectrumUploadSmoke()
|
|||
matchingUploads.Select(upload => upload.ElementOffset).Order().SequenceEqual(
|
||||
new[]
|
||||
{
|
||||
0,
|
||||
lowering.Width * expectedSourceLaneCapacity * (expectedHistoryCapacity - 2),
|
||||
lowering.Width * expectedSourceLaneCapacity * (expectedHistoryCapacity - 1),
|
||||
}.Order()) &&
|
||||
resource.Kind == AquariumFieldResourceKind.StructuredBuffer &&
|
||||
resource.Residency == AquariumFieldResourceResidency.GpuResident &&
|
||||
|
|
|
|||
|
|
@ -280,8 +280,8 @@ public sealed class MimirRuntime : IAquariumRuntime
|
|||
var resourceColumnCapacity = checked(spectrumSourceLaneCapacity * SpectrumHistoryWindowCount);
|
||||
var newestHistorySlot = PositiveModulo(-historyFrames[0].Sequence, SpectrumHistoryWindowCount);
|
||||
var rollingOffset = checked(newestHistorySlot * spectrumSourceLaneCapacity);
|
||||
var resourceUploads = new List<AquariumFieldResourceUpload>(historyFrames.Length);
|
||||
for (var historyIndex = 0; historyIndex < historyFrames.Length; historyIndex++)
|
||||
var resourceUploads = new List<AquariumFieldResourceUpload>(1);
|
||||
for (var historyIndex = 0; historyIndex < Math.Min(1, historyFrames.Length); historyIndex++)
|
||||
{
|
||||
var historySlot = PositiveModulo(-historyFrames[historyIndex].Sequence, SpectrumHistoryWindowCount);
|
||||
var uploadColumnOffset = checked(historySlot * spectrumSourceLaneCapacity);
|
||||
|
|
|
|||
Loading…
Reference in a new issue