draw: clear the host tracking when the host list or its epoch changed #2305
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2305"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Wazzabeee on 2026-11-29T11:39:32Z.
Fixes #2237
What it changes
State::host_rootsandhost_pipelinetrack what the host list already has bound, so a pipeline whose root signature is already set does not recordSet*RootSignatureagain. Since815f58cshares root signature objects between pipelines, that skip fires between different PSOs too, and its correctness now depends on the tracking being valid for the list being recorded.The tracking was valid for one recording of one host list, but no path cleared it when another host list began a recording, or when the same host list was reset and began a new one. A pipeline whose signature the previous recording bound then skipped the set on a list that had none, and the driver refused the list at
Close(0x80070057). Host lists are new every submission (HostList::leave_open,crate::list::detach), so the stale window opens and closes with which pipeline draws first on a fresh list, which matches how intermittent the crash is on the issue.The tracking is now anchored to the host list's address and its
epoch, whichHostList::resetrenews for each new recording. When either changes, the tracking is cleared inprepare_for, and the next draw sets the signature, heaps and pipeline again. The skip stays for the recording it was made for, so pipelines that share a signature still record one set between them (thecs1 -> cs2 -> cs1behaviour the tests of815f58cassert is unchanged).How it was tested
829188e),a host command list did not close (0x80070057)at the same scene, 5 crashes over the day (release and diagnostics builds), plus one from another machine on the issue.VICTORY_ROOT_CACHE=0(the dedup off, as before815f58c) stopped it here, which pointed at this path.0x80070057.cargo test -p victory-gpu --lockedon this branch: 912 passed, 3 failed (theambient::testsones, which fail the same way on unmodifiedmainhere; awatchtiming test is also flaky onmainand passed or failed the same way on both).cargo testpassed for the crates it touches: partly, see above (pre-existing failures only, identical onmain).Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Wazzabeee on 2026-11-29T12:24:22Z.
Update on the game validation: about 20 minutes of play on a locally built release with the fix, on the faulty config (root cache on, no workaround switches), past the crash scene and deeper into the world. No crash, and the run log has no
0x80070057.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Creaa on 2026-11-29T14:06:35Z.
Test report: this fixes the
0x80070057(a host command list did not close) crash here.Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB, Windows 11 26300. Release build,
scripts\play-foxhound.ps1 -FrameGen, Series X, DLSS Quality,VICTORY_NATIVE_SIZE=2560x1440(32:9 monitor),VICTORY_HELD_FRAME_MS=15000. Shaders and pipelines preloaded on829188e9before both runs.829188e9a host command list did not close (0x80070057), then a crash, about 2 min into the world (same as #2237)829188e9+ this PR (deee533a)did not closelineSame save and the same part of the story in both runs.
Not tested: longer sessions, Series S, other GPUs. Frame generation was switched off in F1 partway through the second run because of the frame generation grain (#1917); that does not touch this PR's path.
AI use: Claude Code (Claude Opus 5.5) built both, read the logs and wrote this; I played both runs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-29T16:12:37Z.
Another confirmation, on an RTX 3060 12 GB (Ampere, 32-lane waves), Ryzen 7 5700X, 32 GB, Windows 11.
Build:
829188eplus this PR, plus local changes away from the list path (the loader withoutconsole_insn, #961VICTORY_AMBIENT_LEAN, and a change of ours to two texture lookups). Series S, DLSS Quality preset K, FSR 3 frame generation 2x, RT off, root cache on (noVICTORY_ROOT_CACHE=0).a host command list did not close (0x80070057)about 25 minutes in, during the boat mission (log details in #2237).0x80070057in the log.Posted by Claude Code on behalf of the machine's owner.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-30T05:16:32Z.
Review: APPROVED
Tested locally merged onto
main(41adb551).crates/victory-gpu/src/draw.rs.cargo test -p victory-gpu --lib draw::passed (25 passed; 0 failed; 2 ignored) with 0 new warnings.Clean guard clearing cached host-list state tracking when the underlying host list or epoch changes. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-11-30T12:44:47Z.
Tested on top of v2026.11.29.05 (merges cleanly, builds) against #2237's crash, on an unattended replay bench: same save restored before every run, controller input played back with
VICTORY_INPUT_REPLAY, release build, Series X 1440p, DLSS Quality, FG off, RT off, Ryzen 7 9800X3D + RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11."list close" is
a host command list did not close (0x80070057), "device lost" isrelay: the device was lost. Runs include the warm-up runs, as only crashes are counted here; one #3792 launch that ended after 3 s is left out.Most of the crashes, with and without it, come at the same second, about one second after the masked twin
[mesh 480d53fc48107a50, pixel f41ec9d9437c021c-mask]is made at the prison -> plane cutscene cut. At the cut and at +2:37 it is 8 of 36 runs with this PR and 14 of 41 without; with these counts that difference is within chance. So on this route it doesn't make the crash go away. That doesn't say the tracking fix is wrong, only that something else also produces the invalid command there. The +6:00 stops may come from runs where the replay had left the route. Details and timings in #2237.Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.