gpu(host): avoid temporary submission write-list clones #197

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

@⁠Androtim on GitHub · 2026-11-30 03:52 UTC · original
Androtim:feat/iter194-host-avoid-submission-writes-clone → main · +4 −2 · 1 files · 1 commits · closed without merging

Summary

  • Collects deferred.writes alongside deferred.texture_backs in a single pass over runs inside Host::submit instead of locking list.deferred() twice and allocating temporary per-list Vec clones.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host:: -- --test-threads=1
  • 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 03:52 UTC · [original](https://github.com/Androtim/MiniVI/pull/197) `Androtim:feat/iter194-host-avoid-submission-writes-clone` → `main` · +4 −2 · 1 files · 1 commits · closed without merging ### Summary - Collects `deferred.writes` alongside `deferred.texture_backs` in a single pass over `runs` inside `Host::submit` instead of locking `list.deferred()` twice and allocating temporary per-list `Vec` clones. ### Verification - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host:: -- --test-threads=1` - `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:41 +00:00
github-bot closed this pull request 2026-12-01 20:17:41 +00:00
Author
Owner

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

Automated triage for the maintainers (not an approval).

Verdict: needs-work · CI (check): failing

Review Summary

The change in crates/victory-gpu/src/host.rs (Host::submit, late-submission path) is small and logically sound:

  • Combines the two passes over runs into a single loop, acquiring list.deferred() once per list instead of twice.
  • Replaces runs.iter().flat_map(|l| l.deferred().writes.clone()).collect() with writes.extend_from_slice(&deferred.writes), avoiding temporary per-list Vec allocations while preserving identical element ordering and lock granularity.

However, CI is currently failing, so this PR cannot be marked as a merge candidate yet.

To change the verdict:

  • Investigate and resolve the failing CI check(s) so that CI passes cleanly (and rebase if the failure is due to drift against main). Once CI is green, this change looks ready as a merge candidate without requiring a local GPU test.

Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 06:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/197#issuecomment-7270249925) <!-- minivi-triage v1 head=4d37c770618c8081826c8f312c53b5dd0a8a0d1d verdict=needs-work ci=failing at=2026-11-30T06:03:20Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-work` · **CI (`check`):** `failing` ### Review Summary The change in `crates/victory-gpu/src/host.rs` (`Host::submit`, late-submission path) is small and logically sound: - Combines the two passes over `runs` into a single loop, acquiring `list.deferred()` once per list instead of twice. - Replaces `runs.iter().flat_map(|l| l.deferred().writes.clone()).collect()` with `writes.extend_from_slice(&deferred.writes)`, avoiding temporary per-list `Vec` allocations while preserving identical element ordering and lock granularity. However, CI is currently **failing**, so this PR cannot be marked as a merge candidate yet. ### To change the verdict: - Investigate and resolve the failing CI check(s) so that CI passes cleanly (and rebase if the failure is due to drift against `main`). Once CI is green, this change looks ready as a merge candidate without requiring a local GPU test. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

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

Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

**@⁠Androtim** on GitHub · 2026-12-01 01:39 UTC · [original](https://github.com/Androtim/MiniVI/pull/197#issuecomment-7297741344) Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

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!197
No description provided.