cpu: submit a placed vertex draw from a lifted PE entry #1313
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1320"
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-24T07:57:29Z.
Refs #874. The production placed-view registration from #1316 is now in main. This branch includes main through
bec0c399. Both the CPU-driven test and the existing stream consumer share the multi-target render setup and readback path, including typed render target views. The texture cache helper preserves the array-view and explicit vertex-binding options.The source-built guest calculates two addresses 1 TiB apart, specifies the view extent and stride, records a draw, writes both final vertex words after recording, and then submits and releases. The CPU translator lifts the linked PE entry, its internal call, branches and IAT accesses. The pixel shader is a fixture that loads one DWORD. Each runner compares the AOT executable's exported source hash to the native/mapped executable. The fixture compares the actual draw-side adapter, driver, LUID and software flag across the three paths.
At
5bbfbc01on Windows build 26200.9974, RTX 4060 Laptop 32.0.16.1656 and WARP 10.0.26100.9818 passed all five cases through Windows native loading,pe_mapand AOT. The three draw cases matched all 32 RGBA pixels each, returned 42 and released both placements. Extending the last-DWORD view by four bytes produced red 0, compared with 41 and 135 for the two valid ranges. Rejecting the second placement or the submission published no pixels and returned 20, with one or two releases respectively. Render debug layer disabled.21 passed, 0 failed and 1 capability skip (
startup_logical_view_warp), including all four FXC/DXC multi-render-target tests, both placed-vertex tests, and the block-compressed texture arrays and mip chains. All inputs are source-built or generated.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:18:30Z.
#1316 is on main at
a166e42f. You can now refresh this draft against main. Please keep the lifted-entry draw and its range failure check while using the merged slot-133 registration and bounds test. The DXR build work in #1326 is separate from this vertex capture.