hle(dstorage): honor DSTORAGE_QUEUE_OPTIONS AutoSubmitDisabled — no auto-submit, E_QUEUE_CLOSED on Close #649
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#649
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?
@AnastasisKon on GitHub · 2026-11-28 21:34 UTC · original
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.
@AnastasisKon on GitHub · 2026-11-28 21:36 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-28 21:36 UTC · original
Claimed by @AnastasisKon. Open a draft pull request with
Refs #645in its description within 24 hours, or the claim expires.@AnastasisKon on GitHub · 2026-11-28 21:53 UTC · original
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.