Honor AutoSubmitDisabled on DirectStorage queues #575

Open
Cuebert wants to merge 1 commit from upstream-pr/575 into main
Cuebert commented 2026-11-25 02:23:56 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Cuebert on 2026-11-25T02:23:56Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6595723319 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/575). Originally posted by [Cuebert](https://github.com/Cuebert) on 2026-11-25T02:23:56Z. --- `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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/575:upstream-pr/575'
git switch 'upstream-pr/575'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/575'
git switch 'upstream-pr/575'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/575'
git switch 'upstream-pr/575'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/575'
git switch 'main'
git merge --squash 'upstream-pr/575'
git switch 'main'
git merge --ff-only 'upstream-pr/575'
git switch 'main'
git merge 'upstream-pr/575'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!575
No description provided.