cpu: XApu command-queue caller and recording provider fixture #1064
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1071"
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 R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T00:16:49Z.
Refs #870
Source-built caller and test-only recording provider for the
xapu.dllcommand queue (XApuConnect,XApuEnqueueCommand,XApuGetResultCount,XApuDequeueResult,XApuDisconnect), in the #947/#1000 fixture layout. This is the XApu stage only. Thechad.dllXDsp stream lifecycle is a separate, later PR. No production export, and no change tosrc/or to the #1000 ACP slice.Evidence and fixture policy
No public source gives these signatures. Microsoft's MIT GDK Learn index at
f8c3438names the functions and the typesXApuConnectInputParameters,XApuConnectOutputParameters,XApuCommandIdandXApuResult, but lists all of them underrestricted. DirectXTK12 atf3555e3has noXApu*reference. The symbols and signatures below are fixture policy until there is an independent reference, not the console contract:XApuConnectHRESULT (UINT64* client). New nonzero handle, never reused.XApuEnqueueCommandHRESULT (UINT64 client, UINT64 id, UINT32 payload). Completes at once, result{id, payload + 0x1000, S_OK}.XApuGetResultCountHRESULT (UINT64 client, UINT32* count)XApuDequeueResultHRESULT (UINT64 client, {UINT64 id; UINT32 value; HRESULT status}*), FIFOXApuDisconnectHRESULT (UINT64 client)The refusal codes are fixture choices too:
E_HANDLEfor an unknown, zero or disconnected handle, and0x80070103for an empty queue. A failed call leaves its output untouched. No external provider source was read or used.What the fixture checks
0x101,0x102,0x103, count 3, then dequeue them in that order with matching values, with the count falling 2, 1, 0. The provider records the IDs on enqueue and on dequeue, and the check compares both sequences.0xF05.0xF03.xapu.dll, the Windows loader refuses the process with0xC0000135.pe_mapstops before entry and the provider records no calls.Tested
Commit
658e6eb4, onupstream/mainatd33845b9. Windows 10 Pro 10.0.19045, MSVC 19.44 x64, CMake/Ninja. Inputs are source-built only. The fulldevandreleasebuilds and test runs below were on the same two commits based on03029a27. After main moved, including thetools/pe_map.cppchange in #1058, I rebased (clean), rebuiltpe_map,cpu_exe_ioand the four fixtures' targets in both presets, and reran the same four tests: 4/4 in each.Each preset passed 4/4 (
xapu_queueplus the neighbouring audio tests).tests/docs_links_check.pyandtests/bidi_controls_check.pypassed.Not established
The console signatures, the parameter and result layouts, the handle type, the error codes, whether commands complete asynchronously, and which commands the startup path submits. This is a fixture result, not a startup result.
AI-assisted (Claude Code).
🤖 Generated with Claude Code