GPU skips empty host submissions #1424
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!1424
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1424/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?
@BaggyALPHA on GitHub · 2026-11-24 17:56 UTC · original
BaggyALPHA:fix/skip-empty-host-submissions→main· +18 −0 · 1 files · 1 commits · closed without mergingAddresses item 35 (VIC-BT-035) in #1242. A queue submission can have zero host lists after filtering. The host now returns before taking the submission lock or calling D3D12 when there are no lists. Previously this path still incremented the submission counter, signaled the host fence and waited for it.
The synthetic regression creates an isolated host queue and checks both the submission counter and the completed fence. On upstream WARP they advanced from zero to one for an empty batch. Both remain at zero with the fix. The GPU suite passed on Windows with WARP (54 passed, one ignored) and the default hardware adapter (51 passed, one ignored). Clippy with all targets and features and the asset-policy hook passed.
AI-assisted (Codex).
@acetonahard-code on GitHub · 2026-11-24 19:18 UTC · original
Tested this on a GPU with SM 6.6 support (RTX 4070 SUPER, driver 621.14, Windows 11, repo toolchain), merged into current
main(ffe310e).cargo test -p victory-gpumainmain+ this PRmain,--all-featuresmain+ this PR,--all-features--nocapture, and no "no SM 6.6 ... device; skipped" lines were printed, so no GPU test skipped for lack of a device.cargo clippy --all-targets -- -D warnings, with and without--all-features: clean.cargo fmt --check: no new diffs from this PR (the ones it reports are already onmain).frame::tests::waits_end_on_ticks_and_count_framesfailed once and passed on a rerun. It's timing-flaky onmaintoo (2 of 10 full-suite runs here), and unrelated to this PR.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@Marvisak on GitHub · 2026-11-25 01:27 UTC · original · edited 2026-11-25 02:25 UTC
Automated triage for the maintainers.
Recommended for a maintainer's look.
Host::executeincrates/victory-gpu/src/host.rsnow returns at once whenqueue.rsexecutefilters a title submission down to no host lists. Before, it took the submission lock, calledExecuteCommandListswith an empty array, then signalled the host fence and waited on it. I checked what the early return also skips:descriptor::sync_heaps()runs again at the start of the next submission, before any list can use the heaps;release_retired()holds retired resources only until the next real submission; with no lists there are no copy-backs or deferred writes to miss. The new test builds its ownHostand checks that neither the counter nor the fence moves. CI: passing.Generated by Claude Code
@BaggyALPHA on GitHub · 2026-11-25 02:09 UTC · original
Rebased onto
mainat940d32fand resolved thehost.rsconflict, keeping both the upstream scratch test and this PR’s regression.On Windows, the focused synthetic empty-submission test and asset-policy check passed. The broader host filter hit a descriptor-heap test failure, which reproduced on the same upstream base without this PR. No game files were used.
AI-assisted (OpenAI Codex).
@StExpeditus on GitHub · 2026-11-25 09:11 UTC · original
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
7f6496c.cargo test --workspace --locked --no-fail-fast-> 697 passed, 5 failed, 10 ignored. The failures are the same 5 pre-existing NVIDIA 1M-view-heap-cap failures (also on main; see my reports on #2030 and #1940). Nothing introduced by this PR fails on this machine.@Marvisak on GitHub · 2026-11-25 22:01 UTC · original
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because the case can no longer occur on
main. Since9cc37c5fqueue.rsno longer callsHost::executedirectly: it pushes segments intohold, andpump()runs only non-empty pieces. Every other caller ofHost::executepasses at least one list.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed