Replay: preserve batch ordering after unbatched indirect compute #644
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!644
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-644"
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?
@ANDREANIADS on GitHub · 2026-11-27 16:01 UTC · original
ANDREANIADS:fix-replay-indirect-batch-order→a-publier· +103 −0 · 1 files · 1 commits · openAn indirect compute execution whose argument buffer is not rewritten by
batch_clampscurrently falls through without settingwrittenordirty. A later clamp can then be added to an earlier batch, ahead of the compute work that produces its inputs, even across a global UAV barrier.Treat that execution like a direct dispatch for write tracking, while preserving the command unchanged. This is already reproducible on
a-publier@4eb6cfd; it addresses the ordering concern raised in #629 without depending on that PR or duplicating its plain/batched classification change.The new synthetic command-list regression checks 16 combinations: compute/graphics producer, with/without a global wait, dispatch/mesh-dispatch arguments, and normal/careful mode. It verifies batch counts, command preservation and the placement of the second batch after the producer and wait where required. Graphics controls retain their existing batching.
Validation on Windows with the pinned Rust 1.98.1 MSVC toolchain and unchanged Cargo.lock:
cargo test --locked -p victory-gpu --features diagnostics --lib replay:: -- --nocapture: 26 passed, 0 failed, 0 ignored.df14958alongside this fix: no patch conflict; the same replay suite passed 28 tests, including both PRs' regressions.cargo clippy --locked -p victory-gpu --features diagnostics --tests -- -D warnings: clean.cargo xtask policy: 271 files OK;git diff --check: clean.These are command-list/unit tests; no new hardware replay, game-performance or ray-tracing result is claimed. No game data was used.
Implemented and tested with Codex.
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.