acphal: PopMessage returns a full-width Win32 BOOL #458
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/463"
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 DavidM1911 on 2026-11-24T00:36:09Z.
Part of #329 (item 1).
hal_popreturned a 1-byte Rustboolthroughextern "system": onlyALwas defined, so a console caller testing all ofEAXcould observefalseas nonzeroTRUEand process a stale or uninitializedMessage. It now returnsi321/0, matching howApuIsVirtualAddressValidalready answers a Win32BOOLin the same file.What is in it
crates/xcl/src/hle/acphal.rs:hal_popreturnsi32; the module doc line forPopMessagesaysBOOL; a test calls the vtable slot through a 32-bit-returning signature and checks empty → 0, submitted command → 1 with the rightkind/id.Tested
x86_64-pc-windows-msvc:cargo test -p xcl --lib acphal: 8 passed, 0 failedcargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignoredscripts/smoke.ps1 -Seconds 60,cargo build --release -p xcl:main
a6f5f7a:this PR's head
6f7f4fe:Not tested
AI use
Imported from ivall/xcl. Originally posted by shdann on 2026-11-24T00:43:58Z.
At
acphal.rs:1143, the empty-channel assertion races the audio frame clock.connectschedules the first frame 2,667 µs ahead. If the test thread is descheduled that long beforepop, the empty command queue legitimately producesMSG_AUDIO_FRAMEand returns 1. Could you check the zero return through the vtable before connecting, then connect and submit the command to check the one return? Queued messages take priority over frame ticks. Static review at6f7f4fe, assisted by OpenAI Codex (GPT-6).Imported from ivall/xcl. Originally posted by ethandepstein-del on 2026-11-24T01:02:12Z.
Code audit + NVIDIA RTX 5080 test run on
6f7f4fe738490924306136bf45acc281383f76e6(part of #329):Review
Looks clean — returning
i32(1/0) fromhal_popfixes the full-widthEAXWin32BOOLABI contract, and calling through the raw vtable as-> u32in the test exercises the exact caller ABI.Tested
rustc 1.100.0(MSVC), debug build.cargo build --workspace && cargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignored.hle::acphal::tests::hal_pop_returns_a_full_width_bool: passed.SKIPPEDGPU tests (2, wave32-only adapter):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64.Not tested
scripts/smoke.ps1run (test suite only).AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T01:06:50Z.
Re-ran the regression smoke on the new head
5157b50(test-only change per review — the empty-pop check now runs beforeconnect, so it cannot race the frame clock). RTX 3060 Ti, GTA VI 1.0.2.1, 60 s:cargo test -p xcl --lib acphal: 8 passed, 0 failed.Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T05:28:49Z.
Test run of
5157b5007f97516fb64224c1143018089b05048eon AMD RDNA4. I merged it onto currentmaine50836blocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED; theacphaltests pass.Review: Returning a full-width Win32
BOOLfromPopMessagematches the ABI the title calls it with. Part of #329 with #468 / #471, which I also ran. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-27T08:45:55Z.
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-01T03:09:58Z.
Triage (#1607) – head
5157b50#468 fixes a different bug from the same issue #329 (frame-clock drift); the stale-message item was fixed by #471. Main's
acphal.rs::hal_popstill returns a Rustbool.The change to
i32returning 0/1 matches a Win32 BOOL, andhal_pop_returns_a_full_width_boolcalls it through the vtable with a 32-bit return type. No problems found in the diff. ThePR descriptioncheck fails.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.