shader: complete gfx1013 floating-point comparison predicate coverage #158
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!158
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/158/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?
@descent81 on GitHub · 2026-11-21 17:46 UTC · original
descent81:shader/fp32-comparison-predicates→main· +44 −2 · 4 files · 1 commits · merged 2026-11-21 17:48 UTCThe pixel translator already handled 14 FP32 comparison predicates. This adds the always-false and always-true forms and checks all 16 against an independent four-bit truth table.
Four source-built shaders export four predicate results each. Inputs cover less, signed-zero equality, greater, and a quiet NaN on either side. Changing the NaN operand to an equal finite value while keeping the unordered reference produces the expected pixel mismatch.
Validation on base
50b0c81: all four fixtures round-tripped through the LLVM 15 gfx1013 assembler and disassembler. Bothpixel_aot_hardware(RTX 4060) andpixel_aot_warppassed. Windows build 26300.9974, NVIDIA 610.88.Reproduce after a dev build: