Repository navigation
acphal: match the APU virtual address lookup ABI - #939
Babyhamsta wants to merge 1 commit into
Conversation
Return the APU token for a registered virtual address without writing caller data. Test the published export pointer, interior addresses, and alignment while preserving existing range allocation and rollback checks. Assisted-by: Codex (GPT-6)
|
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 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. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Footnote: Not tested: retail titles (none here), Windows, RDNA4. 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 AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Tested
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. |
|
Test report for Tested
Regression run (retail title, 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. |
|
Independent AMD report for Tested
Not tested A title that calls the APU mapper ABI, a rebase onto current 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. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
Overlap: #1470 also makes AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Correct 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