HLE: pin a call's task queue at XAsyncBegin #503
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!503
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-503"
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?
@Quat3rnion on GitHub · 2026-11-24 04:16 UTC · original
Quat3rnion:victory-xasync-queue→main· +96 −12 · 1 files · 1 commits · openWhat
An XAsync call resolved its queue again at schedule and completion time. If
the title changed the process default between Begin and completion, work
submitted to the old queue could deliver its completion to the new one,
where the title may never dispatch it. This resolves the queue once at Begin,
retains it in the call, and uses it for work and completion. Starting a
provider with no available queue now returns
E_NO_TASK_QUEUEas GDKrequires, instead of completing inline and reporting success.
An AI tool wrote part of this change.
Tested
cargo test --workspace: 166 passed, 0 failed, 3 ignored. Two new hermetic tests: one starts a call with no queue through a test seam and checks the refusal; the other changes the block's queue mid-call and asserts both work and completion stay on the original manual queue.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here.cargo xtask policypasses (150 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.@jeremygold02 on GitHub · 2026-11-24 17:31 UTC · original
Verification ran against PR head
43710396895e6bce2ea3de27b96380f05ef4af51; the PR was open at refresh.cargo test -p victory-hle xasync: 8 passed;modules::xasync::tests::begin_without_a_task_queue_is_refusedfailed becausePINNED_COMPLETEDchanged from 0 to 1 between the snapshots.cargo test -p victory-hle xasync -- --test-threads=1: all 9 xasync tests passed, includingbegin_without_a_task_queue_is_refusedanda_call_keeps_the_queue_it_began_on.The first failure is a test-isolation race: both new tests share
PINNED_COMPLETED, so the queue-pinning test can increment it while the no-queue test asserts it is unchanged. Serial execution passes the queue-resolution and pinned work/completion checks.This verification was AI-assisted.
@Marvisak on GitHub · 2026-11-25 00:22 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-hle/src/modules/xasync.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.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.