hle(dstorage): honor DSTORAGE_QUEUE_OPTIONS AutoSubmitDisabled — no auto-submit, E_QUEUE_CLOSED on Close #645
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T21:34:36Z.
What
Our DirectStorage lanes auto-submit at half capacity (crates/victory-hle/src/modules/dstorage.rs,
submit_as(id, explicit)— "explicit false when a half-full queue submits"), and nothing reads the console's AutoSubmitDisabled option:grep AutoSubmitDisabled crates/has no hits. A title that creates its queue with that option set gets auto-submits it never asked for, and different completion semantics on close.XCL #1790 implemented the console behaviour, with the spec readable in their tests: a queue with AutoSubmitDisabled must not auto-submit even past capacity/2 and waits for the title's explicit Submit (their test: "AutoSubmitDisabled must not auto-submit past capacity/2"), and an unsubmitted status entry on such a queue resolves to E_QUEUE_CLOSED on Close() (their test: "An unsubmitted status entry on an AutoSubmitDisabled queue resolves to E_QUEUE_CLOSED on Close()"). In their layout the flag is the u64 at DSTORAGE_QUEUE_DESC1 + 0x18.
What this changes
How it was tested
Sources: MacBox crates/xcl/src/hle/dstorage.rs:113, :2464, :2481; XCL #1790.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T21:36:06Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T21:36:17Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #645in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T21:53:07Z.
Done — landed on the fork's main as commit
800ad933(hle(dstorage): honor DSTORAGE_QUEUE_OPTIONS AutoSubmitDisabled).Gate green in isolation: cargo test -p victory-hle -p victory -p victory-shader -p victory-gpu -p xtask (--test-threads=1, 729 passed total incl. three new tests: no auto-submit past half capacity; the control without the option; Close without Submit resolves E_QUEUE_CLOSED), clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -D warnings, cargo xtask policy, all tools/macos/tests/*.sh. Game run: not possible yet (data still downloading); on the next run the 'a queue half full submitted itself' line should no longer appear for the title's queue.