Resolve placed AS and scratch ranges for a desktop DXR build #1319

Merged
R0Y00 merged 2 commits from upstream-pr/1326 into main 2026-11-24 08:22:07 +00:00
R0Y00 commented 2026-11-24 08:09:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:09:47Z.


Refs #874, #1307 and #1316. This is one commit on #1316. Please merge #1316 first, then retarget this PR to main.

The startup shim accepts a buffer in the explicit desktop AS creation state and retains its role in the slot-133 placement record. The internal build preparation uses the same per-device range lookup as vertex binding. It validates each destination and scratch span against the corresponding prebuild size before publishing either address. Ordinary vertex and DXR tests exercise the same lookup. The source-built fixture calls the desktop build API directly. Connecting a console build command still requires its verified ABI.

The fixture registers BLAS and TLAS destinations at +512 bytes, and two independent scratch buffers at +768. It checks each offset against its GPU base. An unmapped destination, a TLAS scratch extent one byte short and swapped roles return E_INVALIDARG before command recording. After valid builds, three rays read back 12/12 expected words on each adapter (instance 7 at distance one, spatial miss and masked miss).

Windows 11 26200.9974, debug layer on BLAS result / scratch bytes TLAS result / scratch bytes Debug errors / warnings
RTX 4060 Laptop 32.0.16.1656 2304 / 1920 2048 / 2176 0 / 0
WARP 10.0.26100.9818 100 / 120 168 / 212 0 / 0

Fresh Windows Release build at 641be458, 12 passed, 0 failed, 0 skipped.

cmake --build --preset release --target offscreen_check startup_stream_consumer
ctest --preset release --no-tests=error --output-on-failure -R '^(dxr_(placed_build|address_ranges|pipeline|update)|startup_placed_vertex_)'
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6577435626 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1326). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T08:09:47Z. --- Refs #874, #1307 and #1316. This is one commit on #1316. Please merge #1316 first, then retarget this PR to main. The startup shim accepts a buffer in the explicit desktop AS creation state and retains its role in the slot-133 placement record. The internal build preparation uses the same per-device range lookup as vertex binding. It validates each destination and scratch span against the corresponding prebuild size before publishing either address. Ordinary vertex and DXR tests exercise the same lookup. The source-built fixture calls the desktop build API directly. Connecting a console build command still requires its verified ABI. The fixture registers BLAS and TLAS destinations at +512 bytes, and two independent scratch buffers at +768. It checks each offset against its GPU base. An unmapped destination, a TLAS scratch extent one byte short and swapped roles return E_INVALIDARG before command recording. After valid builds, three rays read back 12/12 expected words on each adapter (instance 7 at distance one, spatial miss and masked miss). |Windows 11 26200.9974, debug layer on|BLAS result / scratch bytes|TLAS result / scratch bytes|Debug errors / warnings| |---|---:|---:|---:| |RTX 4060 Laptop 32.0.16.1656|2304 / 1920|2048 / 2176|0 / 0| |WARP 10.0.26100.9818|100 / 120|168 / 212|0 / 0| Fresh Windows Release build at 641be458, 12 passed, 0 failed, 0 skipped. ```powershell cmake --build --preset release --target offscreen_check startup_stream_consumer ctest --preset release --no-tests=error --output-on-failure -R '^(dxr_(placed_build|address_ranges|pipeline|update)|startup_placed_vertex_)' ```
upstream-sync closed this pull request 2026-11-24 09:04:31 +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!1319
No description provided.