Fix GPU hangs, memory leak, and mesh shader exports; render intro cre… #458
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/458"
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 Marvisak/VIctory. Originally posted by techselect on 2026-11-24T03:40:44Z.
…dit text
This change stabilizes world loading and enables rendering intro credit text in GTA VI:
Mesh Shader Output Clamping:
Command List Slicing & TDR Watchdog Reset:
60GB Memory Leak Resolution:
Shared Buffer State Collision Resolution:
Indirect Draw Barrier Desynchronization Fix:
Discrete GPU Selection & DRED in Release:
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T03:43:33Z.
Built
360f382forx86_64-pc-windows-msvc(release) and ran the suites under Wine 11.22 on Arch Linux x86_64:victory-gpu: 44 passed, 0 failed, 1 ignored.victory-hle: 85 passed, 1 failed — onlymodules::net::tests::only_loopback_is_reachable(known WineWSAConnectByListgap, #217).victory-shader: 62 passed, 7 failed — exactly the 7 VALU tests that fail onmaintoo (“neither hardware nor WARP SM 6.6 device available”); this prefix cannot exercise them.So the tree compiles and the synthetic suites do not regress. The claims that need the title — WARP
0xC0000005onDispatchMesh, the TDR watchdog, the 60 GB leak, intro credits — are not verifiable here (no game data), and the DRED/GPU-selection changes are not covered by a test.Coordination: this is a 14-file PR mixing independent fixes.
git merge-treeagainst other open work:crates/victory-gpu/src/resource.rs.Splitting by subsystem would make both the mesh and the memory-leak parts reviewable.
valu_testspass on hardware #473Imported from Marvisak/VIctory. Originally posted by techselect on 2026-11-24T03:54:35Z.
Booted into prologue but lacking models
Imported from Marvisak/VIctory. Originally posted by techselect on 2026-11-24T04:19:01Z.
Imported from Marvisak/VIctory. Originally posted by KingKaom on 2026-11-24T04:23:40Z.
Tested
360f382on the RX 9070 XT box from my #304 confirmation (9800X3D, Win11 26300, driver 32.0.32029.2010). Still faults entering the world (~15 s of dark-scene frames) — but the DRED with breadcrumbs now names the victim, and one number is striking:op 5=ExecuteIndirectkind 2 (max 1),compute cabb87599722e59a, five queued indirect args in flight on the same compute pipeline.0x8000037c3000. Onmainmy baseline crashes reported0x8000037d1000— across two builds, several runs and different list counts, the fault always lands within 56 KB of0x8000037c0000, while the title-memory and heap base addresses around it shuffle run to run. So the bad read is not a wild index — it consistently targets one stable mapping around0x8000_037c_0000, which reads like a fixed-offset overrun of one specific buffer rather than random descriptor garbage.u-slot heap reads resolving to null descriptors (u4 … [heap 333264: null],u5 … [heap 682765: null]), consistent with reads landing past the made slots.The guard change may have moved the fault off the mesh exports (this death is a compute indirect, not a DispatchMesh) without removing the underlying bad read. Happy to run anything on this box — the near-constant fault VA may be the sharpest lead in this whole thing.
Imported from Marvisak/VIctory. Originally posted by miniongk on 2026-11-24T05:15:50Z.
Tested
360f382on an RTX 5080, driver 621.24, Windows 11 26300, using a local Xbox Series 1.0.2.1 copy.cargo test --workspace: 264 passed, 0 failed, 4 ignored.DXGI_ERROR_DEVICE_HUNG; DRED again implicated indirect execution and mesh dispatch.So this does not resolve #97 on my hardware as a standalone change. A combination test would be needed to separate the mesh guard from the other fixes. Only aggregate counts and error classes shared. AI-assisted (Kimi Code).
Imported from Marvisak/VIctory. Originally posted by miniongk on 2026-11-24T05:28:50Z.
Combination follow-up on the RTX 5080 / 621.24 setup:
360f382combined with #413, #320, #483, #89 and #137 on the local 1.0.2.1 copy.The resource/watch overlaps were resolved locally so LRU eviction also advances the bindless invalidation epoch.
cargo test --workspacepassed: 292 passed, 0 failed, 4 ignored. On the real title path, host-pipeline refusals, packed-format texture failures and the old readback warning were all zero. No host device was removed, but the title later reached the same explicit null-write fatal path seen with #413.This is not a world-stability fix on my setup. Only aggregate counts and error classes shared. AI-assisted (Kimi Code).
Imported from Marvisak/VIctory. Originally posted by Mesrine67 on 2026-11-24T05:42:50Z.
Local validation on Windows 11 with an AMD Radeon RX 6750 XT (driver 32.0.21045.29003), against PR head 360f382:
cargo build --release --locked -p victorypassed.These are unit, D3D12-device, build, and loader-preparation checks; they do not test title execution or world rendering.
Full logs as downloadable files are in a public diagnostics branch, separate from the PR diff: log index · workspace tests · D3D12 hardware check · original preflight · latest shader tests · latest Clippy · merged-source preflight · launch blocker checks.
Sync update (2026-11-24): Marvisak/VIctory
mainand my fork’smainare both at ffe310e. Conflict-resolution merge e06a73a is pushed to my fork’sfix/intro-credits-rendering-stabilitybranch. PR #458 still points totechselect/VIctoryat360f382; push to that source repository was denied, so the PR itself remains unchanged.On the merged source, the shader suite passed (120 passed, 1 ignored), Clippy passed, and the diagnostic build/preflight resolved all imports. The title entry point was not executed: Defender history reports the supplied EXE as
Trojan:Win32/MalUri.A!cl, and Windows Sandbox is unavailable on this host.Imported from Marvisak/VIctory. Originally posted by claude-GTA6 on 2026-11-24T06:01:40Z.
From a tester working with Claude (AI-assisted); measured on my own machine.
Combined with the buffer-state tracker this PR adds,
ExecuteIndirectreads its arguments from a buffer inUNORDERED_ACCESSstate.Seen: RTX 5090 (621.24), diag build with
VICTORY_D3D12_DEBUG=1, world of the first mission. In one run the debug layer printed 347 lines of this:Why:
indirect::boundclamps the records, then moves the shadow to generic read.prepare/bindfollow. If the draw's own shaders write the same title buffer,readablemoves the shadow back to UAV. Here the buffer is one 174 MB pool that holds both the arguments and what the shaders write.ExecuteIndirectthen reads arguments from a buffer in UAV state.A buffer can't be in the indirect-argument and UAV states at the same time, so no barrier ordering fixes this.
Fix:
HostList::indirect_copycopies the clamped records, and the count when there is one, into list-owned memory right after the clamp.ExecuteIndirectreads the copy, and the title buffer stays in whatever state the shaders need. With it, the debug layer reports none of these.Branch on top of this PR: https://github.com/claude-GTA6/VIctory/tree/indirect-copy-on-458 (one commit, 49e15fe9; was aaacaf3 before an author-metadata rewrite).
victory-gputests: 44 passed.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:19:34Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs,crates/victory-gpu/src/resource.rs,crates/victory-shader/src/emit/lower.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.