Honor AutoSubmitDisabled on DirectStorage queues #575

Open
github-bot wants to merge 1 commit from github-bot/gh-575 into main AGit
Owner

@⁠Cuebert on GitHub · 2026-11-25 02:23 UTC · original
Cuebert:fix/dstorage-manual-submit → main · +40 −30 · 1 files · 1 commits · open

CreateQueue1 receives DSTORAGE_QUEUE_DESC1.Options. Bit 0 is AutoSubmitDisabled. The current queue submits pending reads and status entries at half capacity even when that bit is set. I stored the option on each queue and used it to gate the automatic submit. An explicit Submit drains a manual queue. Microsoft GDK queue options

I extended the existing four-slot queue test to cover both settings. After a read and a status entry, the automatic queue completed on its own. The manual queue retained both entries until I called Submit. The read then returned the expected bytes. All 96 HLE library tests passed on Windows x64. Running the same regression with the previous unconditional submit found zero pending entries where it expected two.

I also tested the flag in a separate integration build that samples physical page lists at submission. The title requested manual submission on all 17 queues. With the prior behavior I observed 2,156 invalid page lists before a cinematic crash. With the flag honored I reached the boat input prompt with zero invalid lists or failed page publications through that point. The boat mission still failed afterward. The public regression uses synthetic data.

**@⁠Cuebert** on GitHub · 2026-11-25 02:23 UTC · [original](https://github.com/fxceless/victory-fork/pull/575) `Cuebert:fix/dstorage-manual-submit` → `main` · +40 −30 · 1 files · 1 commits · open `CreateQueue1` receives `DSTORAGE_QUEUE_DESC1.Options`. Bit 0 is `AutoSubmitDisabled`. The current queue submits pending reads and status entries at half capacity even when that bit is set. I stored the option on each queue and used it to gate the automatic submit. An explicit `Submit` drains a manual queue. [Microsoft GDK queue options](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/dstorage/structs/dstorage_queue_options) I extended the existing four-slot queue test to cover both settings. After a read and a status entry, the automatic queue completed on its own. The manual queue retained both entries until I called `Submit`. The read then returned the expected bytes. All 96 HLE library tests passed on Windows x64. Running the same regression with the previous unconditional submit found zero pending entries where it expected two. I also tested the flag in a separate integration build that samples physical page lists at submission. The title requested manual submission on all 17 queues. With the prior behavior I observed 2,156 invalid page lists before a cinematic crash. With the flag honored I reached the boat input prompt with zero invalid lists or failed page publications through that point. The boat mission still failed afterward. The public regression uses synthetic data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:41 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-hle/src/modules/dstorage.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/575/head:github-bot/gh-575'
git switch 'github-bot/gh-575'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'main'
git merge --squash 'github-bot/gh-575'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'main'
git merge 'github-bot/gh-575'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.