Repository navigation
D3D12: micromap prebuild query passes dummy non-zero addresses - #320
Merged
Merged
Conversation
"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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
Collaborator
|
Agree. Thanks. Merged! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeviceD3D12::GetMicromapPrebuildInfo(DeviceD3D12.hpp:1643, since d4a39c1) sizes an OMM arrayfrom the usage histogram and leaves
InputBufferandPerOmmDescsnull, while every build passesreal 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 nullMeasured 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 itthe error is gone, and committed, bound, placed, cloned and compacted micromaps trace as before.