GPU: skip empty command list submissions #1268
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1268"
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 EatCodeSleep2 on 2026-11-24T16:57:44Z.
Summary
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)VICTORY_D3D12_WARP=1cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warningsAI-assisted. Only synthetic command lists were used.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T17:17:30Z.
Review: APPROVED
Tested
00c6c961on Windows 11, RTX 5070, MSVC:cargo test -p victory-gpupasses on the head (51 passed, 1 ignored).clippy -D warnings(default and all features) are all clean.The change is right.
executewaits for every submission it makes while holdingsubmitted, so the old empty call only signalled and waited on a fence with nothing behind it. Nothing ordered after it depended on that. The guest entry point'scount == 0return matches the existinglists.is_null()return. The new test pins both fence values.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:36:10Z.
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