shader: complete gfx1013 floating-point comparison predicate coverage #157
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/158"
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 descent81 on 2026-11-21T17:46:05Z.
The 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: