shader: lower binary32 subrev, sqrt, rsq, floor, trunc, fract and clamp in the dispatch translator #1216

Merged
tedin7 merged 3 commits from upstream-pr/1223 into main 2026-11-24 08:25:28 +00:00
tedin7 commented 2026-11-24 04:22:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:22:17Z.


Change

Adds v_subrev_f32, v_sqrt_f32, v_rsq_f32, v_floor_f32, v_trunc_f32 and v_fract_f32 to the float table of tools/ffx_dispatch_aot.py, and accepts the VOP3 clamp output modifier on every operation in that table (lowered to saturate). The e32 encoding, clamp combined with mul:2, integer operations and a wrong source count on the six new operations are still refused. The previous test that expected v_add_f32_e64 ... clamp to be refused is replaced by an acceptance check, because that behavior is what changes here; the other rejection cases are kept. No CPU target is touched. AI-assisted.

Verification

  • python3 -B tests/ffx_dispatch_aot_check.py llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM.so.19.1: exit 0.
  • Same test with LLVM 15.0.6 (llvm-mc, llvm-objcopy, libLLVM-15.so.1 extracted from the Debian packages into a temporary folder): exit 0. LLVM 15 and 19 print identical spellings for all new forms.
  • python3 -B tests/rdna2_tools_check.py: exit 0.
  • On origin/main the new test fails (Unsupported float modifier for v_add_f32_e64: clamp); with the change it passes.
  • The generated lines are evaluated on the CPU with a Python model of the HLSL intrinsics and compared with fixed expected binary32 words (exact-result inputs). 17 wrong lowerings (swapped subtract operands, sqrt/rsq and floor/trunc swapped, x - trunc(x) for fract, dropped clamp, upper-only and lower-only clamp) each disagree on a fixed set of rows.
  • Not run: the new Windows readback ffx_float_math_warp (--readback-float-math). It mirrors ffx_float_to_int_warp; no Windows adapter, dxc or host executable was available here.

Evidence and follow-up

