startup: publish acceleration-structure views on device slot 70 #1931
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1938"
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 tedin7 on 2026-11-24T21:56:44Z.
Related to #870 and #1758 (no
Fixes).What changes
Device slot 70 now publishes a
D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTUREview instead of refusing it asunsupported_description.src/startup_stubs/memory_srv_as.h. The address is the view'sLocation, or the call's address whenLocationis zero. The resource description is not read for these views.as_unaligned);as_not_placed), found withplaced_buffer_rangeunchanged;D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE(as_wrong_state).(acceleration structure view).startup_address_buffer_srv_check.pyexpectsas_wrong_statefor its placed COMMON buffer.placed_build.handresolve_placed_buildare untouched.Checks run locally (Linux)
Not run
The slot 70 hook in
d3d12_memory_srv.inland the updatedstartup_address_srv/startup_address_buffer_srvexpectations need a Windows build and WARP run. They have not been compiled or executed. No device publishes a real AS view yet: the pure resolver is tested, the device path is not.AI-assisted; commands listed were executed locally.
Replaces closed draft #1800 (rebased cleanly on origin/main and verified on Win2025).
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T21:56:57Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
6791884ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:18:53Z.
Review: CHANGES_REQUESTED
The unit controls cover the translated address and the integrated slot 70 case covers a refused wrong-state buffer. Please add one accepted slot 70 case that creates a real AS descriptor and consumes it in a ray query or DispatchRays readback. The fixture can reuse the placed build already in #1326/#1356, place the AS at a nonzero offset, and check a hit/miss or a distinct AS as the control. Keep the rejection check that proves the previous descriptor remained intact. The new production path passes a null resource plus a translated GPU VA to CreateShaderResourceView, so a resolver-only success cannot verify this call.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:23:46Z.
Pushed
585f49econ top ofacd07be8(normal push).Verification (Win2025, build 26100, MSVC 14.44, D3D12 WARP,
devandreleasepresets, same change applied as a patch onacd07be8):ctest -R '^(dxr_.*_warp|cpu_placed_dxr_warp|startup_memory_srv_as.*|startup_address_buffer_srv_warp|startup_address_srv_warp)$': 18/18 passed in both presets, includingdxr_slot70_as_warp.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:28:09Z.
Review: APPROVED
Rechecked
4f16ce11. Windows Release passed 8/8 on the selected slot-70, address-buffer and validation checks. On WARP and RTX 4060 Laptop the accepted fixture published the placed TLAS view and consumed it from a real descriptor table in a ray query. The direct-address reference matched and the decoy changed the result. The refusal cases preserved the previous descriptor. This clears my earlier request for an end-to-end accepted case.