GPU diagnostics: stop inferring descriptor slots from fault addresses #1236
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!1236
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1236/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?
@EatCodeSleep2 on GitHub · 2026-11-24 16:42 UTC · original
EatCodeSleep2:fix/dred-descriptor-heap-diagnostic-772→main· +6 −32 · 2 files · 1 commits · closed without mergingSummary
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.
@Zipettte on GitHub · 2026-11-24 17:59 UTC · original
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).
@Headache3318 on GitHub · 2026-11-24 18:44 UTC · original
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.Pull request closed