Repository navigation
Conversation
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.
Coordination claim
Depends on: #4011, #5092 (overlap in the builder and regenerated shader only). This branch applies independently to main.
What changed
An invertible TLAS instance matrix can have a determinant outside the float32 range. Mixed scales can also overflow or underflow an inverse cofactor while the determinant remains representable. The builder could drop the instance or store an incorrect inverse in these cases.
For extreme transforms, normalize each matrix row by a power of two before inverting and undo that scaling in the result. The ordinary inverse path is retained for normal-range transforms. Singular controls still produce inactive instances. Nearly dependent rows and widely varying components within a single row remain subject to float32 precision.
Verification
spirv-val --target-env vulkan1.2.Synthetic geometry only. AI-assisted (Codex).