XGameRuntime: XAsyncGetResultSize writes 0 while the operation is pending #1192

Merged
Longno242 merged 1 commit from upstream-pr/1201 into main 2026-12-02 17:37:20 +00:00
Longno242 commented 2026-11-24 13:08:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Longno242 on 2026-11-24T13:08:42Z.


XAsyncGetResultSize returned E_PENDING without writing *size. libHttpClient always writes *bufferSize first (0 while pending), so a caller's leftover sentinel could be mistaken for a real size.

No open issue tracked this; checked that open XAsync PRs (#1188, #1176, #670, …) do not cover GetResultSize's pending path.

What is in it

  • crates/xcl/src/hle/xgameruntime/xasync.rs: write *size = 0 on pending (and on finished blocks); unit test with a 0xDEAD sentinel

Tested

  • Hardware/OS (full suite by @jennydeth): RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 8b57a0d
  • Commit tested: 8b57a0daf1f78cd20c7478db53c65336191de540 (clean tree)
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)
  • SKIPPED: 2 GPU tests for no wave64 (expected on this card)
  • Retail smoke: see Regression run (@Toons29, RX 9070)

Regression run

  • Retail scripts/smoke.ps1 from @Toons29 (RX 9070, 60 s, same title/time; blocks as printed):
xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 8b57a0daf1f78cd20c7478db53c65336191de540
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14684 MB

Not tested

  • Full cargo test --workspace
  • libHttpClient live path against system XGameRuntime
  • live libHttpClient against the system XGameRuntime

AI use

  • @jennydeth: Claude Code (Claude Opus 5.5) ran the full workspace suite and reported results in a PR comment
  • Cursor Auto (Composer): found the gap vs libHttpClient's always-write *bufferSize contract, implemented the fix and test, opened this draft PR. Exact underlying model name not disclosed to the agent.
<!-- greyfinch-sync:ivall/xcl:issue:5472753192 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201). Originally posted by [Longno242](https://github.com/Longno242) on 2026-11-24T13:08:42Z. --- `XAsyncGetResultSize` returned `E_PENDING` without writing `*size`. libHttpClient always writes `*bufferSize` first (0 while pending), so a caller's leftover sentinel could be mistaken for a real size. No open issue tracked this; checked that open XAsync PRs (#1188, #1176, #670, …) do not cover GetResultSize's pending path. **What is in it** - `crates/xcl/src/hle/xgameruntime/xasync.rs`: write `*size = 0` on pending (and on finished blocks); unit test with a `0xDEAD` sentinel **Tested** - Hardware/OS (full suite by @jennydeth): RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 8b57a0d - Commit tested: `8b57a0daf1f78cd20c7478db53c65336191de540` (clean tree) - `cargo test --workspace -- --test-threads=4`: **742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)** - `SKIPPED`: 2 GPU tests for no wave64 (expected on this card) - Retail smoke: see **Regression run** (@Toons29, RX 9070) **Regression run** - Retail `scripts/smoke.ps1` from @Toons29 (RX 9070, 60 s, same title/time; blocks as printed): ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 8b57a0daf1f78cd20c7478db53c65336191de540 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14684 MB ``` **Not tested** - Full `cargo test --workspace` - libHttpClient live path against system XGameRuntime - live libHttpClient against the system XGameRuntime **AI use** - @jennydeth: Claude Code (Claude Opus 5.5) ran the full workspace suite and reported results in a PR comment - Cursor Auto (Composer): found the gap vs libHttpClient's always-write `*bufferSize` contract, implemented the fix and test, opened this draft PR. Exact underlying model name not disclosed to the agent.
DavidM1911 commented 2026-11-24 14:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:32:13Z.


Independent verification on current main 384f7f7 (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 — XAsyncGetResultSize pending-write change keeps the suite green.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7132971344 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1201#issuecomment-7132971344). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T13:32:13Z. --- Independent verification on current `main` `384f7f7` (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** — XAsyncGetResultSize pending-write change keeps the suite green. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Toons29 commented 2026-11-25 04:10:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:14:37Z.


Regression run of 8b57a0da on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 8b57a0daf1f78cd20c7478db53c65336191de540
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14684 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 99 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7151728525 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7151728525). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T03:14:37Z. --- Regression run of `8b57a0da` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 8b57a0daf1f78cd20c7478db53c65336191de540 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14684 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 99 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
Longno242 commented 2026-11-25 13:05:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Longno242 on 2026-11-25T12:36:30Z.


Thanks @Toons29 — pasted both of your xcl-smoke v1 blocks under Regression run so the description check can see them.

<!-- greyfinch-sync:ivall/xcl:comment:7162608043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7162608043). Originally posted by [Longno242](https://github.com/Longno242) on 2026-11-25T12:36:30Z. --- Thanks @Toons29 — pasted both of your `xcl-smoke v1` blocks under **Regression run** so the description check can see them.
Longno242 commented 2026-11-25 13:05:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Longno242 on 2026-11-25T12:43:44Z.


CI is stuck on action_required (first-time contributor workflow approval). Smoke + PR description are green; please approve the pending CI workflow when you get a chance.

<!-- greyfinch-sync:ivall/xcl:comment:7162773039 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7162773039). Originally posted by [Longno242](https://github.com/Longno242) on 2026-11-25T12:43:44Z. --- CI is stuck on `action_required` (first-time contributor workflow approval). Smoke + **PR description** are green; please approve the pending **CI** workflow when you get a chance.
jennydeth commented 2026-11-25 13:05:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jennydeth on 2026-11-25T13:01:18Z.


Full workspace run (listed under Not tested).

Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 8b57a0d.

Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card).

