The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers #2143

Open
CristianCiubancan wants to merge 2 commits from upstream-pr/2143 into main
CristianCiubancan commented 2026-11-29 09:56:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CristianCiubancan on 2026-11-29T09:56:18Z.


Fixes: no issue filed.

What it changes

Two faults that together leave main without its frame recorder and replay.

  1. cargo build --features diagnostics fails on main (829188e9) with nine errors in victory-gpu: copystat.rs calls an mb() its function does not have (b520c0f4), and in host.rs a local named timing (dc0c4b91) shadows fn timing() for three diagnostics-only calls. Fixed with a local helper and self::timing().

  2. With that fixed, victory replay stops on every recording made on main: "a list of the frame could not be recorded again: The parameter is incorrect (0x80070057)". The recordings hold the aliasing barriers of VICTORY_ALIAS_TARGETS; the replay makes some of the resources they name committed, and D3D12 refuses the list at Close. An aliasing barrier that names a resource the replay did not place in a heap is now left out; the others are replayed as before.

How it was tested

  • GPU and profile: RTX 5070 Ti 16 GB, driver 610.88, Windows 11. Series X, 2560x1440, recordings with DLSS Quality and with DLSS off.
  • Before: the diagnostics build does not compile (9 errors). Built with the first fix alone, the replay fails on three recordings made today on e1f2eb60 and 4d98ca87.
  • After: the build compiles; all three recordings replay, and pixel traces, image dumps and listings work on them.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: victory-gpu with default features, 915 passed and 0 failed run with --test-threads=1. Run in parallel, one or two tests this does not touch fail on some runs, a different one each time (seen: watch::many_askers_tests::no_write_is_lost_when_faults_take_no_lock, host::card_steps::tests::places_written_after_sending_are_learned).

Seen while testing, not changed here:

  • With --all-features, compose::tests::bgrx_plane_selects_a_typed_view fails (view gives B8G8R8X8_UNORM for B8G8R8X8_UNORM_SRGB, the test expects the sRGB format). The test only exists in diagnostics builds, so it could not run while the build was broken.
  • CI's Clippy steps stop in victory-shader on main before they reach victory-gpu.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1994 and #2042 change when the host emits aliasing barriers; this only changes how the replay treats recorded ones.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549607647 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143). Originally posted by [CristianCiubancan](https://github.com/CristianCiubancan) on 2026-11-29T09:56:18Z. --- Fixes: no issue filed. ## What it changes Two faults that together leave main without its frame recorder and replay. 1. `cargo build --features diagnostics` fails on main (829188e9) with nine errors in victory-gpu: `copystat.rs` calls an `mb()` its function does not have (b520c0f4), and in `host.rs` a local named `timing` (dc0c4b91) shadows `fn timing()` for three diagnostics-only calls. Fixed with a local helper and `self::timing()`. 2. With that fixed, `victory replay` stops on every recording made on main: "a list of the frame could not be recorded again: The parameter is incorrect (0x80070057)". The recordings hold the aliasing barriers of `VICTORY_ALIAS_TARGETS`; the replay makes some of the resources they name committed, and D3D12 refuses the list at Close. An aliasing barrier that names a resource the replay did not place in a heap is now left out; the others are replayed as before. ## How it was tested - GPU and profile: RTX 5070 Ti 16 GB, driver 610.88, Windows 11. Series X, 2560x1440, recordings with DLSS Quality and with DLSS off. - Before: the diagnostics build does not compile (9 errors). Built with the first fix alone, the replay fails on three recordings made today on e1f2eb60 and 4d98ca87. - After: the build compiles; all three recordings replay, and pixel traces, image dumps and listings work on them. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: victory-gpu with default features, 915 passed and 0 failed run with `--test-threads=1`. Run in parallel, one or two tests this does not touch fail on some runs, a different one each time (seen: `watch::many_askers_tests::no_write_is_lost_when_faults_take_no_lock`, `host::card_steps::tests::places_written_after_sending_are_learned`). Seen while testing, not changed here: - With `--all-features`, `compose::tests::bgrx_plane_selects_a_typed_view` fails (`view` gives B8G8R8X8_UNORM for B8G8R8X8_UNORM_SRGB, the test expects the sRGB format). The test only exists in diagnostics builds, so it could not run while the build was broken. - CI's Clippy steps stop in victory-shader on main before they reach victory-gpu. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1994 and #2042 change when the host emits aliasing barriers; this only changes how the replay treats recorded ones. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CristianCiubancan commented 2026-11-29 10:43:50 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CristianCiubancan on 2026-11-29T10:43:50Z.


