cpu: submit two placed DXR build requests from a lifted PE #1349

Merged
R0Y00 merged 1 commit from upstream-pr/1356 into main 2026-11-24 09:08:46 +00:00
R0Y00 commented 2026-11-24 09:03:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:03:55Z.


Refs #874, #1326 and #1320. This exercises where the guest build records come from. An original, source-built x64 EXE writes two 16-byte destination/scratch records and calls an explicit fixture DLL import. The static translation lifts those same offsets, writes, branches and import calls from the PE machine code. The DLL applies the production placement resolver to both records before recording either build. This two-record layout is a test interface.

Native Windows and pe_map use the same input image. The linked AOT image exports that input's SHA-256 (de5514aebcb8b91c9e6f7f9a9bdd841c9212d0b3ebe319c792a8fd8904be32e4). Each of the three runners independently checked each case on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), Windows 11 build 26200.9974. The new provider ran without a debug layer.

  • Valid records at destination offset 512 and scratch offset 768 record two builds and complete one submission. A direct desktop GPU-address control also records two builds and completes one submission. The 12 DWORDs match each other and the independent expected hit, miss, and mask-filtered miss. Five placements release; the EXE exits 42.
  • When the second scratch extent is one byte short or its address is unregistered, the first rejection is index 1 with E_INVALIDARG. The recorder sees zero builds and zero completed submissions. No output files appear, all five placements release, and the EXE exits 22.
cmake --build --preset release --target cpu_placed_dxr_lifted cpu_placed_draw_lifted startup_stream_consumer offscreen_check pe_map
ctest --preset release --no-tests=error -R '^(cpu_placed_(dxr|draw)_(warp|hardware)|dxr_(placed_build|address_ranges)_(warp|hardware))$' -j 2 --output-on-failure

Local Release at 91aefe89: 8 passed, 0 failed, 0 skipped. All three-runner inputs and geometry are source-built.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6578286125 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1356). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T09:03:55Z. --- Refs #874, #1326 and #1320. This exercises where the guest build records come from. An original, source-built x64 EXE writes two 16-byte destination/scratch records and calls an explicit fixture DLL import. The static translation lifts those same offsets, writes, branches and import calls from the PE machine code. The DLL applies the production placement resolver to both records before recording either build. This two-record layout is a test interface. Native Windows and `pe_map` use the same input image. The linked AOT image exports that input's SHA-256 (`de5514aebcb8b91c9e6f7f9a9bdd841c9212d0b3ebe319c792a8fd8904be32e4`). Each of the three runners independently checked each case on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), Windows 11 build 26200.9974. The new provider ran without a debug layer. * Valid records at destination offset 512 and scratch offset 768 record two builds and complete one submission. A direct desktop GPU-address control also records two builds and completes one submission. The 12 DWORDs match each other and the independent expected hit, miss, and mask-filtered miss. Five placements release; the EXE exits 42. * When the second scratch extent is one byte short or its address is unregistered, the first rejection is index 1 with `E_INVALIDARG`. The recorder sees zero builds and zero completed submissions. No output files appear, all five placements release, and the EXE exits 22. ```powershell cmake --build --preset release --target cpu_placed_dxr_lifted cpu_placed_draw_lifted startup_stream_consumer offscreen_check pe_map ctest --preset release --no-tests=error -R '^(cpu_placed_(dxr|draw)_(warp|hardware)|dxr_(placed_build|address_ranges)_(warp|hardware))$' -j 2 --output-on-failure ``` Local Release at `91aefe89`: 8 passed, 0 failed, 0 skipped. All three-runner inputs and geometry are source-built.
upstream-sync closed this pull request 2026-11-24 10:02:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1349
No description provided.