Not tested: live libHttpClient against the system XGameRuntime.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7163179276 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7163179276). Originally posted by [jennydeth](https://github.com/jennydeth) on 2026-11-25T13:01:18Z. --- Full workspace run (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 8b57a0d. Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card). Not tested: live libHttpClient against the system XGameRuntime. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Longno242 commented 2026-11-25 14:09:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Longno242 on 2026-11-25T13:21:01Z.


Thanks @jennydeth — copied your workspace counts into Tested (742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)).

<!-- greyfinch-sync:ivall/xcl:comment:7163648596 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7163648596). Originally posted by [Longno242](https://github.com/Longno242) on 2026-11-25T13:21:01Z. --- Thanks @jennydeth — copied your workspace counts into **Tested** (742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)).
github-actions[bot] commented 2026-11-29 07:43:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:22Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252649337 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7252649337). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:43:22Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Longno242 commented 2026-11-29 20:44:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Longno242 on 2026-11-29T20:44:02Z.


Still waiting on a maintainer: description/smoke are in place; CI needs first-time-contributor workflow approval. Not abandoned.

<!-- greyfinch-sync:ivall/xcl:comment:7262314921 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7262314921). Originally posted by [Longno242](https://github.com/Longno242) on 2026-11-29T20:44:02Z. --- Still waiting on a maintainer: description/smoke are in place; CI needs first-time-contributor workflow approval. Not abandoned.
Foniass commented 2026-12-01 05:05:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:05:16Z.


Triage (#1607) – head 8b57a0d

#670 (a draft that also changes the recompiler) contains the same XAsyncGetResultSize hunk; this PR is the focused version with a test. #1205 makes the matching change in XAsyncGetResult (*used), so the two complement each other rather than overlap.
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.

<!-- greyfinch-sync:ivall/xcl:comment:7301407998 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7301407998). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:05:16Z. --- **Triage (#1607)** – head 8b57a0d #670 (a draft that also changes the recompiler) contains the same XAsyncGetResultSize hunk; this PR is the focused version with a test. #1205 makes the matching change in XAsyncGetResult (`*used`), so the two complement each other rather than overlap. 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.
BBareth commented 2026-12-01 09:38:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:38:47Z.


merge-check claim
head: 8b57a0daf1

<!-- greyfinch-sync:ivall/xcl:comment:7307000149 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7307000149). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:38:47Z. --- merge-check claim head: 8b57a0daf1f78cd20c7478db53c65336191de540
brainhay5 commented 2026-12-01 09:51:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T09:51:49Z.


merge-check claim
head: 8b57a0daf1

<!-- greyfinch-sync:ivall/xcl:comment:7307316060 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7307316060). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T09:51:49Z. --- merge-check claim head: 8b57a0daf1f78cd20c7478db53c65336191de540
brainhay5 commented 2026-12-01 09:59:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T09:59:38Z.


