DirectStorage: Close completes what was submitted #430
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!430
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-430"
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?
@marquezinii on GitHub · 2026-11-24 03:15 UTC · original
marquezinii:fix/dstorage-close-completes-submitted→main· +30 −8 · 1 files · 1 commits · openIDStorageQueueX::Close"blocks until all enqueued requests either complete or fail. After the method returns, the queue will no longer complete any more requests, even if some are submitted."close_laneinstead cleared the lane's submitted reads that had not started and all of its pending status entries, then waited only for the reads already running. A status entry behind a dropped read stayedE_PENDINGfor good, so a title pollingIsCompleteafterClosewould spin forever. Grand Theft Auto VI callsCloseon its queues (the comment onclosesays so).close_lanenow drops only what was enqueued but never submitted (soa_closed_queue_completes_nothingstill holds) and waits until the lane has no reads left, none running and no status entry unwritten. The workers already take reads from a closed lane andfinishflushes its statuses, so nothing else changes.Tested with a new test that submits 32 reads of 256 KiB and a status entry, then closes the queue at once: before the change the status was still
E_PENDINGafterClose(3 of 3 runs); now it isS_OKand the destination holds the whole file (3 of 3).cargo test -p victory-hlepasses and clippy reports nothing new.#234 also touches
close_lane(its counters), so one of the two may need a small rebase.https://learn.microsoft.com/gaming/gdk/docs/reference/system/dstorage/interfaces/idstoragequeuex/methods/idstoragequeuex_close
@DaviTostes on GitHub · 2026-11-24 03:33 UTC · original
Verified
129d289on Arch Linux x86_64 with the Windows build under Wine 11.22 (cargo xwin,x86_64-pc-windows-msvc, release, rustc 1.98.1):victory-hle: 86 passed, 1 failed. The only failure ismodules::net::tests::only_loopback_is_reachable— the known WineWSAConnectByListenvironment gap (#217), unrelated.closing_a_queue_completes_what_was_submittedpasses (with the WineGetTempPath2Wfixme in its output).Not covered: a real title queue at close, and throughput/latency effects (no game data here).
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original · edited 2026-11-25 15:56 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-hle/src/modules/dstorage.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge-candidate) was for an older state ofmain.Generated by Claude Code
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.Merge
Merge the changes and update on Forgejo.