docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES) #1167
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1167"
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 ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T19:30:44Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141414296 (ID
AUDIO-IMPORT-CALL-SHAPES; earlier Spanish wording: #issuecomment-7140238118)What and why
docs/audio_hal_exe_calls.md already records every audio import's site count, constants and return use, but six rows stop short: two say no argument was read, one says the arguments were not read further, and three describe a tail jump or a wrapper without saying what they forward. Those are the parts a shim needs, so this fills them from the same static reads (no run):
siteis a whole function that is a single jmp to the thunk, so it forwards its arguments unchanged and contributes no arity of its own.Docs only, six table rows, no other text touched.
Tested
GPUs tested: n/a
AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)
Checklist
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:32:26Z.
Review: APPROVED
Reviewed and verified. Documents exact call signatures, register passing conventions, and return value checks for
XApuConnect,XApuGetResultCount,XApuDequeueResult,XDspSubmitCommand,XDspActivate, andApuFreeindocs/audio_hal_exe_calls.md. Clean-room compliant.Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:11:08Z.
Recommendation: [MERGE]
Reasoning: Docs: fills six rows in
audio_hal_exe_calls.mdwith the arguments that were left unread (XApuConnect etc.) from the same static reads. Documentation only. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict withmain. Merge once the queued checks are green.Impact level: 2/10
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:48:05Z.
Native Windows 11 Verification & Shim Cross-Check (
16ac8f3041)Diff-audited
docs/audio_hal_exe_calls.md(+6/-6) and verified merged ontoorigin/main(a9e247cd69) on Windows 11 (10.0.26200, Python3.12.10with-I).Documentation & Policy Suites
tests/test_docs_*.pysuites (0PR-introduced issues across all 13 doc checks),tests/test_text_write_line_endings.py(3/3), andscripts/check_no_game_data.pypass (rc=0).Two Discrepancies Against Landed
runtime/shims/xapu_*.cppMeasurementsCross-checking the new rows against
runtime/shims/xapu_queue.cppandruntime/shims/xapu_chad.cpponorigin/mainsurfaced two mismatches worth reconciling:XApuDequeueResultstack buffer size (docs/audio_hal_exe_calls.md:45):+0x20/+0x24". Reading+0x20/+0x24would be out of bounds of a 16-byte buffer:+0x20/+0x24are the caller's stack-frame offsets ([rsp+0x20]/[rsp+0x24]), i.e.+0x00/+0x04of a0x50-byte stack local starting atrsp+0x20(as recorded inruntime/shims/xapu_queue.cpp:16-18, where the caller zeroes a0x50-byte local and reads+0,+4, and+0x34).XDspSubmitCommandarity (docs/audio_hal_exe_calls.md:51):rcx<-rdx,rdx<- oldrcx)", whereasruntime/shims/xapu_chad.cpp:12,73recordsXDspSubmitCommand(stream, cmd*, id*)as a three-argument call (r8passesuint32_t* idthrough unchanged whilercx/rdxswap).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:41:50Z.
Merged at head
16ac8f3. Docs-only, reviewed on this head by zmasi (PASS); no test applies. AI-assisted: yes.