gpu(send): size unkept upload buffers to exact 64 KiB alignment #201

Closed
github-bot wants to merge 1 commit from gh-pr/201/head into gh-pr/201/base
Owner

@⁠Androtim on GitHub · 2026-11-30 05:27 UTC · original
Androtim:feat/iter198-send-exact-unkept-size → main · +34 −3 · 1 files · 1 commits · closed without merging

Summary

  • Extract made_size(size, kept) in victory-gpu/src/host/send.rs so upload buffers within the spare retention budget continue rounding up by powers of two from 8 MiB for reuse, while one-off sends larger than kept (e.g., 1–2+ GiB world-load submissions) round to exact 64 KiB placement steps instead of doubling to 4 GiB where single D3D12 upload buffers fail with E_OUTOFMEMORY.
  • Add unit test a_send_past_what_is_kept_is_made_at_its_own_size covering retained power-of-two sizing, exact 64 KiB rounding above kept, and reduced kept budgets.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host::send:: -- --test-threads=1
  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings
**@⁠Androtim** on GitHub · 2026-11-30 05:27 UTC · [original](https://github.com/Androtim/MiniVI/pull/201) `Androtim:feat/iter198-send-exact-unkept-size` → `main` · +34 −3 · 1 files · 1 commits · closed without merging ## Summary - Extract `made_size(size, kept)` in `victory-gpu/src/host/send.rs` so upload buffers within the spare retention budget continue rounding up by powers of two from 8 MiB for reuse, while one-off sends larger than `kept` (e.g., 1–2+ GiB world-load submissions) round to exact 64 KiB placement steps instead of doubling to 4 GiB where single D3D12 upload buffers fail with `E_OUTOFMEMORY`. - Add unit test `a_send_past_what_is_kept_is_made_at_its_own_size` covering retained power-of-two sizing, exact 64 KiB rounding above `kept`, and reduced `kept` budgets. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host::send:: -- --test-threads=1` - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:17:59 +00:00
github-bot closed this pull request 2026-12-01 20:17:59 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 08:41 UTC · original

GitHub reports merge conflicts against current main after Wave 6 merged. Please rebase onto latest main.

**@⁠Androtim** on GitHub · 2026-11-30 08:41 UTC · [original](https://github.com/Androtim/MiniVI/pull/201#issuecomment-7273215574) GitHub reports merge conflicts against current `main` after Wave 6 merged. Please rebase onto latest `main`.
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 09:02 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 09:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/201#issuecomment-7273658626) <!-- minivi-triage v1 head=c6c1bf89185f6bf75fbb9ce59993869db7c16386 verdict=needs-rebase ci=passing at=2026-11-30T09:02:53Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:38 UTC · original

Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).

**@⁠Androtim** on GitHub · 2026-12-01 01:38 UTC · [original](https://github.com/Androtim/MiniVI/pull/201#issuecomment-7297724220) Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!201
No description provided.