Repository navigation
The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers - #2143
The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers#2143CristianCiubancan wants to merge 2 commits into
Conversation
…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>
|
The failed check is main's, not this change: Clippy stops in victory-loader on |
Halfect
left a comment
There was a problem hiding this comment.
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 diagnosticsfails with 9 errors, matching the reportedcopystat.rsandhost.rsfailures. - 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 thea_frame_is_recorded_and_replayedintegration 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.
… again, and the frame replay plays recordings with aliasing barriers) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes: no issue filed.
What it changes
Two faults that together leave main without its frame recorder and replay.
cargo build --features diagnosticsfails on main (829188e) with nine errors in victory-gpu:copystat.rscalls anmb()its function does not have (b520c0f), and inhost.rsa local namedtiming(dc0c4b9) shadowsfn timing()for three diagnostics-only calls. Fixed with a local helper andself::timing().With that fixed,
victory replaystops 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 ofVICTORY_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
cargo testpassed 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:
--all-features,compose::tests::bgrx_plane_selects_a_typed_viewfails (viewgives 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.Checked for overlap
🤖 Generated with Claude Code