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

Open
github-bot wants to merge 2 commits from github-bot/gh-2143 into main AGit
Owner

@⁠CristianCiubancan on GitHub · 2026-11-29 09:56 UTC · original
CristianCiubancan:fix/diagnostics-build → main · +19 −3 · 3 files · 2 commits · open

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

**@⁠CristianCiubancan** on GitHub · 2026-11-29 09:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143) `CristianCiubancan:fix/diagnostics-build` → `main` · +19 −3 · 3 files · 2 commits · open 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)
cargo build --features diagnostics failed on main with nine errors in
victory-gpu: copystat.rs' line on trimmed windows (b520c0f4) used an mb()
that its function does not have, and in host.rs the local `timing` of
dc0c4b91 shadowed fn timing() for the three diagnostics-only calls after it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The host aliases render targets it places in shared heaps and records the
aliasing barriers. A replay makes some of the named resources committed,
and D3D12 refuses a list with such a barrier at Close (E_INVALIDARG): every
recording from main stopped with "a list of the frame could not be recorded
again". Such a barrier shares no memory here and is left out; those between
placed resources are replayed as before.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:01:20 +00:00
Author
Owner

@⁠CristianCiubancan on GitHub · 2026-11-29 10:43 UTC · original

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.

**@⁠CristianCiubancan** on GitHub · 2026-11-29 10:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143#issuecomment-7254630005) 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.
Author
Owner

@⁠Halfect on GitHub · 2026-11-29 11:12 UTC · original · approved these changes

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.

**@⁠Halfect** on GitHub · 2026-11-29 11:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2143#pullrequestreview-6102614394) · **approved these changes** 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 can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2143/head:github-bot/gh-2143'
git switch 'github-bot/gh-2143'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2143'
git switch 'github-bot/gh-2143'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2143'
git switch 'github-bot/gh-2143'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2143'
git switch 'main'
git merge --squash 'github-bot/gh-2143'
git switch 'main'
git merge --ff-only 'github-bot/gh-2143'
git switch 'main'
git merge 'github-bot/gh-2143'
git push origin 'main'
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/trustno1-coder--VIctory-NVIDIA!2143
No description provided.