cpu: test EXE startup through desktop shims #505
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/511"
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 Jess-Doit on 2026-11-22T08:38:53Z.
Change
Add
cpu_native_shim_startup. The same source-built EXE and companion DLL run under Windows andpe_mapwith the existing desktopxmem.dllandd3d12_xs.dllproviders. The test compares one process attach before entry, graphics memory allocation and observable release, the documented working-set failure, a tagged root signature with one preserved root-constant parameter, and exit status. The mapped run checks all six shim import requests and confirms host return.Refs #132 and #165.
Verification
Tested
aeb616aover14e5456on Windows 10 22H2 build 19045.6456, MSVC 19.44.35230, SDK 10.0.26100.0 and DXC 1.9.2602.17. All 16 selected CTests passed in Debug and all 16 passed in Release, including the new upstream two-provider comparison.Repeat with
--preset release. Both loaders emitted the same stage markers and returned 42. Withholdingxmem.dllidentifiedXMemAlloc. Withholdingd3d12_xs.dllidentifiedD3D12SerializeVersionedRootSignature. Both failures occurred before the EXE entered. Scratch variants that passed null to XMemFree or dropped the root parameter before serialization failed at the corresponding check under both loaders.Evidence and follow-up
The companion and EXE are MIT-licensed source-built fixtures. The test records the EXE, companion and both provider digests for each configuration. See the EXE startup through desktop runtime shims section in
docs/experiments.md.Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T09:07:08Z.
Review: APPROVED
Reviewed
aeb616aand reproduced cpu_native_shim_startup on Windows with main1aafb0f. Native and mapped execution returned 42, all six provider imports were resolved, the mapped host returned and both missing-DLL controls failed before entry. This establishes the baseline for the separate compute/AOT follow-up.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T09:03:18Z.
@Jess-Doit, I am taking the AOT/compute follow-up to your startup fixture. I will reuse your EXE entry and companion DLL, preserve the two-loader controls in this PR, and keep the follow-up in a separate PR. The added comparison will run one D3D12 dispatch, compare import arguments, bytes, release counts and process status across native, pe_map and AOT, and inject an allocation failure. If you already have a related branch or a Windows 10 test case, please link it here so we can use it. Thanks for the reproducible baseline.