Fixtures are synthetic one-line assembly programs written for this test; the expected words are tabulated constants. sqrt and rsq lower to the HLSL intrinsics and no bit-exact claim is made (readback allows one ulp for those two). NaN, signed zero, subnormal and infinite inputs, and how clamp treats NaN, are not covered. A clamp on fract is indistinguishable from none (the result is already below 1). Documented in docs/experiments.md under "Float math and clamp in translated dispatches".

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6574556017 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:22:17Z. --- ## Change Adds `v_subrev_f32`, `v_sqrt_f32`, `v_rsq_f32`, `v_floor_f32`, `v_trunc_f32` and `v_fract_f32` to the float table of `tools/ffx_dispatch_aot.py`, and accepts the VOP3 `clamp` output modifier on every operation in that table (lowered to `saturate`). The e32 encoding, `clamp` combined with `mul:2`, integer operations and a wrong source count on the six new operations are still refused. The previous test that expected `v_add_f32_e64 ... clamp` to be refused is replaced by an acceptance check, because that behavior is what changes here; the other rejection cases are kept. No CPU target is touched. AI-assisted. ## Verification - `python3 -B tests/ffx_dispatch_aot_check.py llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM.so.19.1`: exit 0. - Same test with LLVM 15.0.6 (`llvm-mc`, `llvm-objcopy`, `libLLVM-15.so.1` extracted from the Debian packages into a temporary folder): exit 0. LLVM 15 and 19 print identical spellings for all new forms. - `python3 -B tests/rdna2_tools_check.py`: exit 0. - On `origin/main` the new test fails (`Unsupported float modifier for v_add_f32_e64: clamp`); with the change it passes. - The generated lines are evaluated on the CPU with a Python model of the HLSL intrinsics and compared with fixed expected binary32 words (exact-result inputs). 17 wrong lowerings (swapped subtract operands, sqrt/rsq and floor/trunc swapped, `x - trunc(x)` for fract, dropped clamp, upper-only and lower-only clamp) each disagree on a fixed set of rows. - Not run: the new Windows readback `ffx_float_math_warp` (`--readback-float-math`). It mirrors `ffx_float_to_int_warp`; no Windows adapter, `dxc` or host executable was available here. ## Evidence and follow-up Fixtures are synthetic one-line assembly programs written for this test; the expected words are tabulated constants. sqrt and rsq lower to the HLSL intrinsics and no bit-exact claim is made (readback allows one ulp for those two). NaN, signed zero, subnormal and infinite inputs, and how clamp treats NaN, are not covered. A clamp on fract is indistinguishable from none (the result is already below 1). Documented in `docs/experiments.md` under "Float math and clamp in translated dispatches". ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
chatgpt-codex-connector[bot commented 2026-11-24 06:47:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T04:29:22Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d90a8cf5d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033662152 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#pullrequestreview-6033662152). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T04:29:22Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `1d90a8cf5d` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
tedin7 commented 2026-11-24 06:47:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:34:23Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033695920 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#pullrequestreview-6033695920). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:34:23Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-24 06:50:20 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:34:26Z.


AI-assisted update: v_fract_f32 in the dispatch translator is now capped at 0x3f7fffff (same bound as the pixel translator), with a -2^-30 row in both fract tables and a mutation that drops the cap. The new row fails on the previous commit and passes now. docs/experiments.md updated.

@codex review

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122142473 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7122142473). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:34:26Z. --- AI-assisted update: `v_fract_f32` in the dispatch translator is now capped at `0x3f7fffff` (same bound as the pixel translator), with a -2^-30 row in both fract tables and a mutation that drops the cap. The new row fails on the previous commit and passes now. docs/experiments.md updated. @codex review
chatgpt-codex-connector[bot commented 2026-11-24 06:50:20 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T04:38:25Z.


Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 02b2b2ed2d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122203572 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7122203572). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T04:38:25Z. --- <!-- codex-review-receipt:v1 --> Codex Review: Didn't find any major issues. :tada: **Reviewed commit:** `02b2b2ed2d` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
tedin7 commented 2026-11-24 06:50:22 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:57:01Z.


Windows Server 2025 verification (02b2b2ed) — PASS (Debug + Release /O2, WARP)

  • Environment: Windows Server 2025 Build 26100, MSVC 14.44.35207, AMD Ryzen 5 PRO 5650U, D3D12 WARP
  • Debug (--preset dev) (16.11s build+test):
    • cmake --build --preset dev -j 6 --target offscreen_check ffx_pass26_lds
    • ctest --test-dir out\build\dev -R "^ffx_.*_warp$" --output-on-failure -> 7/7 passed (0 skipped, 2.80s; ffx_float_math_warp 0.99s)
  • Release /O2 (--preset release) (18.39s configure+build+test):
    • cmake --preset release && cmake --build --preset release -j 6 --target offscreen_check ffx_pass26_lds
    • ctest --test-dir out\build\release -R "^ffx_.*_warp$" --output-on-failure -> 7/7 passed (0 skipped, 2.47s; ffx_float_math_warp 0.84s)
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122485003 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7122485003). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:57:01Z. --- Windows Server 2025 verification (`02b2b2ed`) — **PASS (Debug + Release `/O2`, WARP)** - **Environment**: Windows Server 2025 Build 26100, MSVC 14.44.35207, AMD Ryzen 5 PRO 5650U, D3D12 WARP - **Debug (`--preset dev`)** (16.11s build+test): - `cmake --build --preset dev -j 6 --target offscreen_check ffx_pass26_lds` - `ctest --test-dir out\build\dev -R "^ffx_.*_warp$" --output-on-failure` -> **7/7 passed** (0 skipped, 2.80s; `ffx_float_math_warp` 0.99s) - **Release `/O2` (`--preset release`)** (18.39s configure+build+test): - `cmake --preset release && cmake --build --preset release -j 6 --target offscreen_check ffx_pass26_lds` - `ctest --test-dir out\build\release -R "^ffx_.*_warp$" --output-on-failure` -> **7/7 passed** (0 skipped, 2.47s; `ffx_float_math_warp` 0.84s)
tedin7 commented 2026-11-24 06:50:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T05:27:38Z.


