GPU skips empty host submissions #1423
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1424"
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 Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T17:56:58Z.
Addresses 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).
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T19:18:16Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:27:04Z.
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
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-25T02:09:15Z.
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).
upstream-sync referenced this pull request2026-11-25 03:03:36 +00:00
Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T04:23:57Z.
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
7f6496c.cargo test --workspace --locked --no-fail-fast-> all green: 0 passed, 0 ignored, 0 failed.Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:11:51Z.
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.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:01:04Z.
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