GPU: skip empty command list submissions #1268

Closed
github-bot wants to merge 1 commit from gh-pr/1268/head into gh-pr/1268/base
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 16:57 UTC · original
EatCodeSleep2:fix/skip-empty-gpu-submissions-1249 → main · +25 −1 · 2 files · 1 commits · closed without merging

Summary

  • Return immediately from the guest queue entry point for a zero-list call.
  • Skip the host queue submission when there are no host lists left after filtering. This avoids a zero-count Direct3D call and an unnecessary fence signal and wait.

Refs #1249, finding VIC-BT-035.

Verification

A synthetic D3D12 test reproduced the empty submission advancing the fence from 0 to 1 on main. With this change an empty batch leaves it at 0, and submitting one closed list advances it to 1.

  • cargo test --locked -p victory-gpu --lib (51 passed, 1 ignored)
  • cargo test --locked -p victory-gpu --lib --features diagnostics (54 passed, 1 ignored)
  • Focused regression with VICTORY_D3D12_WARP=1
  • cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warnings

AI-assisted. Only synthetic command lists were used.

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 16:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1268) `EatCodeSleep2:fix/skip-empty-gpu-submissions-1249` → `main` · +25 −1 · 2 files · 1 commits · closed without merging ## Summary - Return immediately from the guest queue entry point for a zero-list call. - Skip the host queue submission when there are no host lists left after filtering. This avoids a zero-count Direct3D call and an unnecessary fence signal and wait. Refs #1249, finding VIC-BT-035. ## Verification A synthetic D3D12 test reproduced the empty submission advancing the fence from 0 to 1 on main. With this change an empty batch leaves it at 0, and submitting one closed list advances it to 1. - `cargo test --locked -p victory-gpu --lib` (51 passed, 1 ignored) - `cargo test --locked -p victory-gpu --lib --features diagnostics` (54 passed, 1 ignored) - Focused regression with `VICTORY_D3D12_WARP=1` - `cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warnings` AI-assisted. Only synthetic command lists were used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:43 +00:00
github-bot closed this pull request 2026-11-26 04:25:43 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:36 UTC · original

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #1424. Same early return for an empty host submission as #1424, plus a count == 0 check in the queue entry that the host-side check already covers.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/1268#issuecomment-7148683408) Automated triage for the maintainers. Closing because another open pull request covers the same change. See #1424. Same early return for an empty host submission as #1424, plus a count == 0 check in the queue entry that the host-side check already covers. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1268
No description provided.