GPU: state the DRED stop command as the first uncompleted op (#22) #39
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!39
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-39"
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?
@FictionHub on GitHub · 2026-11-25 23:57 UTC · original
FictionHub:fix/dred-stop-command-wording→main· +66 −4 · 1 files · 1 commits · merged 2026-11-26 08:17 UTCAddresses #22.
What the report got right, and what it got wrong
Host::removal_data()printed:for nine lists in #16. That is genuinely misleading, but not for the reason in the issue. Microsoft's docs for
D3D12_AUTO_BREADCRUMB_NODEsaypLastBreadcrumbValuecontains the number ofpCommandHistoryops completed, and that the last successfully completed op is at indexvalue - 1. Sohistory[done]is the first op that had not completed. The old wording reads like one-based command numbering ("command 0 of 498"), which invites exactly the misreading in the report. Changing the opcode tohistory[done + 1], as the issue suggests, would name the wrong command instead. In0 of 498 (op 46), op 46 isBEGIN_COMMAND_LIST, i.e. no breadcrumb in that list had completed.Change
stopped_command()incrates/victory-gpu/src/host.rs. It keepshistory[done]as the named op and states the semantics explicitly: the number of completed commands, the last completed op (when there is one), and the zero-based index of the first uncompleted one.done >= BreadcrumbCount, or more breadcrumbs than the array holds, the detail line is skipped instead of indexing out of range. The existingin_flight()and indirect/pipelines detail is unchanged.breadcrumbs::the_named_op_is_the_first_command_that_had_not_completed, a hardware-free test with synthetic op codes fordone == 0, mid-list, the last command, a finished list, an inconsistent count, andu32::MAX.The output for the #16 case becomes:
Verification
cargo test --locked -p victory-gpu --lib breadcrumbs -- --nocapture: 1 passed.cargo test --workspace --locked: all crates pass except 7 pre-existing hardware tests invictory-shader(emit::intersect_tests::*andemit::valu_tests::*) that fail on this host withhardware: compute_pipeline failed: The parameter is incorrect.No game files are involved.cargo xtask policy: 246 files ok (synthetic test data only, no assets).cargo clippy --workspace --all-targets --locked -- -D warningsfails before and after this change on pre-existing warnings (for examplevictory-formatsoperator precedence anddraw::State::tablesvisibility);cargo clippy -p victory-gpu --all-targets --lockedshows no warning on the changed lines.No
CONTRIBUTING.mdexists;docs/asset-policy.mdand.github/workflows/ci.ymlwere followed. AI-assisted: code review and tests were generated with assistance; all test data is synthetic.#22
pLastBreadcrumbValue is the count of completed breadcrumbs, so history[done] is the first op that had not completed. The old "stopped at command {done} of {count} (op X)" read like one-based numbering and was mistaken for the last completed command (issue #22). Say the count, the last completed op and the zero-based index of the first uncompleted one explicitly, and skip the detail when the reported count is out of range. Refs #22@avatarmanz on GitHub · 2026-11-26 07:55 UTC · original
Merged into main in the next push (tests pass); thanks.