Skip to content

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

Open
CristianCiubancan wants to merge 2 commits into
trustno1-coder:mainfrom
CristianCiubancan:fix/diagnostics-build
Open

CristianCiubancan wants to merge 2 commits into
trustno1-coder:mainfrom
CristianCiubancan:fix/diagnostics-build

Conversation

@CristianCiubancan

Copy link
Copy Markdown
Contributor

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 (829188e) with nine errors in victory-gpu: copystat.rs calls an mb() its function does not have (b520c0f), and in host.rs a local named timing (dc0c4b9) 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 e1f2eb6 and 4d98ca8.
  • 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

🤖 Generated with Claude Code

CristianCiubancan and others added 2 commits November 29, 2026 11:56
…d timing()

cargo build --features diagnostics failed on main with nine errors in
victory-gpu: copystat.rs' line on trimmed windows (b520c0f) used an mb()
that its function does not have, and in host.rs the local `timing` of
dc0c4b9 shadowed fn timing() for the three diagnostics-only calls after it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…left out

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 <noreply@anthropic.com>
@github-actions github-actions Bot added the pr-diagnostics Pull request: adds logging, counters or tools label Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-diagnostics] The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers Nov 29, 2026
@CristianCiubancan

Copy link
Copy Markdown
Contributor Author

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 Halfect left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-diagnostics Pull request: adds logging, counters or tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants