XGameRuntime: preserve non-zero success HRESULTs in XAsyncGetResult #1179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T13:00:53Z.
XAsyncGetStatusandXAsyncGetResultSizereturn 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.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:26:57Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-27T21:26:37Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:02:52Z.
Triage (#1607) – head
6c07ef2Not on main: main's
XAsyncGetResultstill returns S_OK on both success paths, even thoughXAsyncGetStatus/XAsyncGetResultSizereturn the stored status. #1205 changes*usedwhile the call is pending, which is a different fix. The test covers both the Finished and the Active (payload) path with S_FALSE.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.