shader: preserve the unordered case in NLG comparisons #186
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/187"
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 Vonsek on 2026-11-21T18:10:34Z.
Change
Refs #179. Lower
v_cmp_nlg_f32as equality plus an explicit unordered test. The earlier lowering produced a chain of ordered comparisons on the reported RX 9070 XT driver. The regression compiles an isolated NLG predicate so another predicate cannot supply the NaN test.Verification
At
a07738dthe new DXIL check failed before the lowering change with “NLG lacks an explicit unordered comparison in DXIL”. With the change, the following passed on Windows x64:Both CTest cases passed on RTX 5080 (32.0.16.1692) and WARP (10.0.26100.9818). The predicate readback includes NaN on either side and signed zero. No pixel mismatch or capability skip.
Evidence and follow-up
The added shader is generated from original MIT-licensed fixture source. A retest of the two reported NaN draws on RX 9070 XT driver 32.0.32015.7029 would verify the device-specific result; that adapter was unavailable here.
Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:10:48Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
a07738dℹ️ 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.