Repository navigation
Conversation
… Direct3D folds exp2(log2) back (D700)
Contributor
|
Claude finished @lnorton89's task in 28s —— View job Review of PR #155The code change looks correct to me. Findings:
I found no problems with unsafe, panics, wildcard arms, per-frame paths or |
This branch has not been deployed
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.
D301 spelled
pow(x, y)asexp2(log2(x) * (y))on ES, so a negative base would give NaN under ANGLE as on the native drivers. Measured on LIGHTNING's RX 580 (AMD.md Task A15, R24), it had no effect. Direct3D folds the rewrite back and takeslog2(|x|), sosprinklesandPLUSstill rendered almost black on ANGLE.The ES rewrite now emits
strobe_pow(x, y). The ES preamble defines it for float and vec2 to vec4, as a NaN built from its bits where the base is negative, andexp2(log2(x) * y)elsewhere. I tried two spellings in a probe scene on native and ANGLE first; only this one matched on both.Result (RX 580, 640x360, mean RGB):
PLUSnow draws native's grid. What's left is how each driver carries the NaN afterwards: native's NaN regions end white, Direct3D's black. D700 records why that isn't chased.Tests: the strobe-scene unit and property tests are updated for the new spelling (226 + 4 pass). Clippy and fmt are clean, and the conventions tests pass. CI's Linux render lane compiles every scene in both dialects.
Not measured: Intel, and ANGLE's Vulkan backend.