AI-assisted. Fixed in 8b5a7124: the dispatch v_fract_f32 cap is now a comparison (frac(x) >= 1.0f ? asfloat(0x3f7fffffu) : frac(x)) instead of min, so a NaN input stays a NaN (D3D min returns its other operand for a NaN). The check now covers a NaN input and the old min form as a control.

@codex review

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122968068 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7122968068). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T05:27:38Z. --- AI-assisted. Fixed in 8b5a7124: the dispatch `v_fract_f32` cap is now a comparison (`frac(x) >= 1.0f ? asfloat(0x3f7fffffu) : frac(x)`) instead of `min`, so a NaN input stays a NaN (D3D `min` returns its other operand for a NaN). The check now covers a NaN input and the old `min` form as a control. @codex review
chatgpt-codex-connector[bot commented 2026-11-24 06:50:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T05:31:34Z.


Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 8b5a7124c1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123029646 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7123029646). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T05:31:34Z. --- <!-- codex-review-receipt:v1 --> Codex Review: Didn't find any major issues. Keep them coming! **Reviewed commit:** `8b5a7124c1` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
chatgpt-codex-connector[bot commented 2026-11-24 06:50:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T04:24:21Z.


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-24T05:31:35.661513Z 8b5a712 Manual request
ℹ️ 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121988369 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7121988369). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T04:24:21Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"8b5a7124c1e4dab2b1e82725ccb121bcad880a4a","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-24T05:31:35.661513Z">2026-11-24T05:31:35.661513Z</relative-time> | `8b5a712` | Manual request | <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>
tedin7 commented 2026-11-24 06:50:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T06:14:07Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207, D3D12 WARP) at 8b5a7124:

  • Debug (--preset dev): 27/27 PASS (13.60s), including ffx_float_math_warp (1.01s), ffx_float_to_int_warp (0.53s), ffx_immediate_float_to_int_warp (0.57s), ffx_pass26_lds_warp (0.33s)
  • Release /O2 (--preset release): 27/27 PASS (12.96s), including ffx_float_math_warp (0.91s), ffx_float_to_int_warp (0.51s), ffx_immediate_float_to_int_warp (0.50s), ffx_pass26_lds_warp (0.31s)
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123723605 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#issuecomment-7123723605). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T06:14:07Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207, D3D12 WARP) at `8b5a7124`: - Debug (`--preset dev`): **27/27 PASS** (`13.60s`), including `ffx_float_math_warp` (`1.01s`), `ffx_float_to_int_warp` (`0.53s`), `ffx_immediate_float_to_int_warp` (`0.57s`), `ffx_pass26_lds_warp` (`0.33s`) - Release `/O2` (`--preset release`): **27/27 PASS** (`12.96s`), including `ffx_float_math_warp` (`0.91s`), `ffx_float_to_int_warp` (`0.51s`), `ffx_immediate_float_to_int_warp` (`0.50s`), `ffx_pass26_lds_warp` (`0.31s`)
chatgpt-codex-connector[bot commented 2026-11-24 06:50:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T04:29:22Z.

Code review location: tools/ffx_dispatch_aot.py; line 86

@@ -82,7 +82,12 @@ def assign(names, values):
     "log_f32": "log2({0})", "rndne_f32": "round({0})", "rcp_f32": "rcp({0})",
     "min_f32": "min({0},{1})", "max_f32": "max({0},{1})", "med3_f32": "median_f({0},{1},{2})",
     "fma_f32": "mad({0},{1},{2})", "fmamk_f32": "mad({0},{1},{2})", "fmac_f32": "mad({0},{1},{d})",
+    "subrev_f32": "{1}-{0}", "sqrt_f32": "sqrt({0})", "rsq_f32": "rsqrt({0})",
+    "floor_f32": "floor({0})", "trunc_f32": "trunc({0})", "fract_f32": "frac({0})",

P2 Badge Preserve the strict upper bound of v_fract_f32

For small negative normal inputs such as −2⁻³⁰ (0xb0800000), D3D frac can return 1.0 (0x3f800000), whereas RDNA v_fract_f32 must cap the result at 0x3f7fffff. This exact adapter-dependent discrepancy is already handled by fract32 in tools/pixel_aot.py:319-321 and documented in docs/experiments.md:4257. The new mapping omits that bound, and the e64 output saturate still leaves 1.0 unchanged, so translated dispatches produce incorrect register words on affected adapters. Apply the same upper-bound correction here and add the existing small-negative regression input to FLOAT_MATH.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4675526612 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#discussion_r4675526612). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T04:29:22Z. **Code review location:** `tools/ffx_dispatch_aot.py`; line 86 ~~~~diff @@ -82,7 +82,12 @@ def assign(names, values): "log_f32": "log2({0})", "rndne_f32": "round({0})", "rcp_f32": "rcp({0})", "min_f32": "min({0},{1})", "max_f32": "max({0},{1})", "med3_f32": "median_f({0},{1},{2})", "fma_f32": "mad({0},{1},{2})", "fmamk_f32": "mad({0},{1},{2})", "fmac_f32": "mad({0},{1},{d})", + "subrev_f32": "{1}-{0}", "sqrt_f32": "sqrt({0})", "rsq_f32": "rsqrt({0})", + "floor_f32": "floor({0})", "trunc_f32": "trunc({0})", "fract_f32": "frac({0})", ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Preserve the strict upper bound of v_fract_f32** For small negative normal inputs such as −2⁻³⁰ (`0xb0800000`), D3D `frac` can return `1.0` (`0x3f800000`), whereas RDNA `v_fract_f32` must cap the result at `0x3f7fffff`. This exact adapter-dependent discrepancy is already handled by `fract32` in `tools/pixel_aot.py:319-321` and documented in `docs/experiments.md:4257`. The new mapping omits that bound, and the e64 output `saturate` still leaves `1.0` unchanged, so translated dispatches produce incorrect register words on affected adapters. Apply the same upper-bound correction here and add the existing small-negative regression input to `FLOAT_MATH`. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
tedin7 commented 2026-11-24 06:50:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:34:23Z.

Code review location: tools/ffx_dispatch_aot.py; line 86

@@ -82,7 +82,12 @@ def assign(names, values):
     "log_f32": "log2({0})", "rndne_f32": "round({0})", "rcp_f32": "rcp({0})",
     "min_f32": "min({0},{1})", "max_f32": "max({0},{1})", "med3_f32": "median_f({0},{1},{2})",
     "fma_f32": "mad({0},{1},{2})", "fmamk_f32": "mad({0},{1},{2})", "fmac_f32": "mad({0},{1},{d})",
+    "subrev_f32": "{1}-{0}", "sqrt_f32": "sqrt({0})", "rsq_f32": "rsqrt({0})",
+    "floor_f32": "floor({0})", "trunc_f32": "trunc({0})", "fract_f32": "frac({0})",

Fixed in 02b2b2ed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4675556030 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1223#discussion_r4675556030). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:34:23Z. **Code review location:** `tools/ffx_dispatch_aot.py`; line 86 ~~~~diff @@ -82,7 +82,12 @@ def assign(names, values): "log_f32": "log2({0})", "rndne_f32": "round({0})", "rcp_f32": "rcp({0})", "min_f32": "min({0},{1})", "max_f32": "max({0},{1})", "med3_f32": "median_f({0},{1},{2})", "fma_f32": "mad({0},{1},{2})", "fmamk_f32": "mad({0},{1},{2})", "fmac_f32": "mad({0},{1},{d})", + "subrev_f32": "{1}-{0}", "sqrt_f32": "sqrt({0})", "rsq_f32": "rsqrt({0})", + "floor_f32": "floor({0})", "trunc_f32": "trunc({0})", "fract_f32": "frac({0})", ~~~~ --- Fixed in 02b2b2ed.
upstream-sync closed this pull request 2026-11-24 09:04:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1216
No description provided.