The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers #2143
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2143
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2143"
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?
@CristianCiubancan on GitHub · 2026-11-29 09:56 UTC · original
CristianCiubancan:fix/diagnostics-build→main· +19 −3 · 3 files · 2 commits · openFixes: no issue filed.
What it changes
Two faults that together leave main without its frame recorder and replay.
cargo build --features diagnosticsfails on main (829188e9) with nine errors in victory-gpu:copystat.rscalls anmb()its function does not have (b520c0f4), and inhost.rsa local namedtiming(dc0c4b91) 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
e1f2eb60and4d98ca87.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
@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_copybeing 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 on GitHub · 2026-11-29 11:12 UTC · original · approved these changes
LGTM. The diagnostics-only build fixes address the exact missing
mbhelper and shadowedtiming()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:
829188e969ffd2907e5867c5d9aca29bd91cb1b6:cargo build --locked -p victory --features diagnosticsfails with 9 errors, matching the reportedcopystat.rsandhost.rsfailures.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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.