shader: preserve the unordered case in NLG comparisons #187

Manually merged
github merged 2 commits from gh-pr/187/head into gh-pr/187/base 2026-11-26 21:33:04 +00:00
Owner

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

Change

Refs #179. Lower v_cmp_nlg_f32 as 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 a07738d the 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:

cmake --build --preset dev --target offscreen_check
ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$' -V
python -B tests/pixel_aot_check.py draw <configured-dxc> out/build/dev/offscreen_check.exe warp

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

  • One reviewable behavior.
  • Commands and results included.
  • Previous DXIL lowering fails the new control.
  • Experiment notes updated.
  • No game files, dumps, distribution links or secrets.

AI-assisted.

**@⁠Vonsek** on GitHub · 2026-11-21 18:10 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/187) `Vonsek:codex/shader-unordered-equality` → `main` · +14 −3 · 3 files · 2 commits · merged 2026-11-21 18:14 UTC ## Change Refs #179. Lower `v_cmp_nlg_f32` as 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 a07738d the 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: ```powershell cmake --build --preset dev --target offscreen_check ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$' -V python -B tests/pixel_aot_check.py draw <configured-dxc> out/build/dev/offscreen_check.exe warp ``` 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 - [x] One reviewable behavior. - [x] Commands and results included. - [x] Previous DXIL lowering fails the new control. - [x] Experiment notes updated. - [x] No game files, dumps, distribution links or secrets. AI-assisted.
Avoid the ordered compare chain implicated in the RX 9070 XT readback mismatch while preserving equality for signed zero.
Retain the new arithmetic coverage alongside the unordered comparison regression.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:33:02 +00:00
github manually merged commit b41a07cdf8 into gh-pr/187/base 2026-11-26 21:33:04 +00:00
Author
Owner

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T18:13:37.597387Z a07738d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-21 18:10 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/187#issuecomment-7067061006) · edited 2026-11-21 18:13 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a07738d9f92637bdbfa559374e5dd599806fd8e1","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-21T18:13:37.597387Z">2026-11-21T18:13:37.597387Z</relative-time> | `a07738d` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.