Resolve placed AS and scratch ranges for a desktop DXR build #1326
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1326
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1326/head"
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?
@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 UTCRefs #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.