merge-check claim
head: 8b57a0daf1

<!-- greyfinch-sync:ivall/xcl:comment:7307508058 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7307508058). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T09:59:38Z. --- merge-check claim head: 8b57a0daf1f78cd20c7478db53c65336191de540
BBareth commented 2026-12-01 09:59:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:59:53Z.


merge-check
base: 493dbd3dd0
head: 8b57a0daf1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test get_result_size_writes_zero_while_pending ran and passed.
review: no blocking finding; one file (+24/-1), every line read. XAsyncGetResultSize writes 0 into *size (when it is not null) before returning E_PENDING, and for a finished block now also when its status is a failure (it wrote 0 only on success before). Note for the maintainer: #1205 adds its test at the same place in the same file, so the second of the two to merge will need a small conflict resolved. Not tested here: a retail title that reads *size after a pending call.
performance: none: one store on the pending path.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7307514165 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7307514165). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:59:53Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 8b57a0daf1f78cd20c7478db53c65336191de540 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test `get_result_size_writes_zero_while_pending` ran and passed. review: no blocking finding; one file (+24/-1), every line read. `XAsyncGetResultSize` writes 0 into `*size` (when it is not null) before returning `E_PENDING`, and for a finished block now also when its status is a failure (it wrote 0 only on success before). Note for the maintainer: #1205 adds its test at the same place in the same file, so the second of the two to merge will need a small conflict resolved. Not tested here: a retail title that reads `*size` after a pending call. performance: none: one store on the pending path. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
brainhay5 commented 2026-12-01 11:48:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T11:48:21Z.


merge-check claim withdrawn
Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take.

AI use: an agent posted this withdrawal.

<!-- greyfinch-sync:ivall/xcl:comment:7310168206 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7310168206). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T11:48:21Z. --- merge-check claim withdrawn Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take. *AI use: an agent posted this withdrawal.*
cj-tomlin commented 2026-12-01 18:58:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-12-01T18:58:25Z.


merge-check claim
head: 8b57a0daf1

<!-- greyfinch-sync:ivall/xcl:comment:7321914717 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7321914717). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-12-01T18:58:25Z. --- merge-check claim head: 8b57a0daf1f78cd20c7478db53c65336191de540
cj-tomlin commented 2026-12-01 19:04:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-12-01T19:04:00Z.


merge-check
base: 6bfb5c5153
head: 8b57a0daf1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2905 passed, 0 failed, 51 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: none. The new xasync::tests::get_result_size_writes_zero_while_pending passes, and fails at its pending assertion when I take the fix's pending write back out of the merged tree.
review: none blocking, after reading the whole diff (+24/-1, xasync.rs). XAsyncGetResultSize now writes 0 into a non-null *size before returning E_PENDING, and for a finished block also when its status is a failure (before: only on success); the done-and-active path still writes result_size. CPU-side only; no GPU path, so this NVIDIA-only run covers it. #670 (a draft) carries the same hunk alongside recompiler changes; #1205 does the matching change for XAsyncGetResult.
performance: none: one store on a pending call.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB, driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build / Claude Code (Claude Opus 5.5) merged, built, ran the suite, read the diff and drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7322105535 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1201#issuecomment-7322105535). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-12-01T19:04:00Z. --- merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: 8b57a0daf1f78cd20c7478db53c65336191de540 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2905 passed, 0 failed, 51 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: none. The new `xasync::tests::get_result_size_writes_zero_while_pending` passes, and fails at its pending assertion when I take the fix's pending write back out of the merged tree. review: none blocking, after reading the whole diff (+24/-1, `xasync.rs`). `XAsyncGetResultSize` now writes 0 into a non-null `*size` before returning `E_PENDING`, and for a finished block also when its status is a failure (before: only on success); the done-and-active path still writes `result_size`. CPU-side only; no GPU path, so this NVIDIA-only run covers it. #670 (a draft) carries the same hunk alongside recompiler changes; #1205 does the matching change for `XAsyncGetResult`. performance: none: one store on a pending call. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB, driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build / Claude Code (Claude Opus 5.5) merged, built, ran the suite, read the diff and drafted this; I checked it.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1192
No description provided.