shader: preserve the unordered case in NLG comparisons #187
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!187
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/187/head"
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?
@Vonsek on GitHub · 2026-11-21 18:10 UTC · original
Vonsek:codex/shader-unordered-equality→main· +14 −3 · 3 files · 2 commits · merged 2026-11-21 18:14 UTCChange
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.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 18:10 UTC · original · edited 2026-11-21 18:13 UTC
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.