GPU diagnostics: stop inferring descriptor slots from fault addresses #1236
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1236"
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 EatCodeSleep2 on 2026-11-24T16:42:41Z.
Summary
The old arithmetic reproduces both large numbers in #772 (566,987,264 and 1,139,159,808) from the reported fault address and the handle increments. Those numbers do not identify descriptors accessed by the GPU. Descriptor handle documentation · DRED allocation output
Refs #772. This change covers the page-fault diagnostics. The reported device removal was not reproduced. #1233 addresses descriptor tables in the command breadcrumb report separately.
Verification
VICTORY_D3D12_DRED=1,cargo test --locked -p victory-gpu --lib --features diagnostics -- --quiet(53 passed, 1 ignored).cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warningspassed.AI-assisted. No game files were used.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T17:59:37Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
ec83690:cargo test -p victory-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Headache3318 on 2026-11-24T18:44:33Z.
Second read against
ffe310eand the four overlapping descriptor PRs (AI-assisted, Arch Linux kernel 7.3.5, zero-CPU:git merge-tree --write-tree+ file reads, nothing built — complements Zipettte's 7700 XT test run):ec83690(base = tip exactly) 3-way conflicts only with #483 —descriptor/host.rsregions of merged blob045d54ed: lines 20-25 (count-field doc) and 78-98 (HostHeap::newmake/extra fallback); merges clean with #493/#568/#588. Root: #483 forked atd2a4baebefore #336's sizing commite8d3b64(ancestor of every other head) — and #483's tester merges (h0useadv 11:01, DuarttBR 15:30) deliberately extendedGPU_RANGEStocount+extra+1to keep the 'past heap end' reporting that this PR deletes → those merges need a joint redo, not four independent rebases.D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP; windows-0.62.2mod.rs:1648/1684; mainhost.rs:629-631walks), while main'snear_heapsprintedpast its end (slot N)for every heap regardless of containment (descriptor/host.rs:47-56) — the class the removal's own comment cites as its reason (:38-39); after this lands, a fault just past a heap's end can never name the heap.count + extra— the host total including 262,144/65,536 dynamic headroom (MIN_DYNAMICfallback, maindescriptor/host.rs:70-74,96-121), never the title'scount(:26) — so 'title indexed past its own slots inside headroom' becomes indistinguishable from dynamic-pool slots; and #568 @22e6676keepsGPU_RANGES/near_heapsverbatim (:70/:74/:163, shifted +30 by its imports hunk), so #568 alone never stops the misleading numbers — the merged 1236×568 tree has zeroGPU_RANGES/near_heaps/handle-start references left in the file.5a3f51a47): the new comment 'cannot locate a faulting GPU VA' sits 231 lines above #493'sgpu_handlestart + index*self.step(CPU-sideGetDescriptorHandleIncrementSize, main :124-128) — the merged file's lastGetGPUDescriptorHandleForHeapStart().ptrconsumer, feedingSetCompute/GraphicsRootDescriptorTableat #493draw.rs:584-591; the comment should claim only the VA→slot direction, or #493's bounded table starts inherit the same doubt.host::name+ObjectNameW/AllocationTypewalk (:638-643), commands-in-flight via breadcrumbs/stopped-list/marker notes withfault_in(:655-699);shadow::nearand GBV untouched — only Victory's added slot guesswork dies, plus a robustness bonus: one global-mutex lock leaves the crash-report path (:45 →host.rs:651→removal_data:614). #588 shares no file with #1236 (draw.rs+25/−4,shadow.rs+54/−2 only), so 'descriptor/host.rs shared by all five' holds only for #1236/#493/#483/#568.upstream-sync referenced this pull request2026-11-24 21:02:38 +00:00
Pull request closed