acphal: PopMessage returns a full-width Win32 BOOL #463
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!463
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@DavidM1911 on GitHub · 2026-11-24 00:36 UTC · original
DavidM1911:acphal-halpop-bool→main· +35 −5 · 1 files · 2 commits · openPart 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
@shdann on GitHub · 2026-11-24 00:43 UTC · original
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).@mastrr9 on GitHub · 2026-11-24 01:02 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-24 01:06 UTC · original
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.@MesshM on GitHub · 2026-11-24 05:28 UTC · original
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.
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.