acphal: match the APU virtual address lookup ABI #939
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!939
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-939"
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?
@Babyhamsta on GitHub · 2026-11-24 08:52 UTC · original
Babyhamsta:fix/acp-virtual-address-abi→main· +82 −28 · 1 files · 1 commits · openCorrect the ACP virtual-address lookup ABI. Ordinary callers pass one virtual address and consume the returned 32-bit APU token. The old implementation expected an output pointer, an address and a length.
What is in it
crates/xcl/src/hle/acphal.rs, resolve allocation interiors and return zero for unregistered addresses. Keep the bounded span helper internal and retain full-width 0/1 validity with alignment checking.Tested
cargo build --offline --locked --workspacecompleted.cargo test --offline --locked --workspace -- --test-threads=4 --show-outputreported 717 passed, 0 failed, 41 ignored. Two reported passes explicitly skipped for no wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.Regression run
Both clean builds used the upstream smoke script for 60 seconds offline, with fresh profiles and separate cold DXIL caches at 1920×1080.
Main
This PR
Not tested
AI use
@dcastell1 on GitHub · 2026-11-24 09:11 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean
main@beaa245(713 passed, 0 failed, 41 ignored on this box):One more passing test than main: the APU virtual-address lookup ABI match is covered and green.
Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@SlopTart on GitHub · 2026-11-24 10:37 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
37e2dcaonto main9aec53d, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 713 passed, 12 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). acphal APU-lookup ABI tests green; see flake footnote.Footnote:
gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_maskfailed once in-lane but passes 2/2 in isolation on the same merge, and current main passes the same isolated runs - ordering flake on this rig, not attributed to this PR.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@DavidM1911 on GitHub · 2026-11-24 12:39 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib acphal: 8 passed, 0 failed — includingapu_mapper_exports_lookup_interior_bytes_without_writing(the new ABI coverage) plus the DSP connect/decoder tests.ApuMapVirtualAddress(va) -> apusignature change and alignment-awarefind_free_rangelook consistent with the doc comment update;mapped_addressnow requires full-span coverage instead of partial overlap, which is the safer semantic.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@luckyteagirl on GitHub · 2026-11-25 03:27 UTC · original
Tested
37e2dcad707cdecc6ebee67963cc8097de760566on Windows 11 build 26200, Ryzen 9 5980HX, Rust 1.99.0 MSVC. The ACP mapping suite is CPU and memory code; it did not exercise the RX 6800M GPU.cargo test --locked -p xcl --lib -j 2 hle::acphal:: -- --test-threads=1 --show-output: 8 passed, 0 failed, 0 ignored, no explicit skips. The new export ABI test passed, including interior address lookup, unchanged caller bytes, alignment checks, and lookup after free.cargo build --locked --workspace -j 2: passed.Not tested
AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the ACP suite and workspace build, checked the logs, and drafted this report.
@S1m0ne1997 on GitHub · 2026-11-25 14:26 UTC · original
Test report for
37e2dcad707cdecc6ebee67963cc8097de760566(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 717 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).Regression run (retail title,
scripts/smoke.ps1 -Seconds 60, release;mainbuilt from the commit in its block, this PR from its head, no uncommitted changes)main:
this PR:
Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@oni-swr on GitHub · 2026-11-25 15:26 UTC · original
Independent AMD report for
37e2dcad707cdecc6ebee67963cc8097de760566.Tested
main). This head's merge base is077ce40c(24 Nov), older than currentmain, so I tested the PR head as is, not merged onto currentmain.cargo test -p xcl --lib acphal: 8 passed, 0 failed (includes the newapu_mapper_exports_lookup_interior_bytes_without_writing).cargo test --workspace --no-fail-fast -- --test-threads=4: 717 passed, 0 failed, 41 ignored; no SKIPPED lines.scripts/smoke.ps1 -Seconds 60on a real title, release build, PR head: 1502 frames, last presents per 2 s 60 60 60, peak commit 17737 MB, no device removal, no crash, exit 0x0. Reference run of currentmain06c9f550on the same title: 1531 frames, peak commit 17752 MB. The PR's script predates-Title, so I paste the numbers rather than the block (it would print the title's folder name).Not tested
A title that calls the APU mapper ABI, a rebase onto current
main, other adapters.AI use
Claude Code (Claude Sonnet 5.5) ran the tests and the smoke runs and wrote this report. No game files, dumps or shader names are included.
@DavidM1911 on GitHub · 2026-11-26 03:11 UTC · original
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
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.