GPU: state the DRED stop command as the first uncompleted op (#22) #39
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by FictionHub on 2026-11-25T23:57:35Z.
Addresses #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
Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:55:04Z.
Merged into main in the next push (tests pass); thanks.