cpu: drive a D3D12 compute dispatch from the translated shim EXE #519
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/525"
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 R0Y00 on 2026-11-22T09:14:05Z.
Change
Follow-up to #511, coordinated in the original PR. Extend its source-built CRT-free startup body to allocate, submit a compute job, release the allocation and return a status. The shared x64 translator reads the linked PE starting at AddressOfEntryPoint. The generated process records the SHA-256 of that input. Windows and pe_map run the same original file.
The EXE owns the branches, lifetime and import arguments. A fixture DLL implements the host boundary with XMem and a D3D12 queue, using the existing source-built compute shader. An independent byte oracle checks the GPU readback. The CPU test checks that the exact pointer returned in each process is passed on to dispatch and release.
Verification
Tested commit
64071d4on Windows 11 build 26200.9974, MSVC 19.51, RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818). The integration test uses the default D3D12 debug-layer setting and does not enable it.Three tests in each configuration. The 4096- and 8192-byte cases both pass attribute 0xa8004000, dispatch once with different seeds, read back 16 bytes, free once and exit 42. The SIZE_MAX case gets null from XMemAlloc, performs zero compute dispatches and frees, publishes zero compute bytes and exits 17. The original startup allocation and both missing-provider controls still run in the baseline test. The experiment and expected byte strings are documented in docs/experiments.md.
Source-built fixtures under the project's MIT license. AI-assisted implementation and verification.