Skip to content

D3D12: micromap prebuild query passes dummy non-zero addresses - #320

Merged
dzhdanNV merged 1 commit into
NVIDIA-RTX:mainfrom
Nullpoint56:d3d12-micromap-prebuild
Nov 7, 2026
Merged

dzhdanNV merged 1 commit into
NVIDIA-RTX:mainfrom
Nullpoint56:d3d12-micromap-prebuild

Conversation

@Nullpoint56

Copy link
Copy Markdown
Contributor

DeviceD3D12::GetMicromapPrebuildInfo (DeviceD3D12.hpp:1643, since d4a39c1) sizes an OMM array
from the usage histogram and leaves InputBuffer and PerOmmDescs null, while every build passes
real addresses. The DXR spec (GetRaytracingAccelerationStructurePrebuildInfo) allows the query to
inspect whether GPU addresses are null, "even though the pointers are not dereferenced", and says
"dummy non-zero values can be used just for the purposes for the prebuild call". The Agility debug
layer refuses the nulls at every micromap creation:

[1162] GetRaytracingAccelerationStructurePrebuildInfo: pDesc->pOpacityMicromapArrayDesc->pOmmHistogram indicate 2 OMMs in total, so InputBuffer and PerOmmDescs can't be null

Measured on v191, Agility 1.620, RTX 4070 SUPER. This passes 256 for both (InputBuffer must be
128-byte aligned, PerOmmDescs 4-byte) with the build's stride, sizeof(MicromapTriangle). With it
the error is gone, and committed, bound, placed, cloned and compacted micromaps trace as before.

"GetMicromapPrebuildInfo" left "InputBuffer" and "PerOmmDescs" null, while every build passes real
addresses. The DXR spec lets the prebuild query inspect whether GPU addresses are null and names dummy
non-zero values for this case; the debug layer refused the nulls at every micromap creation ([1162]).
Pass 256 for both (128- and 4-byte aligned) with the build's stride.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T00:30:16.096445Z be9e6f8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dzhdanNV
dzhdanNV merged commit 257899a into NVIDIA-RTX:main Nov 7, 2026
@dzhdanNV

dzhdanNV commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Agree. Thanks. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants