HLE: implement DirectStorage CancelRequestsWithTag (0x38) and Query (0x58) queue slots #889
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#889
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?
@davi713albano-coder on GitHub · 2026-11-24 13:31 UTC · original
Summary
Implements two unclaimed
IDStorageQueueXvtable slots incrates/victory-hle/src/modules/dstorage.rs(leaving0x48/0x50untouched to avoid overlap with PR #624):7(0x38):CancelRequestsWithTag11(0x58):Query(DSTORAGE_QUEUE_INFO)Because external PR creation is restricted (
collaborators_only), the CI-green branch is ready on my fork:3380e5b(based onmainffe310e,crates/victory-hle/src/modules/dstorage.rs+261/-10)Changes (
crates/victory-hle/src/modules/dstorage.rs)cancel_requests_with_tag(0x38): removes unsubmitted and queued-not-yet-started reads matching(request.tag & mask) == value, flushes any newly unblocked status entries without recording cancellation as an error (matching GDKIDStorageQueueX::CancelRequestsWithTag), and notifies waiters blocked on queue capacity.query(0x58): populates the 2020DSTORAGE_QUEUE_INFOstructure (DSTORAGE_QUEUE_DESC,EmptySlotCount,RequestCountUntilAutoSubmit), storing an ownedCStringfor the queue name onQueuesodesc.namestays valid across the queue's lifetime (including afterClose). Null output pointers are tolerated.Tests & Verification
Added 2 synthetic Windows unit tests in
dstorage::tests:queue_info_layout_and_counts_track_enqueued_and_closed_state(ABI size/offset assertions forQueueDesc2020/QueueInfo, null tolerance, empty/enqueued/submitted/closed counts)cancel_requests_with_tag_drops_matching_reads_without_error(bitmask matching, slot reclamation, non-error status completion, untouched buffers for cancelled reads, closed-queue no-op)Verified on GitHub Actions (
windows-latest) using upstreamci.yml(cargo clippy --workspace --all-targets --locked -- -D warnings,--all-features, andcargo test --workspace --lockedincludingxtaskasset-policy check):victory-hle: 96 passed, 0 failed (full workspace: 344 passed, 0 failed, 6 ignored)Not tested: live title execution.
No game data used. AI-assisted.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 13:53 UTC · original
Verified and merged downstream in PR #27. Both unit tests pass cleanly under Windows 11.
@Marvisak on GitHub · 2026-11-25 06:53 UTC · original
Automated triage for the maintainers.
On
mainthe two queue slots are still unimplemented:0x38(cancel by tag) and0x58(queue info) aremissing::<7>andmissing::<11>in the queue table ofcrates/victory-hle/src/modules/dstorage.rs, so this fits the project. Pull requests are open to everyone again; open pull request #2086 (fuzeofficlal) already carries this change for review, so please check it against your branch3380e5bthere rather than open a second one. The decision is left to the maintainers.Generated by Claude Code