Keep constant buffers in placed-copy order #340
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/340"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T17:49:10Z.
Take a GPU snapshot when a draw reads constants written by an earlier placed copy. Reuse it within the command list until another write overlaps the same bytes.
Enable this path with
VICTORY_PLACED_CONSTANTS=1.Windows workspace tests and Clippy passed. Two D3D12 readbacks checked the value between successive copies and the CPU bytes around a partial copy. I also tested the option in a short Series S run at 3840×2160 with DLSS Quality and 2× frame generation.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T17:49:23Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
cf2a965cf2a965ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T17:51:18Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
cf2a9655a0ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T17:51:19Z.
Code review location:
crates/victory-gpu/src/draw.rs; line 4250With
VICTORY_PLACED_CONSTANTS=1, a sequence of placed copy A → draw → overlapping placed copy B → draw using the same descriptor table keeps binding A's GPU snapshot.State::tablescaches tables by descriptor words, and its existing-table branch reuses the original slots without processing CBVs again, even whenlist.epoch()changes. Consequently, invalidatingconstant_valuesdoes not cause this new snapshot path to run for the second draw. Make snapshot-backed table reuse depend on the relevant write version and allocate new descriptor slots after invalidation so earlier draws retain their original snapshots. The added readback tests callsnapshot_placed_constantsdirectly, so they do not exercise this binding path.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:06:53Z.
Code review location:
crates/victory-gpu/src/draw.rs; line 4250The current table reuse path still needs an end-to-end check with two overlapping placed writes and two draws using the same table. An epoch change alone is not sufficient if the cached CBV slots survive it. Snapshot-backed tables must get new slots without changing descriptors used by earlier draws.