Resolve placed AS and scratch ranges for a desktop DXR build #1319
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1326"
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-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).
Fresh Windows Release build at
641be458, 12 passed, 0 failed, 0 skipped.