shader: complete gfx1013 floating-point comparison predicate coverage #158

Manually merged
github merged 1 commit from gh-pr/158/head into gh-pr/158/base 2026-11-26 21:31:09 +00:00
Owner

@⁠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 UTC

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. Both pixel_aot_hardware (RTX 4060) and pixel_aot_warp passed. Windows build 26300.9974, NVIDIA 610.88.

Reproduce after a dev build:

ctest --preset dev --no-tests=error -R '^pixel_aot_(warp|hardware)$' -V
**@⁠descent81** on GitHub · 2026-11-21 17:46 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/158) `descent81:shader/fp32-comparison-predicates` → `main` · +44 −2 · 4 files · 1 commits · merged 2026-11-21 17:48 UTC 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. Both `pixel_aot_hardware` (RTX 4060) and `pixel_aot_warp` passed. Windows build 26300.9974, NVIDIA 610.88. Reproduce after a dev build: ```powershell ctest --preset dev --no-tests=error -R '^pixel_aot_(warp|hardware)$' -V ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:31:04 +00:00
github manually merged commit 624f09873b into gh-pr/158/base 2026-11-26 21:31:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.