The failed check is main's, not this change: Clippy stops in victory-loader on unwind_copy being unused (crates/victory-loader/src/crash.rs:804), before it reaches the files this touches. #2019 fixes that; this should pass once it is in.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254630005 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143#issuecomment-7254630005). Originally posted by [CristianCiubancan](https://github.com/CristianCiubancan) on 2026-11-29T10:43:50Z. --- The failed check is main's, not this change: Clippy stops in victory-loader on `unwind_copy` being unused (crates/victory-loader/src/crash.rs:804), before it reaches the files this touches. #2019 fixes that; this should pass once it is in.
Halfect commented 2026-11-29 11:12:25 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Halfect on 2026-11-29T11:12:25Z.

Review: APPROVED


LGTM. The diagnostics-only build fixes address the exact missing mb helper and shadowed timing() calls. For replay, recording which resources were created without a heap placement and omitting aliasing barriers that name them is consistent with D3D12's placed-resource requirement, while placed-resource barriers remain unchanged.

Local before/after verification:

  • Base 829188e969ffd2907e5867c5d9aca29bd91cb1b6: cargo build --locked -p victory --features diagnostics fails with 9 errors, matching the reported copystat.rs and host.rs failures.
  • PR head e638aea940fa36a2cdf3b8417c3aed61414c419b: the same diagnostics build succeeds.
  • cargo test --locked -p victory-gpu --features diagnostics replay -- --test-threads=1: 30 passed, 0 failed, 1 ignored in the library replay filter (the ignored test requires a hardware D3D12 adapter), and the a_frame_is_recorded_and_replayed integration test passed.
  • git diff --check origin/main..HEAD: clean.

I did not use title recordings or claim verification of the separate normal-gameplay command-list Close() path.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102614394 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143#pullrequestreview-6102614394). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-29T11:12:25Z. **Review:** APPROVED --- LGTM. The diagnostics-only build fixes address the exact missing `mb` helper and shadowed `timing()` calls. For replay, recording which resources were created without a heap placement and omitting aliasing barriers that name them is consistent with D3D12's placed-resource requirement, while placed-resource barriers remain unchanged. Local before/after verification: - Base `829188e969ffd2907e5867c5d9aca29bd91cb1b6`: `cargo build --locked -p victory --features diagnostics` fails with **9 errors**, matching the reported `copystat.rs` and `host.rs` failures. - PR head `e638aea940fa36a2cdf3b8417c3aed61414c419b`: the same diagnostics build **succeeds**. - `cargo test --locked -p victory-gpu --features diagnostics replay -- --test-threads=1`: **30 passed, 0 failed, 1 ignored** in the library replay filter (the ignored test requires a hardware D3D12 adapter), and the `a_frame_is_recorded_and_replayed` integration test **passed**. - `git diff --check origin/main..HEAD`: clean. I did not use title recordings or claim verification of the separate normal-gameplay command-list `Close()` path.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2143:upstream-pr/2143'
git switch 'upstream-pr/2143'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2143'
git switch 'upstream-pr/2143'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2143'
git switch 'upstream-pr/2143'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2143'
git switch 'main'
git merge --squash 'upstream-pr/2143'
git switch 'main'
git merge --ff-only 'upstream-pr/2143'
git switch 'main'
git merge 'upstream-pr/2143'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!2143
No description provided.