XGameRuntime: validate XAsyncBlock before forwarding to system runtime (#1390) #1396
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1406"
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 hajduzsolt on 2026-11-24T15:39:50Z.
Runtime fix verified with unit tests and RX 9070 XT smoke run.
What is in it
Tested
cargo test --workspace -- --test-threads=4: 748 passed, 0 failed, 37 ignored (SKIPPED GPU tests: none)cargo test -p xcl --lib hle::xgameruntime::xasync: 16 passed, 0 failedRegression run
main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T15:54:43Z.
Regression run for this PR: head
7a5b17d, based onmain930e8b4. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s.main
930e8b4:this PR:
No device removals or crashes; 97 % of main's frames, 95 % of its peak commit.
Both runs' peak commit is high because of this machine's pipeline preload list at the time (the same on
main), not this PR.Not tested: the whole suite; whether the title reaches the changed code in these 60 s.
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:56:33Z.
Full-suite run, since this PR has no test report yet. Tested exact head
7a5b17d(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.xasync_entry_points_reject_null_block,xasync_entry_points_validate_before_pc_forwarding.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T17:08:28Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00
Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-25T14:59:02Z.
To preserve the useful review coverage from #1588, commit
dbe475cgives each mock PC forwarding slot its exact function signature and checks both that invalid calls never reach the host and that a valid status call does.cargo test -p xcl --lib xasync_entry_points_validate_before_pc_forwarding -- --test-threads=2: 1 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=2: passed with 0 failures; xcl unit tests: 709 passed, 21 ignored. Other workspace and documentation tests passed.The new head is queued for automated RX 9070 XT smoke verification.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:13:05Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:12Z.
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:39:10Z.
Triage (#1607) – head
f69a5bb#1588 made the same change (null / argument checks moved before the pc() forwarding in xasync.rs) and is closed; nothing equivalent is on main yet.
No problems found in the diff: returning early on XAsyncComplete(E_PENDING) before forwarding matches the system runtime's own no-op for E_PENDING, and the second test checks that no forwarded slot is hit for null blocks.
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.