Add opt-in GPU breadcrumbs for hosts without DRED #332
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!332
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-332"
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?
@Melanpan on GitHub · 2026-11-27 17:06 UTC · original
diag/gpu-breadcrumbs-221→main· +487 −0 · 3 files · 1 commits · closed without merging✨ Claude-sama made this! ✨ The breadcrumbs from #221, as a diagnostics-only PR with the switch off by default.
What
Under vkd3d-proton D3D12's device-removed data is a stub (
SetAutoBreadcrumbsEnablement … stub!), and a card that faults is often never reported lost: the title only stops presenting.VICTORY_GPU_CRUMBS=1(diagnostics builds; off by default) adds breadcrumbs of our own:HostList::note, so everynote_op/note_readsite) writes two words into a readback buffer withWriteBufferImmediate, one pair per list: "reached" (MARKER_IN) and "done" (MARKER_OUT, everything before the command finished).closewrites "done" for the whole list, andresetdrops the list's slot.log_removal_context), the lists whose "reached" is ahead of their "done" are logged with the commands in between, as the list noted them.VICTORY_GPU_TIMING=1each group is sent and waited for alone. The report then names the group sent last and that list's own state, so one command is named even when the card stopped before the list's first noted command.Nothing changes without the switch: every hook is
#[cfg(feature = "diagnostics")]and returns at once unlessVICTORY_GPU_CRUMBS=1. The buffer (16,384 slots of 8 bytes) is made on first use.What it found (RTX 5090, 620.73.04, GE-Proton11-14 + view-tree server,
series-s)VICTORY_GPU_TIMING=1 VICTORY_GPU_CRUMBS=1 VKD3D_CONFIG=fault:e45051a+ patch#8 dispatch 87x1x1 [compute fdd56d97a806bcca],done_before=8 done_known=true reached=9e45051a+ patch23ae2e8)23ae2e8)#37 draw 3x1 [vertex 88dc833624e2c5ec, pixel a7cfe758751c20aa]into one 128×128f10target,done_before=37 done_known=true reached=38. Its tables have SRVs, CBVs and samplers only, no UAV, yet vkd3d-proton reportsWriteInvalidSo there is a second faulting path, as @zmelumian972 found by skipping
fdd56d97a806bcca. Run 18 showed the first version reporting 0.6 s before its fault (presents had stood for 3 s already) and never again, which is why it now reports again while presents stand.Tested
cargo clippy --target x86_64-pc-windows-msvc -p victory-gpu --all-targets -- -D warnings, with and without--features diagnostics: clean.host::crumbs::tests::{the_words_say_where_the_card_is, reports_while_presents_stand}pass (run under GE-Proton's Wine).cargo build --profile diag -p victory --features diagnosticson151b7db+ this commit.151b7db(the rebase was clean, and the build and tests were rerun after it).rustfmt.toml). Thehost.rshooks follow the surrounding code.Refs #221.
🤖 Generated with Claude Code
Pull request closed