fix: reuse free space in VIctory window upload slabs #323
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!323
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-323"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@mauroalvare on GitHub · 2026-11-26 03:02 UTC · original
mauroalvare:codex/victory-window-upload-tails→main· +182 −24 · 2 files · 1 commits · openChange
The transient-window upload path enabled by
tools/lancer_victory.ps1uses 16 MiB slabs. A request could switch to a new slab and leave space in the previous one. Further small requests could create dedicated D3D12 upload buffers even when earlier live slabs had free space.Keep a write cursor for each pooled slab. Try the current slab and then any other slab with room before creating a buffer. An empty slab can rewind, while a live slab can append after its reserved ranges.
Verification
Windows x64 MSVC debug builds on an RTX 5070 Ti with driver 621.40. Base
c4c93bdc413191a9dc909998d2d53080a3f0c880carried just the new test and its module registration.Run from
third_party/victory.Three fresh-process A/B pairs reproduced the base failing the overflow assertion and the fix passing. Both used the 32 MiB pool cap, six rounds of chunks up to 1 MiB, and the same generated byte pattern.
baseline-test.exe --test-threads=1fixed-test.exe --test-threads=1cargo test --locked --offline -j 2 -p victory-loader --test load_probecargo xtask policycargo test --release --manifest-path rust/Cargo.toml --locked --offline -j 1python -m pytest -rapython -m ruff check --select W605,F,E9 PrototypeScarlett tests toolsgit diff --checkThe full
victory-gpuruns used the two captured Cargo test binaries. The following assertions reproduced on both builds.descriptor::host::tests::spans_say_the_next_start_and_the_lowest_level_viewedgotNonewhere it expectedSome(1).indirect::tests::warp_card_fetch_copies_flagged_pieces_to_their_slotsgot0where it expected1in the first result slot on WARP.indirect::tests::warp_card_patch_writes_the_masked_bytes_and_no_othersreported the first differing offsets at 0 through 7 on WARP.Oracle and test data
The fixture writes a distinct value into every chunk, holds the chunks until the copy queue's fence completes, then compares the full readback to the generated bytes. D3D12 readback and fence documentation
Codex provided AI assistance with the investigation, implementation, and validation.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.