XGameRuntime: preserve non-zero success HRESULTs in XAsyncGetResult #1188
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1188
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1188"
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?
@b3IKK on GitHub · 2026-11-24 13:00 UTC · original
b3IKK:xgameruntime/xasync-preserve-success-hr→main· +39 −3 · 1 files · 1 commits · openXAsyncGetStatusandXAsyncGetResultSizereturn the completion status passed toXAsyncComplete, including positive non-zero successHRESULTs such asS_FALSE.XAsyncGetResulthardcodedS_OKon zero-payload completions (bothLookup::FinishedandLookup::Active) and returnedOP_GET_RESULT'sS_OKinstead of the completion status on non-empty payloads.This preserves the completion status in
XAsyncGetResult(returningh.status/statusfor zero-payload completions, and returningstatuswhenOP_GET_RESULTsucceeds withS_OK).What is in it
crates/xcl/src/hle/xgameruntime/xasync.rs: preserve non-zero successHRESULTs inXAsyncGetResult; add regression testget_result_preserves_nonzero_success_hresultcovering both zero-payload and non-empty payloadS_FALSEcompletions (verified failing before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib get_result_preserves_nonzero_success_hresult: 1 passed, 0 failed (failed returning0instead of1before the fix)Regression run
main:
PR:
Not tested
AI use
xasync.rs, wrote the fix and regression test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 13:26 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
cargo test -p xcl --lib xasync: 16 passed, 0 failed — includes the newget_result_preserves_nonzero_success_hresult.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.