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

Manually merged
github merged 2 commits from gh-pr/1326/head into gh-pr/1326/base 2026-11-26 22:58:17 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-24 08:09 UTC · original
R0Y00:codex/slot133-dxr-build → main · +202 −27 · 10 files · 2 commits · merged 2026-11-24 08:22 UTC

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_)'
**@⁠R0Y00** on GitHub · 2026-11-24 08:09 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1326) `R0Y00:codex/slot133-dxr-build` → `main` · +202 −27 · 10 files · 2 commits · merged 2026-11-24 08:22 UTC 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_)' ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:58:15 +00:00
github manually merged commit fcbe10bc21 into gh-pr/1326/base 2026-11-26 22:58:16 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.