GPU: bind root SRVs as one-view tables bounded to their host copy #493
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!493
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/493/head"
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?
@hophaver on GitHub · 2026-11-24 04:04 UTC · original
hophaver:fix/bounded-root-srvs→main· +248 −30 · 3 files · 3 commits · closed without mergingBuilds on #336 (it uses that PR's
bindreturningfalse); the diff againstmainshows #336's two commits until that one is merged. The change here isc48b240.Problem
With #336, the world on an RX 9070 XT runs past the 60 s descriptor exhaustion, then is removed at about 134–145 s with a different signature, seen on three machines (#336 comments):
As @GamingRipperDoc worked out there: the mesh shader reads its vertex stream through root SRV
root3, whose host copy ends exactly at the end of that 4 MB title memory copy, and the fault lies just past it. A root SRV is a bare address, and vertex fetch reads it with no record limit, so a read past the copied range lands in whatever the host placed there, here memory that had held since-freed textures.Change
raw_at). Reads past the end return zero, as for any bounded view, instead of reaching other host memory.VICTORY_ROOT_SRV_DIRECT=1goes back to root descriptors.Root CBVs are unchanged.
Tested
Windows 11, RX 9070 XT, v1.0.2.1, diag build,
VICTORY_D3D12_DRED=1, this branch alone onmaind2a4bae(+ #336):inside freed texture 1024x1024 f99), matching the two reports on #336 (~136 s, ~145 s).root SRV not on 16 bytesline.cargo test -p victory-gpupasses (43, 1 ignored).cargo xtask policypasses.One run with the change; more runs, and NVIDIA / Intel, are untested.
@desplmfao on GitHub · 2026-11-24 04:27 UTC · original · edited 2026-11-24 04:45 UTC
NVIDIA / Linux data point, since NVIDIA was untested here.
Setup: RTX 5080, driver 615.71.09, CachyOS, proton-cachyos (vkd3d-proton 3.2.0), Series X 1.0.2.1, diagnostics build of
maind2a4bae+ #336 + this PR, plus #185, #440, #436, #462, #259, #177, #151 (the last three needed to reach the world here). Story mode entered byVICTORY_KEYSat about 35 s, no other input.Before (same stack without #336 / #493): 4 of 5 runs ended in a GPU hang,
NVRM: Xid 109 ... CTX SWITCH TIMEOUTfromtitle-main, 3.5–5.3 min after start (about 2–4 min into the world), followed about 20 s later by the title's crash at+0x23cf683. The fifth was stopped at 4.5 min. Earlier the same day, with fewer PRs, the same hang came at 1.5–3 min.With #336 + #493: 4 of 4 runs without a hang: 8, 10 and 9 min after start, through to the timer, and 7.5 min (stopped by hand), about 6–8.5 min in the world. The last one also had #431. No
Xid, nothing incrashes.log, noroot SRV not on 16 bytesline, no exhaustion warning.Four runs, so not conclusive, but it fits @matheushagedorn's finding on #71 (an
Xid 13MMU fault in compute from reads past the end, which turns into thisCTX SWITCH TIMEOUTwith robustness on). Frame times were unchanged (several seconds per world frame here; that is the copy path, not this PR).AI-assisted (Claude Code); the numbers come from the logs of these runs.
@iurysf on GitHub · 2026-11-24 04:55 UTC · original
Heads-up: this PR and #458 both add
pub(crate) fn is_sampler(&self) -> booltocrates/victory-gpu/src/descriptor/host.rs. They merge without textual conflicts, but the result does not compile:Whichever lands second will need to drop or rename its copy.
@iurysf on GitHub · 2026-11-24 05:24 UTC · original
NVIDIA data point: RTX 4070 (driver 32.0.16.2101, Windows 11), diag builds, entering the world (first mission intro), 300 s runs.
d2a4bae: host device removed (0x887A0006) in every run, 100–231 s after start, after a single submission of ~4.9–5.5 s. DRED has no page fault and stops on mesh pipelines that read root parameter 3. GBV on main also reports id 936: heap index 117,506,306 of 1,000,000 in a pixel shader.VICTORY_SHADER_LOOP_LIMIT=32(226 s in the world). Median frame 950 ms (main: ~1,000–1,380 ms).VICTORY_ROOT_SRV_DIRECT=1(only the bounded root SRVs turned off, #483's guard slot still on) is removed again at 176 s, with DRED stopping on a mesh draw that reads root 3.Still seen on NVIDIA with both applied: the 65,536 dynamic descriptor slots run out (
dropped=65536), and one run had a 1.84 s GPU frame from two mesh+pixel pipelines, close to the TDR limit.cargo test -p victory-shaderand-p victory-gpupass on the combination (--test-threads=1). Not tested: #483 alone in game, runs longer than 300 s.@Nixitov on GitHub · 2026-11-24 06:19 UTC · original
RTX 5070, native Windows D3D12: this plus #483 keeps the world alive, where main loses the device within 1-2.5 min.
Setup: Windows 11 Pro 26200.9974, NVIDIA RTX 5070, driver 617.14, in-box D3D12 10.0.26100.9818, Rust 1.98.1, release build.
d2a4bae+ #5810x887A0006after0x887A0004)d2a4bae+ #581 + #578d2a4bae+ this PR + #483With this PR + #483 the slow-submission lines settle at 265-284 ms for the same 11-list submissions that took 11 s before (10-40x), and the frame log goes 2 fps / 455-570 ms per frame, 500-1113 draws per frame. Stopped by the run, not by a fault.
One integration note for landing both: #493 and #483 conflict in
crates/victory-gpu/src/descriptor/host.rs. What I merged for the test above:DYNAMIC/MIN_DYNAMICselection and add #483's guard slot as one more (let guard = u32::from(!sampler); ... make(count + DYNAMIC + guard), and the capped branchPORTABLE_VIEWS - (MIN_DYNAMIC + guard));guard_slot()returnscount + self.dynamicfor view heaps instead ofcount + DYNAMIC, so it is the last slot whichever dynamic range the heap got.That build runs
cargo build --release -p victoryclean. Whichever lands second needs that small adaptation.No game files; only timings, frame counts and the two error names.
AI-assisted (DeepSeek V4.1 Flash coding agent).
@walterwallaceson on GitHub · 2026-11-24 06:47 UTC · original
Windows 10 data point for #493 (
c48b240) + #483 (65a161d): no device removal on an RTX 3070.Setup: Windows 10 22H2 (19045.6466), RTX 3070, NVIDIA 621.14, Ryzen 5 5600X, release build, Agility SDK 1.620.2 via #175. Base stack: #175, #233 + #320 + #439 (f653ea4), #55, #89, #336 (
e8d3b64), #334 (af2aecf). This GPU caps the view heap at 1,000,000, so #336/#493 take the 2^16 dynamic range. #493 and #483 conflict indescriptor/host.rs; I resolved it as described on #493: #493'sDYNAMIC/MIN_DYNAMICselection plus one guard slot (make(count + DYNAMIC + guard), capped branchPORTABLE_VIEWS - (MIN_DYNAMIC + guard)), the guard kept out of the dynamic pool, andguard_slot()returningcount + self.dynamic.0x887A0006/DEVICE_HUNG)no free dynamic descriptor slotsslow host submissionlines, 0 host pipelines refused, 0no host texture.0x80000003(a breakpoint) at title+0x5149aecon 7 threads at once, all with the same stack (+0xa5db22,+0x5453ac7,+0x23d0f9a, …). The title then tries to upload a crash report, which VIctory's network policy blocks. I couldn't find that address in an issue yet.cargo test --workspace: #483'sa_heap_index_past_the_heap_reads_the_guard_slotfails here with "neither hardware nor WARP SM 6.6 device available", the same Windows 10 cause as the othervalu_tests(#362). Otherwise only the known Windows 10 failures.One run so far.
No game data in this report.
AI-assisted (Claude Code); everything above was run on my machine.
@likecrank-dotcom on GitHub · 2026-11-24 08:49 UTC · original · edited 2026-11-24 09:05 UTC
NVIDIA RTX 5060 Ti 8 GB data point: the run with bounded root SRVs plus the wave64/compute-sample stack ended at 515.8 s from process start, on a title breakpoint (0x80000003 at +0x5149aec), without a logged GPU device removal. The earlier ongoing wording was corrected after reading the crash tail. This is one run, not a stability-fix or playable-world claim.
Setup: Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, title 1.0.2.1 Series X. Diag, INFO + DRED, loop limit 4096, cloned settings and Enter at 10/20/30 seconds. The reproducible source is https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views at 91f1450f200c850b6444182aa9588a60ed47713d: main
ce42e77+ #439 head 055aef9 + #180, then this PRc48b240, plus a diagnostics-only one-shot capture request and test adaptations. No #193/#704/#185 in this run.Before: the same integration before this PR (10bec37, public branch codex/victory-world-integration) lost the device at 179.6 s (0x887A0005 / removed reason 0x887A0006), DRED command 600/1482, DispatchMesh f0c7efd2aceb2aaa / 7d85c9cab3c80721. No dynamic-slot exhaustion line.
Now, measured locally:
cargo test --profile diag -p victory-gpu --features diagnostics --lib -- --test-threads=1: 54 passed, 0 failed, 1 ignored. Before the #493 addition, the integrated shader suite passed 108 / 0 / 1 ignored; it is unchanged by #493.Limitations: one run. The world-target captures introduce extra readbacks/barriers, so this is not a clean attribution of longer survival to #493. Four existing BelowNormal Leonida SPIR-V translation workers remained active. After ~4 min, a one-job BelowNormal CPU build of the next candidate also ran; no other title or GPU tests ran. No timing comparison or hang-fix claim. End condition is now recorded above: title breakpoint, not harness timeout. Root cause of this assertion is under investigation.
AI-assisted with OpenAI Codex (exact backend variant not exposed): integration, builds/tests, run, capture utility and analysis. Hardware/title and audio observations are the user's. Source only; no game files, shader binaries, raw dumps or full logs published.
Crash-tail detail: the title's own report says INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. The full stack matches issue #698's first run: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. This correlates the breakpoint with a full instance-list pool; it does not establish why the pool fills. Paused Yes does not establish delivery or effect of the Escape input.
Integration correction: the reused r4tedx integration/wave64-with-180 merge 24b3bcc has 055aef9 in its ancestry but its tree removes later #439 work, including console_pending tracking and numeric mask pairs (structure.rs loses 20 lines), plus related lowering/tests. The source SHA reported here is exact, but it should not be interpreted as the full latest #439 behavior. The four unknown-stride failures observed here, and their later mask-join failures with #704, are observations on that older effective wave64 integration. Rebuilding from
ce42e77+ a clean merge of 055aef9 + the two #180 commits instead. This does not affect the separately reported pure 055aef9 runtime test.@SkillIssueXO on GitHub · 2026-11-24 09:09 UTC · original
Desktop RTX 5070 Ti / NVIDIA 621.24 / Windows 11 26300.9974, Ryzen 7 9850X3D, 32 GB RAM. Native D3D12 diagnostic builds, Series X 1.0.2.1, same saved settings and startup input, DRED enabled and default shader loop limit.
c7a5f49(runtime-identical to current main8e79c80): device removed withDXGI_ERROR_DEVICE_HUNG (0x887A0006)35.5 s after the first world frame-rate sample. DRED first stopped at command 409/515 (op 42). The six world samples were 0.8–1.5 fps.8e79c80+ #493c48b240+ #20605981dd+ #189d0fd9bfwith bounded root SRVs: the host selected Wave32 automatically. 147.3 s of world samples with no logged device removal. Opening credits rendered over a black 3D scene at 0.4–1.1 fps. I ended the run when Windows commit headroom fell to 0.64 GiB (VIctory private bytes 23.97 GiB).VICTORY_ROOT_SRV_DIRECT=1: the commit-headroom guard ended the run during the first world load, at 0.44 GiB headroom and before any world frame-rate sample. This run is inconclusive about the effect of bounded root SRVs in isolation.One observed run per row. Main reused its shader cache and the two patched runs started with separate empty caches. The timing is a survival observation for the three-patch stack. AI-assisted (Codex with Claude checking existing coverage).
@Hiiva on GitHub · 2026-11-24 09:35 UTC · original
The bounded root SRV path exposed a small edge case during synthetic WARP testing: raw_at used max(1) for NumElements, so a declared range of zero to three bytes still exposed a complete dword from the backing resource.
A follow-up returns a null raw SRV for ranges shorter than four bytes:
github.com/Hiiva/VIctory@44868bd2c7The added eight-thread readback failed before the change, returning source value 0x71300004 from a three-byte view. Afterward it verifies a nonzero-offset valid window, zeros beyond that window despite nonzero backing memory, a missing root, a short range, and an empty range. It passed on WARP with native Windows/MSVC. Clippy with diagnostics and warnings denied passed. All fixtures are synthetic. I preserved your commit and authorship when integrating the root-SRV change.
@AugustoZFJ on GitHub · 2026-11-24 09:53 UTC · original
Tested on Linux with an RDNA2 card, which I don't think anyone has reported here yet. Four runs with this PR, and the device wasn't removed in any of them.
RX 6900 XT, Mesa RADV 26.2.6, GE-Proton11-14 (vkd3d-proton v3.1-83), Series X 1.0.2.1, diag builds. Kernel 7.3.4 for the
mainruns and 7.3.5 for the rest (there was a reboot in between). Every scripted run starts from the same save and the same shader cache, and I stop it after 600 s in the world. Times are counted from the first world frame.maind2a4baec48b240, with #336 in it, merged since)int3in title code, the title's watchdogVICTORY_NO_WATCHDOG=1int3On
mainthe kernel logs the fault both times as a read from the texture unit at an unmapped address, coming from vkd3d's queue thread ([gfxhub] page fault,Faulty UTCL2 client ID: TCP,RW: 0x0). With this PR the kernel log has no fault line in any of the four runs, 1,716 s in the world in total.Indirect execution wasn't running in any of these. The clamp doesn't compile under Wine without #178 or #190 (#170), so every indirect draw is dropped.
mainstill faulted here without it. I haven't run this PR with indirect execution on.The runs with this PR all ended on the title's side, not the GPU's. One is the watchdog's 30 s stall check at
+0x2215c35, which #454 takes care of. The other two are anint3at+0x63966f, reached from a job worker (+0x221c29ccalls the task, then+0x257035e,+0x3e54ad0). That's the pool case bunbeans2-arch describes in #597, and Exorion1er got it on an RX 9070 XT under Proton too (#454). It isn't the watchdog, and there was no stall before it in either run.Frame rate stays between 0.3 and 0.6 fps, nearly all of it in "preparing: copies", and the scene behind the title card is still dark. The machine wasn't idle during the runs, so don't read much into the fps.
If you test
mainon Linux, the fault doesn't always stay inside the game. In the scripted run the job that timed out was the compositor's, on the other gfx ring. The ring reset failed, the kernel reset the whole GPU and the desktop session went down with it. In the run played by hand only the game lost its device.@sennecools on GitHub · 2026-11-24 10:29 UTC · original
Second RX 9070 XT (RDNA 4) data point, as an A/B with one binary.
Setup: Windows 11 Pro 26300, AMD Radeon RX 9070 XT, Adrenalin driver 32.0.32029.2010. Diag build (
--profile diag --features diagnostics) ofmain8e79c80+ this PR atc48b240. #427 and #537 were also merged in; they only change report text. Runs were offline, withVICTORY_D3D12_DRED=1and the same scripted input (VICTORY_KEYS, Enter every 10 s from 20 to 120 s), and a 480 s limit.VICTORY_ROOT_SRV_DIRECT=1, the old root descriptors.The order was bounded, direct, direct, bounded, bounded, direct, so the cold shader cache of each mode's first run does not fall on one side.
DXGI_ERROR_DEVICE_HUNG, 3 of 3DXGI_ERROR_DEVICE_HUNG, 3 of 3slow host submission), and the slowestno free dynamic descriptor slots/root SRV not on 16 bytesWhat the runs show:
All runs left the game folder unchanged (checked before and after) and made no network connections. No game data is in this comment.
AI-assisted (Claude Code).
@h0useadv on GitHub · 2026-11-24 10:37 UTC · original
Tested on an RX 9070 XT (driver 32.0.32029.2010, Ryzen 7 7800X3D, Windows 11 Pro 26300), merged onto
maindd54de2with a local diagnostics-only patch. Diag build,VICTORY_D3D12_DRED=1, the same scripted input as all my other runs (Enter every 3 s from 45 s), into the first mission.Why I tried it: on this card, all seven page faults I'd collected without this PR land just past the end of a 4 MB title-memory host copy (
nearest title memory copy below it: …+0x400000, offset 0x401000…0x452000, two further out). Details on #557: #557With this PR (one run):
dd54de2, two runsdd54de2+ diagnostics, four runsdd54de2+ diagnostics + #493And the fault itself is different:
No "past the end of a copy" offset this time, no "inside freed" texture, and the stopped command is op 6 rather than the op 42 mesh draws of every earlier fault. So in this run the over-read pattern was gone and something else ended it.
One run each, so this is a lead, not proof. But it fits the idea that unbounded root SRVs reading past their host copy are what produce the #557 faults on RDNA4.
AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.
@h0useadv on GitHub · 2026-11-24 10:49 UTC · original
Second run with this PR, same card, build and scripted input as above:
dd54de2(2 runs)dd54de2+ diagnostics (4 runs)a list stopped at command 127 of 129 (op 42), 32 listsSo across 2 runs with this PR against 6 without, the past-the-copy faults are gone and time in the world goes up (195 and 445 s against 22 to 149 s). Each run is still a single sample, but on RDNA4 this looks like it addresses the page faults reported in #557. What ends the run afterwards is a different problem: the hang family in #71, and the low-address fault in run 1.
AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 11:07 UTC · original
Verified and merged downstream in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/9 alongside retirement queues (#431) and multi-arg ExecuteIndirect (#757).
@KingKaom on GitHub · 2026-11-24 11:09 UTC · original
RDNA4 data point for the combination: this PR at
c48b240merged onto the#431 + #568 + #67stack (basemain 8e79c80, merged950974), diag build,VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, scripted Enter input. One run on a box whose every pre-#493 stack run faulted.#431+#568+#67stack (our earlier run, same box)0x6b000into a window whose host copy mapping is 8 KB — the low-address, past-the-copy family — breadcrumbsdone == countinside freed); the run ended as a plain hang after a submission of 32 lists, every list's breadcrumbsdone == count,DXGI_ERROR_DEVICE_HUNG(0x887A0005)So on this box the freed-lifetime family (removed by #431, as reported on #59) and the past-the-window faults are both gone once root SRVs are bounded — #493 subsumes the fault-removal role #431 played here. What ends the run is the same timeout family the reports above describe: in-world frame times logged 0.6–2.3 fps, last frames ~2.9 s, preceded by submissions over 2 s.
The render itself now looks gated on translation, not memory: 536 unique
shader does not translatehashes logged this run (434 compute / 58 pixel / 36 mesh / 8 vertex), with 500–1000+ draws per frame dropped for having no host pipeline, and the copy counters accounting ~10 GB/frame of title-copy refresh.Single run, so the seconds are suggestive and the zero-faults line is the reliable part (the fault line was logged reliably in every earlier run on this setup).
AI-assisted (Hermes Agent).
@ChruutvoLuzi on GitHub · 2026-11-24 12:40 UTC · original · edited 2026-11-24 13:08 UTC
RTX 4090 (driver 621.01, Windows 11), diag build,
VICTORY_D3D12_DRED=1, this PR atc48b240. On this card this PR on its own removes the world hang (#71). #483 isn't needed for it, nor is anything else I had stacked. One run per row; I stopped the runs that didn't end after 20 minutes from launch.mainffe310e0x887A0006after a 5.4 s listmain+ this PRThose two used
VICTORY_SHADER_LOOP_LIMIT=1024and no watchdog hook. The same holds on a larger stack (main+ #646, #454, #439 with #233 under it, and #160; loop limit 256,VICTORY_NO_WATCHDOG=1):0x887A0006after a 4.9 s listWithout this PR, three of four runs on the fresh base stopped at the same command: a direct
DispatchMeshof 159 groups on4adfa13bea1c556a(MSR_VS_CascadeShadows_drawskinned), mesh only, which reads its vertex data through root parameter 3. With this PR that stop and the later ones are gone, and the mesh draws stay in, which #578 can't do on 32-lane hosts because it refuses every mesh program there.Edit: the default loop limit isn't enough on its own. With it instead of 1024,
main+ this PR hung 16 s into the world atmesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97, a pixel program with nested loops (reported on #71). So on this card it takes this PR plus a loop limit such as 1024.AI-assisted (Claude Code).
@Headache3318 on GitHub · 2026-11-24 14:26 UTC · original
Review-surface clarification plus two soft spots nobody has named on this thread. The PR body's framing ("the diff against main shows #336's two commits until that one is merged") is stale: #336 merged 08:00Z as
edf64e2, andgit merge-base --is-ancestoragainst a depth-500 refetch of tipffe310ebconfirms3c81420ande8d3b64are byte-identical inmain— the live review surface is commit 3c48b240(+172/-2) alone. Two open questions for that commit, neither merge-blocking:root_srv_slotsis aHashMap<(usize,u64), u32>whose own comment says "One slot per address per list", so the bound one-view table is made once per address per list while the shadow copy can refresh again later in the same list — a bound table can lag the freshest copy; and reads past the copy end are bounded to zeros, but the refresh path is capped at 1 MiB per bind, so reads past the cap see stale copy data — bounded but not fresh. Watch item rather than defect: one dynamic slot per distinct root-SRV address per list is appetite on the very pool #336 grew, and this thread's own NVIDIA runs already reportdropped=65536dynamic-slot exhaustion with #336+#493 both on, next to #653's "dynamic descriptor slots of lists that already ran are taken back" warning. AI-assisted independent second-read frompull/493.patchat headc48b240on Arch Linux; nothing built or run from this box; commands:git fetch --depth=500 upstream main+git merge-base --is-ancestor+ greps of the patch.@KevinPratap on GitHub · 2026-11-24 15:08 UTC · original
Extending this to root UAVs (#294) removed the remaining NVIDIA world hangs on an RTX 4050 Laptop (32-lane waves; Windows 11, title 1.0.2.1, diagnostics build of an integration branch with #294, #493, #578,
VICTORY_D3D12_DRED=1).The world's job dispatches (e.g.
4ddd6f9702fab2a7,28918b7150a7aad5: root descriptors only,Cbv s0+Uav s1+Uav s2) build raw descriptors (num_records-1) on their root UAV addresses and follow offsets read from data. One stopped run had the root UAV's host copy end0xaff00past the address. With a bare root UAV, reads past that reach other host memory, and the GPU stalled with no page fault until the device was removed as hung, 1.5-2 minutes into the world in every run.Same shape as this PR, for
D3D12_ROOT_PARAMETER_TYPE_UAV:D3D12_DESCRIPTOR_RANGE_TYPE_UAV, same register and space) in place of the root UAV;CreateUnorderedAccessViewof the host copy from the address to its end (R32_TYPELESS,D3D12_BUFFER_UAV_FLAG_RAW,FirstElement = offset / 4), refreshed and given to copy-back asroot_viewdoes for root UAVs (refresh,gpu_writes,UNORDERED_ACCESSstate);Result: with this, a 5-minute world run had no removal (slowest submission 1.6 s), where every run before lost the device. Separately, root UAVs were refreshed and copied back for 2 MiB only (#294's
ROOT_UAV_MAX), while the jobs' buffer is 64 MiB and they read ~3 MB in. Raising it (posted in #71) was needed too.AI-assisted.
@Yaekai on GitHub · 2026-11-24 16:18 UTC · original
Independent verification on Windows 11 + NVIDIA RTX 3070 (Ampere, 8 GB, Rust 1.98.1) at head
c48b240:cargo test -p victory-gpu --lib: 43 passed, 0 failed.cargo clippy -p victory-gpu -- -D warnings: 0 warnings.1.0.2.1,--console series-s, release build onffe310e+#493+#452+#587+#206): stayed up in the 3D world for 19+ minutes (~2,300 draws/frame) with 0 GPU page faults / 0 device removals (closed manually). Ready to merge!@Ctrl-Alt-Haze on GitHub · 2026-11-24 16:51 UTC · original
Independent verification on Windows 11, RTX 5070 Ti (driver
32.0.16.2135) + WARP (VICTORY_D3D12_DEBUG=1), dxil.dll1.8.2502.11, Rust1.98.1:c48b240trial-merges cleanly ontoupstream/main(ffe310eb).c48b240,cargo clippy --workspace --all-targets -- -D warningsfails on pre-ffe310eblints (xmem.rs:747,host.rs:267already fixed inmain). After a trial merge withffe310eb,cargo clippy --workspace --all-targets --all-features --locked -- -D warningspasses.c48b240:cargo xtask policy(151 files ok),cargo test --workspace --locked(263 passed, 0 failed, 4 ignored),victory-shader --features host(69 passed, 0 failed on RTX 5070 Ti & WARP),victory-gpu --features diagnostics(45 passed, 0 failed, 1 ignored on RTX 5070 Ti & WARP, 0 D3D12 debug errors/warnings).unsafeblocks have// SAFETY:comments. Needs a rebase ontoupstream/mainso CI Clippy passes (and a unit/GPU test verifying root-SRV bounding/caching behavior would be a nice addition;root_srv_slotscaches one slot per(list, addr)and root UAVs remain out of scope).AI-assisted verification on local RTX 5070 Ti + WARP; no game data.
@Headache3318 on GitHub · 2026-11-24 16:53 UTC · original
Cross-target second check (AI-assisted, Arch Linux kernel 7.3.5, mingw, rustc 1.98.1): cherry-picking
c48b240aontoffe310emerges clean (locala383d61a, +172/-2, 3 files) and builds clean onx86_64-pc-windows-gnu—cargo build -p victory --profile diag --features diagnostics --locked --jobs 3exit 0, 0 errors, 0 warnings, 47,882,380-byte PE32+ (sha256:8644aff4cd58bf2aba4b79310cbdfbbcd8186fd6bb59345844ea2e7d02922250) — a target upstream CI (windows-latest MSVC only) does not test. On Linux the merged tree still reproduces #90 identically (E0425 host_resource,resource.rs:284, exit 101); zero errors and zero warnings land in the files this delta touches (the 9+2 warnings are all main-side). Not run under Wine here:D3D12CreateDevicereturns 0x80070057 under every Proton build on this box (see my #49 report), so this check is compile-only.@sash2kk on GitHub · 2026-11-24 17:43 UTC · original
RTX 4090 (driver 32.0.16.1088, Windows 11 Pro 23H2): an independent confirmation of @ChruutvoLuzi's result. With this PR, the wave64 mesh programs run on 32-lane waves without hanging.
Setup:
mainffe310e+ this PR (c48b240, merged cleanly), no #578, diagnostics build,VICTORY_D3D12_DRED=1 VICTORY_SHADER_LOOP_LIMIT=1024, same save andVICTORY_KEYSeach run.dispatch 12x1x1 [compute eeed82b877b44b5f], the wave64 compute hang discussed on #578, which is independent of this PR.VICTORY_SKIP_PIPELINES=eeed82b877b44b5fFor comparison, the same save with #578 instead (wave64 mesh refused, plus the compute refusal) stays up too, but at about 400 draws per frame.
So on this card, this PR plus a fix for
eeed82keeps the world geometry and stays up. The presented frame is still black (VICTORY_CAPTUREat frame 4096), as on the other cards; I have not looked at the render targets yet.AI-assisted (Claude Code).
DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1440DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1440@ryosen0 on GitHub · 2026-11-24 18:17 UTC · original · edited 2026-11-24 18:31 UTC
RTX 3060 Ti (Ampere) confirmation at
c48b240. Windows 11 Pro 22631, RTX 3060 Ti 8 GB, driver 32.0.16.1742, title 1.0.2.1 (b99f876b), diag build, DRED on. Stack:mainffe310e+ this PR + #20605981dd+ #454d2c93fa,VICTORY_SHADER_LOOP_LIMIT=1024,VICTORY_NO_WATCHDOG=1. 30.7 minutes with the world reached, frame 8192 drawn = 44103/44103, 0 dropped draws; none of the four mesh programs that stopped our runs on8e79c80(4adfa13bea1c556afirst among them) recurred. The run ended in0x887A0006on a compute submission namingeeed82b877b44b5f/4c0ac499ad613809/aaf7da7a94dc72a9- the frontier reported on #578, outside this PR's scope. Full A/B table posted on #71. One run.AI-assisted; measurements are from a real RTX 3060 Ti run.
@Bladureau on GitHub · 2026-11-24 20:27 UTC · original
Tested
c48b240in the title on an RTX 4060 Laptop (8 GB, 32-lane waves). It keeps the mesh draws, but on this card it does not stop the world hang.Setup: Windows 11 Pro 26300, NVIDIA GeForce RTX 4060 Laptop GPU 8 GB (driver 617.14), i7-13650HX, 32 GB, title 1.0.2.1 (exe BLAKE3
b99f876b74d4a77f…). This PR is merged ontomainffe310ewith #334 (c99e429) and #1548 (4002dd7), all cleanly, without #578. I tried to add #483 as well, but it conflicts withmainindescriptor/host.rs: its guard slot assumes the heap layout from before #336 and #1548. So it is not in this run. I usedVICTORY_SHADER_LOOP_LIMIT=1024, as in @ChruutvoLuzi's RTX 4090 run, andVICTORY_D3D12_DRED=1, in a diag build. I played into the first mission's intro by hand.main+ #578 + #334 + #1548main+ #334 + #1548 + this PR0x887A0006after about 216 s in the worldDRED stopped at
dispatch 16x1x1 [compute 9146291b38ea9ce1](command 4 of 12 in list 5 of 29). That program also runs throughout my #578 runs, about 10 minutes in the world, without a hang. So it is probably where the GPU was when the timeout hit, not the cause. Without #578, the wave64 mesh and compute programs run, which looks like the hang again, or the unbounded heap index that #483 addresses.I am happy to rerun this with #483 once it is rebased onto the current heap layout.
Pull request closed