tools: hold the ALU check's float results to the native RDNA 2 reference #446

Merged
JeffreyBytes merged 5 commits from upstream-pr/446 into main 2026-11-30 19:11:58 +00:00
JeffreyBytes commented 2026-11-29 05:08:02 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-29T05:08:02Z.


Summary

Holds check_basic_alu_gpu.py's float results to the hardware reference from #420 instead of its own looser models. At this head it passes on the RX 6700 XT. An RTX 3090 and an RTX 5090, run by contributors (thanks @snoozedDev and @NickStallman), passed it at 0f6af00, before #571 was merged; see Tested.

Five commits:

  1. tools: judge the ALU check's float results by the native RDNA 2 reference. The check's programs never write MODE, so they run under 0xc0. The float instructions the native routes ran now expect rdna2_float.py's words under that mode: denormal sources flushed, signaling NaNs passed through, one rounding for the fused forms, -0 below +0 for min and max. Float.matches now looks at also when the expectation is a NaN; it used to return before it got there.
  2. tools: feed the ALU check the native float reference's edges and triples. FLOAT_EDGE had no f32 denormal, no signaling NaN and no negative NaN, and the random values stay between 2^-30 and 2^30, so the check never fed in a source the card flushes. It now takes the reference's edge values and its chosen triples (products whose fused and separate sums differ, results tiny after rounding). Lanes stay deterministic. The DX9 multiply-adds keep the shader of their own and the ∞ × denormal triple #571 gave them, ahead of the shared triples.
  3. tools: tolerate what NVIDIA hosts do to NaN and denormal float results, by name. What the first NVIDIA run showed, below.
  4. tests: hold the approximate models' flushed and kept sides apart. test_native_rdna2_approx landed on main while this was open and still expected the old models' rejections for v_rcp_f32 and its relatives. It now checks that the flushed side accepts every word the card gives and the kept side rejects the same lanes as before.
  5. tools: drop the v_mac_legacy_f32 fault that #571 fixed. #571 made v_mac_legacy_f32 keep the DX9 multiply, so it's now held to the same model as v_mad_legacy_f32, with only the console's rounding left open.

Why

With the new inputs and the old models, 27 instructions fail on the RX 6700 XT, and for the ones the reference covers it's the model that's wrong and the GPU that's right: the models compute from denormal sources the card flushes. For example v_ceil_f32(0x00000001) is +0 on the card and 1.0 in the model, and v_mul_f32 of 0x7f7fffff × 0x00000001 is 0 on the card.

What still passes without being exact

The blanket slack is gone (any NaN, either zero sign, fused or not). What a host may still do differently is named, and the receipt counts it under tolerated:

  • another NaN source: with several NaN sources, which one comes back. SPIR-V doesn't say and compilers reorder operands. Between my two cards the count for v_fma_f32 was 5 lanes on one and 2 on the other, same shader.
  • console rounding unknown: v_mac_f32, v_mad_f32, v_madak_f32, v_madmk_f32 rounded once or twice. gfx1030 doesn't have them, so the reference can't say.
  • unmeasured: v_med3_f32, v_cubesc_f32, v_cubetc_f32 reading a denormal source as it is. No hardware result for those yet.
  • translator fault: mad rounded twice: v_fma_f32 in the shader where a v_mul_f32 shares its product. This is the one from #333 that the check already accepted either way; it's still accepted, it's just counted by name now. It's modeled exactly, so the check will say so when it stops showing.

The other translator fault this found, v_mac_legacy_f32 without the DX9 rule, is fixed by #571, so this no longer tolerates it.

What NVIDIA does differently

The first 3090 run failed 32 instructions, in two groups. Both are now named, and both apply only when --adapter starts with 10de:, so AMD results stay exact:

  • NVIDIA host: canonical NaN: the 3090 returns 0x7fffffff (f32) or 0x7fff (f16) for every NaN result, whatever the sources. Accepted only where the reference, or a word already named for that lane, is a NaN of that width. 656 lanes at 0f6af00. Two of them were v_mac_legacy_f32 lanes where only the DX9-rule fault gave a NaN; with #571 those should now return the card's number.
  • translator fault on NVIDIA: a denormal source read as it is: v_min_f32, v_max_f32, v_floor_f32 and v_ceil_f32 don't flush a denormal f32 source on NVIDIA, where RADV does and the console does. The translator writes them as plain HLSL with no flush. 21 lanes. Modeled exactly; a translator flush is the fix, not done here.

So that answers the question I had before the NVIDIA runs: NVIDIA does flush f32 denormals in general (v_mul_f32(0x7f7fffff, 0x00000001) is 0 on the 3090), except in those four instructions.

Under DXVK an NVIDIA card can report as 1002:73df until dxgi.hideNvidiaGpu = False is set. Pass the real 10de: id; CONSOLE_REFERENCE.md has the details.

The float-forms check shares Float.matches, so I ran it too; it's unchanged and passes.

Doesn't touch the translator or anything the game runs, so I didn't run the game for this.

Tested

  • The checks relevant to this change passed
  • Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below
  • Where the table calls for AMD and NVIDIA, they passed on both. Otherwise, say which vendor still needs to run them: NVIDIA passed at 0f6af00, before #571. A rerun of --only alu --only float-forms at this head would confirm the merge.

No Lanes scenario: this changes what a translator check expects, not provider behaviour.

GPU, driver and backend: RX 6700 XT (1002:73df, RDNA 2), Mesa RADV 26.3.1, GE-Proton11-14, at 58fb8da on main at a564e8c. Earlier heads also ran on a Radeon 890M (1002:150e, RDNA 3.5) and, by contributors at 0f6af00, an RTX 3090 (10de:2204, 615.78.08, results) and an RTX 5090 (10de:2b85, 620.70.10, results).

The Evidence: line tuxbox.py check prints last, one per card (it names the commit it tested; run it on this pull request's head):

Evidence: TuxBox check of 58fb8dae3eda, no uncommitted changes, GPU 1002:73df: 15 passed, 0 failed, 0 not run

Commands run and their results:

python tuxbox.py check --changed --proton <GE-Proton11-14> --prefix <prefix> --windows-dxc <dxc x64> --adapter 1002:73df   (at 58fb8da)
  Changed since origin/main: docs/CONSOLE_REFERENCE.md, tests/..., tools/check_basic_alu_gpu.py
  Code checks: all 13 passed. Build passed. Shader translator on the GPU: all 66 checks PASS, including
  PASS  alu  PASS 362 instructions on 128 inputs, 0 wrong, 1 refused
  PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused
  tolerated: ... v_fma_f32 another NaN source x5, v_fma_f32 translator fault: mad rounded twice x9, v_mac_legacy_f32 another NaN source x2 ...
  (no DX9-rule fault, no NVIDIA name)

Earlier heads, python tools/check_translator_gpu.py ... --only alu --only float-forms:
  Radeon 890M (2871726):  PASS  alu  0 wrong;  PASS  float-forms  0 wrong
  RTX 3090 (0f6af00):     PASS  alu  0 wrong;  PASS  float-forms  0 wrong
                          tolerated: ... NVIDIA host: canonical NaN (32 entries, 656 lanes), translator fault on NVIDIA: a denormal source read as it is (21 lanes) ...
  RTX 5090 (0f6af00):     PASS  alu  0 wrong;  PASS  float-forms  0 wrong

python -m unittest discover -s tests -q   (at 58fb8da)
  Ran 778 tests, OK (skipped=28)

mad rounded twice is x9 here, against x8 before. Whether the driver fuses that mad is its choice per shader, so the count can move. I haven't traced which lane is new.

The one refusal is s_bcnt0_i32_b32 ("needs proven ordinary scalar operands (not a wave mask)"). It's refused on main without this change as well, and it isn't a float instruction.

Checks

No evidence JSON changes. The tests for #420's receipts now also require the ALU models to give every recorded MODE 0xc0 word.

<!-- greyfinch-sync:brcly/TuxBox:issue:5547784366 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-29T05:08:02Z. --- ## Summary Holds `check_basic_alu_gpu.py`'s float results to the hardware reference from #420 instead of its own looser models. At this head it passes on the RX 6700 XT. An RTX 3090 and an RTX 5090, run by contributors (thanks @snoozedDev and @NickStallman), passed it at `0f6af00`, before #571 was merged; see Tested. Five commits: 1. **`tools: judge the ALU check's float results by the native RDNA 2 reference`**. The check's programs never write MODE, so they run under `0xc0`. The float instructions the native routes ran now expect `rdna2_float.py`'s words under that mode: denormal sources flushed, signaling NaNs passed through, one rounding for the fused forms, -0 below +0 for min and max. `Float.matches` now looks at `also` when the expectation is a NaN; it used to return before it got there. 2. **`tools: feed the ALU check the native float reference's edges and triples`**. `FLOAT_EDGE` had no f32 denormal, no signaling NaN and no negative NaN, and the random values stay between 2^-30 and 2^30, so the check never fed in a source the card flushes. It now takes the reference's edge values and its chosen triples (products whose fused and separate sums differ, results tiny after rounding). Lanes stay deterministic. The DX9 multiply-adds keep the shader of their own and the ∞ × denormal triple #571 gave them, ahead of the shared triples. 3. **`tools: tolerate what NVIDIA hosts do to NaN and denormal float results, by name`**. What the first NVIDIA run showed, below. 4. **`tests: hold the approximate models' flushed and kept sides apart`**. `test_native_rdna2_approx` landed on `main` while this was open and still expected the old models' rejections for `v_rcp_f32` and its relatives. It now checks that the flushed side accepts every word the card gives and the kept side rejects the same lanes as before. 5. **`tools: drop the v_mac_legacy_f32 fault that #571 fixed`**. #571 made `v_mac_legacy_f32` keep the DX9 multiply, so it's now held to the same model as `v_mad_legacy_f32`, with only the console's rounding left open. ### Why With the new inputs and the **old** models, 27 instructions fail on the RX 6700 XT, and for the ones the reference covers it's the model that's wrong and the GPU that's right: the models compute from denormal sources the card flushes. For example `v_ceil_f32(0x00000001)` is +0 on the card and 1.0 in the model, and `v_mul_f32` of `0x7f7fffff × 0x00000001` is 0 on the card. ### What still passes without being exact The blanket slack is gone (any NaN, either zero sign, fused or not). What a host may still do differently is named, and the receipt counts it under `tolerated`: - **another NaN source**: with several NaN sources, which one comes back. SPIR-V doesn't say and compilers reorder operands. Between my two cards the count for `v_fma_f32` was 5 lanes on one and 2 on the other, same shader. - **console rounding unknown**: `v_mac_f32`, `v_mad_f32`, `v_madak_f32`, `v_madmk_f32` rounded once or twice. gfx1030 doesn't have them, so the reference can't say. - **unmeasured**: `v_med3_f32`, `v_cubesc_f32`, `v_cubetc_f32` reading a denormal source as it is. No hardware result for those yet. - **translator fault: mad rounded twice**: `v_fma_f32` in the shader where a `v_mul_f32` shares its product. This is the one from #333 that the check already accepted either way; it's still accepted, it's just counted by name now. It's modeled exactly, so the check will say so when it stops showing. The other translator fault this found, `v_mac_legacy_f32` without the DX9 rule, is fixed by #571, so this no longer tolerates it. ### What NVIDIA does differently The first 3090 run failed 32 instructions, in two groups. Both are now named, and both apply only when `--adapter` starts with `10de:`, so AMD results stay exact: - **NVIDIA host: canonical NaN**: the 3090 returns `0x7fffffff` (f32) or `0x7fff` (f16) for every NaN result, whatever the sources. Accepted only where the reference, or a word already named for that lane, is a NaN of that width. 656 lanes at `0f6af00`. Two of them were `v_mac_legacy_f32` lanes where only the DX9-rule fault gave a NaN; with #571 those should now return the card's number. - **translator fault on NVIDIA: a denormal source read as it is**: `v_min_f32`, `v_max_f32`, `v_floor_f32` and `v_ceil_f32` don't flush a denormal f32 source on NVIDIA, where RADV does and the console does. The translator writes them as plain HLSL with no flush. 21 lanes. Modeled exactly; a translator flush is the fix, not done here. So that answers the question I had before the NVIDIA runs: NVIDIA does flush f32 denormals in general (`v_mul_f32(0x7f7fffff, 0x00000001)` is 0 on the 3090), except in those four instructions. Under DXVK an NVIDIA card can report as `1002:73df` until `dxgi.hideNvidiaGpu = False` is set. Pass the real `10de:` id; `CONSOLE_REFERENCE.md` has the details. The float-forms check shares `Float.matches`, so I ran it too; it's unchanged and passes. Doesn't touch the translator or anything the game runs, so I didn't run the game for this. ## Tested - [x] The checks relevant to this change passed - [x] Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below - [ ] Where the table calls for AMD and NVIDIA, they passed on both. Otherwise, say which vendor still needs to run them: **NVIDIA passed at `0f6af00`, before #571. A rerun of `--only alu --only float-forms` at this head would confirm the merge.** No Lanes scenario: this changes what a translator check expects, not provider behaviour. GPU, driver and backend: RX 6700 XT (`1002:73df`, RDNA 2), Mesa RADV 26.3.1, GE-Proton11-14, at `58fb8da` on `main` at `a564e8c`. Earlier heads also ran on a Radeon 890M (`1002:150e`, RDNA 3.5) and, by contributors at `0f6af00`, an RTX 3090 (`10de:2204`, 615.78.08, [results](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263335623)) and an RTX 5090 (`10de:2b85`, 620.70.10, [results](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263244708)). The `Evidence:` line `tuxbox.py check` prints last, one per card (it names the commit it tested; run it on this pull request's head): ```text Evidence: TuxBox check of 58fb8dae3eda, no uncommitted changes, GPU 1002:73df: 15 passed, 0 failed, 0 not run ``` Commands run and their results: ```text python tuxbox.py check --changed --proton <GE-Proton11-14> --prefix <prefix> --windows-dxc <dxc x64> --adapter 1002:73df (at 58fb8da) Changed since origin/main: docs/CONSOLE_REFERENCE.md, tests/..., tools/check_basic_alu_gpu.py Code checks: all 13 passed. Build passed. Shader translator on the GPU: all 66 checks PASS, including PASS alu PASS 362 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused tolerated: ... v_fma_f32 another NaN source x5, v_fma_f32 translator fault: mad rounded twice x9, v_mac_legacy_f32 another NaN source x2 ... (no DX9-rule fault, no NVIDIA name) Earlier heads, python tools/check_translator_gpu.py ... --only alu --only float-forms: Radeon 890M (2871726): PASS alu 0 wrong; PASS float-forms 0 wrong RTX 3090 (0f6af00): PASS alu 0 wrong; PASS float-forms 0 wrong tolerated: ... NVIDIA host: canonical NaN (32 entries, 656 lanes), translator fault on NVIDIA: a denormal source read as it is (21 lanes) ... RTX 5090 (0f6af00): PASS alu 0 wrong; PASS float-forms 0 wrong python -m unittest discover -s tests -q (at 58fb8da) Ran 778 tests, OK (skipped=28) ``` `mad rounded twice` is x9 here, against x8 before. Whether the driver fuses that `mad` is its choice per shader, so the count can move. I haven't traced which lane is new. The one refusal is `s_bcnt0_i32_b32` ("needs proven ordinary scalar operands (not a wave mask)"). It's refused on `main` without this change as well, and it isn't a float instruction. ## Checks No evidence JSON changes. The tests for #420's receipts now also require the ALU models to give every recorded MODE `0xc0` word.
snoozedDev commented 2026-11-29 18:30:55 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by snoozedDev on 2026-11-29T18:30:55Z.


NVIDIA run of the two commands under Tested. On the RTX 3090 the ALU check fails with 32 instructions wrong. float-forms passes.

GPU, driver and backend: RTX 3090 (10de:2204), NVIDIA 615.78.08, GE-Proton11-14. PR head 1a58255 built as it is (not rebased). For control, I ran main at 56ebdc8 on the same card, and the PR head on an RDNA 2 iGPU (1002:164e, RADV 26.2.5).

python tools/check_translator_gpu.py --provider <d3d12_xs.dll> --proton <GE-Proton11-14> --prefix <prefix> --compiler-dir <dxc x64> --dxc <dxc> --work <dir> --adapter <id> --only alu --only float-forms
  RTX 3090, main 56ebdc8:  PASS  alu  PASS 361 instructions on 128 inputs, 0 wrong, 1 refused
                           PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused
  RTX 3090, PR 1a58255:    FAIL  alu  FAIL 359 instructions on 128 inputs, 32 wrong, 1 refused
                           PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused
  iGPU 164e, PR 1a58255:   PASS  alu  PASS 359 instructions on 128 inputs, 0 wrong, 1 refused
                           PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused

I ran the PR head three times on the 3090. All three runs gave the same 32 WRONG lines and the same tolerated line. The refusal is s_bcnt0_i32_b32, as on your cards.

The check prints one WRONG line per instruction, for the first lane that differs, so the rows below are those first lanes. To see every lane, I ran the PR head once more on the 3090 with a local print added to the check (not committed) that saves every lane. That run gave the same 32 WRONG lines and the same tolerated line. It has 677 wrong lanes across the 32 instructions. The lane counts below come from it.

By first lane, the 32 fall into two groups.

NaN results, 30 instructions (656 lanes across all 32). Every wrong lane where the 3090 returns a NaN returns 0x7fffffff (f32, 443 lanes) or 0x7fff (f16, 213 lanes), whatever the sources' sign and payload. So these lanes don't fall under "another NaN source"; they come back as wrong. In 652 of them the reference itself expects a NaN. In the other 4 it expects a number and only a tolerated alternative is 0xffc00000. Two are v_mac_legacy_f32 lanes (0x7f800000 times a zero or a denormal) where the reference wants the DX9-rule result. That probably explains why the tolerated line below has the "without the DX9 rule" entry x2 here against x4 on the iGPU. The other two are v_mad_legacy_f32 and v_mac_legacy_f32 on 0x7f000000, 0x7f000000, 0xff800000, where the reference wants 0xff800000 and "rounded twice" is the tolerated NaN. v_min_f32 and v_max_f32 have NaN lanes too (2 each), but their first wrong lane falls in the other group. v_ceil_f32 and v_floor_f32 are the reverse: their first wrong lane is a NaN, and they also have lanes in the other group. Examples:

instruction inputs got wanted
v_add_f32 0x4f000000, 0x7fc00000, 0xffc12345 0x7fffffff 0x7fc00000
v_sub_f32 0x4f000000, 0x7fc00000, 0xffc12345 0x7fffffff 0xffc00000 or 0x7fc00000
v_fma_f32 0xbf800000, 0x4f000000, 0x7fc00000 0x7fffffff 0x7fc00000
v_floor_f32 0x7fc00000, ... 0x7fffffff 0x7fc00000
v_fma_mix_f32@lll 0x00000000, 0xc0200000, 0xff7fffff 0x7fffffff 0xffffe000
v_fma_mixlo_f16@hhh 0x00000000, 0xc0200000, 0xff7fffff 0x7fff 0x0000ff7f

A denormal source read as it is, 2 instructions (21 lanes in 4). By lane: v_min_f32 8, v_max_f32 6, v_ceil_f32 4, v_floor_f32 3. Examples (the first two are the check's WRONG lines):

instruction inputs got wanted
v_min_f32 0x7f7fffff, 0x00000001, 0xbfc00000 0x00000001 0x00000000
v_max_f32 0xff7fffff, 0x807fffff, 0x40200000 0x807fffff 0x80000000
v_ceil_f32 0x00000001, 0xbfc00000, 0x80000001 0x3f800000 0x00000000
v_floor_f32 0x807fffff, 0x40200000, 0x007fffff 0xbf800000 0x80000000

On your denormal question, for your two examples: v_ceil_f32(0x00000001) is wrong on the 3090. It returns 0x3f800000 (1.0) where the reference wants 0x00000000. v_mul_f32(0x7f7fffff, 0x00000001) matches: both give 0x00000000, so the 3090 flushes that source. Across all 359 instructions, the only wrong lanes with a denormal source and a result that isn't a NaN are the 21 above, in v_min_f32, v_max_f32, v_ceil_f32 and v_floor_f32. v_trunc_f32 and v_rndne_f32 have no such lanes, but for them flushing and not flushing give the same ±0, so these inputs can't tell. The min3/max3/cvt_flr "unmeasured" entries below, which the iGPU run here doesn't list, fit the same pattern. v_cubesc_f32 and v_cubetc_f32 are unmeasured on both, but x10 and x6 here against x7 and x4 on the iGPU. v_med3_f32 is x12 on both.

All 32 WRONG lines (identical in all four runs)
instruction | inputs | got | wanted
v_mul_legacy_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_fmac_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_fmaak_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_add_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_fma_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_sub_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0xffc00000 or another NaN source ['0x7fc00000']
v_subrev_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_mul_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_min_f32 | 0x7f7fffff, 0x00000001, 0xbfc00000 | 0x00000001 | 0x00000000
v_max_f32 | 0xff7fffff, 0x807fffff, 0x40200000 | 0x807fffff | 0x80000000
v_floor_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000
v_ceil_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000
v_trunc_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000
v_rndne_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000
v_fma_mix_f32@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fffffff | 0xffffe000
v_fma_mix_f32@fhl | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fffffff | 0xffffe000
v_fma_mix_f32@hlf | 0x3f800000, 0x4effffff, 0xff800000 | 0x7fffffff | 0xffffe000
v_fma_mix_f32@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_fma_mixlo_f16@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ffff
v_fma_mixlo_f16@hhh | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ff7f
v_fma_mix_f32@f1f | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_fma_mixlo_f16@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00
v_fma_mixlo_f16@lhf | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00
v_fma_mixhi_f16@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ffff
v_fma_mixhi_f16@hhh | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ff7f
v_fma_mixhi_f16@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00
v_mad_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_mad_legacy_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_mac_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_mac_legacy_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000
v_madak_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000
v_madmk_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000

The tolerated line on the 3090 (same in all four runs):

differed from the native reference as tolerated: v_cubesc_f32 unmeasured: a denormal source read as it is x10, v_cubetc_f32 unmeasured: a denormal source read as it is x6, v_cvt_flr_i32_f32 unmeasured: a denormal source read as it is x3, v_mac_legacy_f32 translator fault: v_mac_legacy_f32 without the DX9 rule x2, v_mac_legacy_f32 console rounding unknown: rounded twice x5, v_mad_legacy_f32 console rounding unknown: rounded twice x5, v_madmk_f32 console rounding unknown: rounded once x3, v_max3_f32 unmeasured: a denormal source read as it is x4, v_med3_f32 unmeasured: a denormal source read as it is x12, v_min3_f32 unmeasured: a denormal source read as it is x7, v_subrev_f32 another NaN source x1

Compared with AMD: there is no v_fma_f32 translator fault: mad rounded twice entry at all. Your two cards and the iGPU here show x8. Nothing in alu.log or alu.json says a modelled fault went unseen. On fusion: the "rounded once" entries for v_mac_f32, v_mad_f32 and v_madak_f32 (x6, x6 and x4 on the iGPU) are absent here, and "rounded twice" x5 for v_mac_legacy_f32 and v_mad_legacy_f32 appears only here. Most of the "another NaN source" entries are gone, which fits the 3090's NaN matching none of the sources.

One local setup detail, in case another NVIDIA run disagrees on the adapter: DXVK here reported the 3090 as 1002:73df until I set DXVK_CONFIG="dxgi.hideNvidiaGpu = False", and the check's adapter guard refused that (guest failed: 0 {'adapter': '1002:73df', ...}; I confirmed that on main). I also set VKD3D_FILTER_DEVICE_NAME/DXVK_FILTER_DEVICE_NAME, because there's no vulkaninfo on this machine.

Not run: the full python tuxbox.py check, any Lanes scenario, and any check other than --only alu --only float-forms.

This contribution was written by an AI agent (Claude Opus 5.5) operating under my supervision. I am accountable for it and will respond to review.

<!-- greyfinch-sync:brcly/TuxBox:comment:7260543300 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7260543300). Originally posted by [snoozedDev](https://github.com/snoozedDev) on 2026-11-29T18:30:55Z. --- NVIDIA run of the two commands under Tested. On the RTX 3090 the ALU check fails with 32 instructions wrong. float-forms passes. GPU, driver and backend: RTX 3090 (`10de:2204`), NVIDIA 615.78.08, GE-Proton11-14. PR head `1a58255` built as it is (not rebased). For control, I ran `main` at `56ebdc8` on the same card, and the PR head on an RDNA 2 iGPU (`1002:164e`, RADV 26.2.5). ```text python tools/check_translator_gpu.py --provider <d3d12_xs.dll> --proton <GE-Proton11-14> --prefix <prefix> --compiler-dir <dxc x64> --dxc <dxc> --work <dir> --adapter <id> --only alu --only float-forms RTX 3090, main 56ebdc8: PASS alu PASS 361 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused RTX 3090, PR 1a58255: FAIL alu FAIL 359 instructions on 128 inputs, 32 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused iGPU 164e, PR 1a58255: PASS alu PASS 359 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused ``` I ran the PR head three times on the 3090. All three runs gave the same 32 `WRONG` lines and the same `tolerated` line. The refusal is `s_bcnt0_i32_b32`, as on your cards. The check prints one `WRONG` line per instruction, for the first lane that differs, so the rows below are those first lanes. To see every lane, I ran the PR head once more on the 3090 with a local print added to the check (not committed) that saves every lane. That run gave the same 32 `WRONG` lines and the same `tolerated` line. It has 677 wrong lanes across the 32 instructions. The lane counts below come from it. By first lane, the 32 fall into two groups. **NaN results, 30 instructions (656 lanes across all 32).** Every wrong lane where the 3090 returns a NaN returns `0x7fffffff` (f32, 443 lanes) or `0x7fff` (f16, 213 lanes), whatever the sources' sign and payload. So these lanes don't fall under "another NaN source"; they come back as wrong. In 652 of them the reference itself expects a NaN. In the other 4 it expects a number and only a tolerated alternative is `0xffc00000`. Two are `v_mac_legacy_f32` lanes (`0x7f800000` times a zero or a denormal) where the reference wants the DX9-rule result. That probably explains why the tolerated line below has the "without the DX9 rule" entry x2 here against x4 on the iGPU. The other two are `v_mad_legacy_f32` and `v_mac_legacy_f32` on `0x7f000000, 0x7f000000, 0xff800000`, where the reference wants `0xff800000` and "rounded twice" is the tolerated NaN. `v_min_f32` and `v_max_f32` have NaN lanes too (2 each), but their first wrong lane falls in the other group. `v_ceil_f32` and `v_floor_f32` are the reverse: their first wrong lane is a NaN, and they also have lanes in the other group. Examples: | instruction | inputs | got | wanted | |---|---|---|---| | `v_add_f32` | `0x4f000000, 0x7fc00000, 0xffc12345` | `0x7fffffff` | `0x7fc00000` | | `v_sub_f32` | `0x4f000000, 0x7fc00000, 0xffc12345` | `0x7fffffff` | `0xffc00000` or `0x7fc00000` | | `v_fma_f32` | `0xbf800000, 0x4f000000, 0x7fc00000` | `0x7fffffff` | `0x7fc00000` | | `v_floor_f32` | `0x7fc00000, ...` | `0x7fffffff` | `0x7fc00000` | | `v_fma_mix_f32@lll` | `0x00000000, 0xc0200000, 0xff7fffff` | `0x7fffffff` | `0xffffe000` | | `v_fma_mixlo_f16@hhh` | `0x00000000, 0xc0200000, 0xff7fffff` | `0x7fff` | `0x0000ff7f` | **A denormal source read as it is, 2 instructions (21 lanes in 4).** By lane: `v_min_f32` 8, `v_max_f32` 6, `v_ceil_f32` 4, `v_floor_f32` 3. Examples (the first two are the check's `WRONG` lines): | instruction | inputs | got | wanted | |---|---|---|---| | `v_min_f32` | `0x7f7fffff, 0x00000001, 0xbfc00000` | `0x00000001` | `0x00000000` | | `v_max_f32` | `0xff7fffff, 0x807fffff, 0x40200000` | `0x807fffff` | `0x80000000` | | `v_ceil_f32` | `0x00000001, 0xbfc00000, 0x80000001` | `0x3f800000` | `0x00000000` | | `v_floor_f32` | `0x807fffff, 0x40200000, 0x007fffff` | `0xbf800000` | `0x80000000` | On your denormal question, for your two examples: `v_ceil_f32(0x00000001)` is wrong on the 3090. It returns `0x3f800000` (1.0) where the reference wants `0x00000000`. `v_mul_f32(0x7f7fffff, 0x00000001)` matches: both give `0x00000000`, so the 3090 flushes that source. Across all 359 instructions, the only wrong lanes with a denormal source and a result that isn't a NaN are the 21 above, in `v_min_f32`, `v_max_f32`, `v_ceil_f32` and `v_floor_f32`. `v_trunc_f32` and `v_rndne_f32` have no such lanes, but for them flushing and not flushing give the same ±0, so these inputs can't tell. The `min3`/`max3`/`cvt_flr` "unmeasured" entries below, which the iGPU run here doesn't list, fit the same pattern. `v_cubesc_f32` and `v_cubetc_f32` are unmeasured on both, but x10 and x6 here against x7 and x4 on the iGPU. `v_med3_f32` is x12 on both. <details> <summary>All 32 WRONG lines (identical in all four runs)</summary> ```text instruction | inputs | got | wanted v_mul_legacy_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_fmac_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_fmaak_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_add_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_fma_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_sub_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0xffc00000 or another NaN source ['0x7fc00000'] v_subrev_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_mul_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_min_f32 | 0x7f7fffff, 0x00000001, 0xbfc00000 | 0x00000001 | 0x00000000 v_max_f32 | 0xff7fffff, 0x807fffff, 0x40200000 | 0x807fffff | 0x80000000 v_floor_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000 v_ceil_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000 v_trunc_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000 v_rndne_f32 | 0x7fc00000, 0xffc12345, 0x4b7fffff | 0x7fffffff | 0x7fc00000 v_fma_mix_f32@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fffffff | 0xffffe000 v_fma_mix_f32@fhl | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fffffff | 0xffffe000 v_fma_mix_f32@hlf | 0x3f800000, 0x4effffff, 0xff800000 | 0x7fffffff | 0xffffe000 v_fma_mix_f32@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_fma_mixlo_f16@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ffff v_fma_mixlo_f16@hhh | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ff7f v_fma_mix_f32@f1f | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_fma_mixlo_f16@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00 v_fma_mixlo_f16@lhf | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00 v_fma_mixhi_f16@lll | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ffff v_fma_mixhi_f16@hhh | 0x00000000, 0xc0200000, 0xff7fffff | 0x7fff | 0x0000ff7f v_fma_mixhi_f16@fff | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fff | 0x00007e00 v_mad_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_mad_legacy_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_mac_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_mac_legacy_f32 | 0xbf800000, 0x4f000000, 0x7fc00000 | 0x7fffffff | 0x7fc00000 v_madak_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 v_madmk_f32 | 0x4f000000, 0x7fc00000, 0xffc12345 | 0x7fffffff | 0x7fc00000 ``` </details> The `tolerated` line on the 3090 (same in all four runs): ```text differed from the native reference as tolerated: v_cubesc_f32 unmeasured: a denormal source read as it is x10, v_cubetc_f32 unmeasured: a denormal source read as it is x6, v_cvt_flr_i32_f32 unmeasured: a denormal source read as it is x3, v_mac_legacy_f32 translator fault: v_mac_legacy_f32 without the DX9 rule x2, v_mac_legacy_f32 console rounding unknown: rounded twice x5, v_mad_legacy_f32 console rounding unknown: rounded twice x5, v_madmk_f32 console rounding unknown: rounded once x3, v_max3_f32 unmeasured: a denormal source read as it is x4, v_med3_f32 unmeasured: a denormal source read as it is x12, v_min3_f32 unmeasured: a denormal source read as it is x7, v_subrev_f32 another NaN source x1 ``` Compared with AMD: there is no `v_fma_f32 translator fault: mad rounded twice` entry at all. Your two cards and the iGPU here show x8. Nothing in `alu.log` or `alu.json` says a modelled fault went unseen. On fusion: the "rounded once" entries for `v_mac_f32`, `v_mad_f32` and `v_madak_f32` (x6, x6 and x4 on the iGPU) are absent here, and "rounded twice" x5 for `v_mac_legacy_f32` and `v_mad_legacy_f32` appears only here. Most of the "another NaN source" entries are gone, which fits the 3090's NaN matching none of the sources. One local setup detail, in case another NVIDIA run disagrees on the adapter: DXVK here reported the 3090 as `1002:73df` until I set `DXVK_CONFIG="dxgi.hideNvidiaGpu = False"`, and the check's adapter guard refused that (`guest failed: 0 {'adapter': '1002:73df', ...}`; I confirmed that on `main`). I also set `VKD3D_FILTER_DEVICE_NAME`/`DXVK_FILTER_DEVICE_NAME`, because there's no `vulkaninfo` on this machine. Not run: the full `python tuxbox.py check`, any Lanes scenario, and any check other than `--only alu --only float-forms`. This contribution was written by an AI agent (Claude Opus 5.5) operating under my supervision. I am accountable for it and will respond to review.
JeffreyBytes commented 2026-11-29 21:48:16 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-29T21:48:16Z.


@snoozedDev Thanks for the 3090 run, the per-lane counts made this easy to act on. Pushed 0f6af003.

I read your two groups differently:

  • NaN results: I treated this as host behavior. SPIR-V leaves NaN bits to the host, and the 3090 returns 0x7fffffff (f32) or 0x7fff (f16) whatever the sources. The check now accepts that word, only on an NVIDIA adapter, and only where the reference or an already-named alternative is a NaN of that width. It's counted in tolerated as NVIDIA host: canonical NaN. Other NaN payloads, 0x7fc00001 for example, and either zero sign are still wrong.
  • Denormal sources in v_min_f32, v_max_f32, v_floor_f32, v_ceil_f32: I treated this as a translator fault. The console flushes these sources and the translator writes plain HLSL min/max/floor/ceil, with no flush. So I modeled it exactly instead of dropping those inputs. It's counted as translator fault on NVIDIA: a denormal source read as it is. Fixing the translator is a separate change.

Both names apply only when --adapter starts with 10de:, so AMD results are unchanged. A name counts only where it's seen, so the missing v_fma_f32 "mad rounded twice" on your card fails nothing. min3/max3/cvt_flr/cubesc/cubetc/med3 are untouched and still unmeasured.

Your DXVK note is now in docs/CONSOLE_REFERENCE.md. The tolerances follow --adapter, so pass the real 10de: id with hideNvidiaGpu = False set. Passing the reported 1002:73df gets AMD-exact rules on an NVIDIA card.

I have no NVIDIA card, so none of this has been run on one. Could you rerun the two commands at 0f6af003? I'd expect 0 wrong and a tolerated line with both new names. If a NaN lane still comes back wrong, the first-lane row from that WRONG line would show whether the canonical-NaN assumption holds for every lane.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263163864 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263163864). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-29T21:48:16Z. --- @snoozedDev Thanks for the 3090 run, the per-lane counts made this easy to act on. Pushed `0f6af003`. I read your two groups differently: - **NaN results:** I treated this as host behavior. SPIR-V leaves NaN bits to the host, and the 3090 returns `0x7fffffff` (f32) or `0x7fff` (f16) whatever the sources. The check now accepts that word, only on an NVIDIA adapter, and only where the reference or an already-named alternative is a NaN of that width. It's counted in `tolerated` as `NVIDIA host: canonical NaN`. Other NaN payloads, `0x7fc00001` for example, and either zero sign are still wrong. - **Denormal sources in `v_min_f32`, `v_max_f32`, `v_floor_f32`, `v_ceil_f32`:** I treated this as a translator fault. The console flushes these sources and the translator writes plain HLSL `min`/`max`/`floor`/`ceil`, with no flush. So I modeled it exactly instead of dropping those inputs. It's counted as `translator fault on NVIDIA: a denormal source read as it is`. Fixing the translator is a separate change. Both names apply only when `--adapter` starts with `10de:`, so AMD results are unchanged. A name counts only where it's seen, so the missing `v_fma_f32` "mad rounded twice" on your card fails nothing. `min3`/`max3`/`cvt_flr`/`cubesc`/`cubetc`/`med3` are untouched and still unmeasured. Your DXVK note is now in `docs/CONSOLE_REFERENCE.md`. The tolerances follow `--adapter`, so pass the real `10de:` id with `hideNvidiaGpu = False` set. Passing the reported `1002:73df` gets AMD-exact rules on an NVIDIA card. I have no NVIDIA card, so none of this has been run on one. Could you rerun the two commands at `0f6af003`? I'd expect 0 wrong and a `tolerated` line with both new names. If a NaN lane still comes back wrong, the first-lane row from that `WRONG` line would show whether the canonical-NaN assumption holds for every lane.
NickStallman commented 2026-11-29 21:54:15 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T21:54:15Z.


NVIDIA run of 0f6af003 as it is, RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14, Linux; windows-dxc 1.8.2505.1; provider built from a tree on 2d6dc338):

check_translator_gpu.py --only alu --only float-forms ... --adapter 10de:2b85
PASS  alu  PASS 359 instructions on 128 inputs, 0 wrong, 1 refused
PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused

I ran these two checks, not the whole translator check.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263244708 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263244708). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-29T21:54:15Z. --- NVIDIA run of 0f6af003 as it is, RTX 5090 (`10de:2b85`, 620.70.10, GE-Proton11-14, Linux; `windows-dxc` 1.8.2505.1; provider built from a tree on 2d6dc338): ```text check_translator_gpu.py --only alu --only float-forms ... --adapter 10de:2b85 PASS alu PASS 359 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused ``` I ran these two checks, not the whole translator check.
snoozedDev commented 2026-11-29 22:01:07 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by snoozedDev on 2026-11-29T22:01:07Z.


Reran the two commands at 0f6af003, built as it is. Same setup as before: RTX 3090 (10de:2204), NVIDIA 615.78.08, GE-Proton11-14, hideNvidiaGpu = False, --adapter 10de:2204. Both checks pass, with 0 wrong.

  RTX 3090, PR 0f6af00 (3 runs):  PASS  alu  PASS 359 instructions on 128 inputs, 0 wrong, 1 refused
                                  PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused
  iGPU 164e, PR 0f6af00:          PASS  alu  PASS 359 instructions on 128 inputs, 0 wrong, 1 refused
                                  PASS  float-forms  PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused

The refusal is still s_bcnt0_i32_b32. The three 3090 runs printed the same tolerated line. It has both new names, and the counts match the per-lane dump from 1a58255 exactly:

  • NVIDIA host: canonical NaN: 32 entries, 656 lanes in total. That is every lane that came back as 0x7fffffff or 0x7fff at 1a58255, the 4 where only a tolerated alternative was a NaN included.
  • translator fault on NVIDIA: a denormal source read as it is: v_min_f32 x8, v_max_f32 x6, v_ceil_f32 x4, v_floor_f32 x3, 21 lanes, the same split as before.

Every other entry is unchanged from 1a58255 on this card. On the iGPU the tolerated line is identical to its 1a58255 run, and neither new name appears. python -m unittest tests.test_basic_alu_reference passes at 0f6af003 (16 tests).

The 3090's tolerated line at 0f6af003
differed from the native reference as tolerated: v_add_f32 NVIDIA host: canonical NaN x15, v_ceil_f32 NVIDIA host: canonical NaN x10, v_ceil_f32 translator fault on NVIDIA: a denormal source read as it is x4, v_cubesc_f32 unmeasured: a denormal source read as it is x10, v_cubetc_f32 unmeasured: a denormal source read as it is x6, v_cvt_flr_i32_f32 unmeasured: a denormal source read as it is x3, v_floor_f32 NVIDIA host: canonical NaN x10, v_floor_f32 translator fault on NVIDIA: a denormal source read as it is x3, v_fma_f32 NVIDIA host: canonical NaN x21, v_fma_mix_f32@f1f NVIDIA host: canonical NaN x16, v_fma_mix_f32@fff NVIDIA host: canonical NaN x21, v_fma_mix_f32@fhl NVIDIA host: canonical NaN x29, v_fma_mix_f32@hlf NVIDIA host: canonical NaN x40, v_fma_mix_f32@lll NVIDIA host: canonical NaN x40, v_fma_mixhi_f16@fff NVIDIA host: canonical NaN x19, v_fma_mixhi_f16@hhh NVIDIA host: canonical NaN x32, v_fma_mixhi_f16@lll NVIDIA host: canonical NaN x39, v_fma_mixlo_f16@fff NVIDIA host: canonical NaN x19, v_fma_mixlo_f16@hhh NVIDIA host: canonical NaN x32, v_fma_mixlo_f16@lhf NVIDIA host: canonical NaN x33, v_fma_mixlo_f16@lll NVIDIA host: canonical NaN x39, v_fmaak_f32 NVIDIA host: canonical NaN x17, v_fmac_f32 NVIDIA host: canonical NaN x21, v_mac_f32 NVIDIA host: canonical NaN x22, v_mac_legacy_f32 NVIDIA host: canonical NaN x22, v_mac_legacy_f32 translator fault: v_mac_legacy_f32 without the DX9 rule x2, v_mac_legacy_f32 console rounding unknown: rounded twice x5, v_mad_f32 NVIDIA host: canonical NaN x22, v_mad_legacy_f32 NVIDIA host: canonical NaN x20, v_mad_legacy_f32 console rounding unknown: rounded twice x5, v_madak_f32 NVIDIA host: canonical NaN x17, v_madmk_f32 NVIDIA host: canonical NaN x15, v_madmk_f32 console rounding unknown: rounded once x3, v_max3_f32 unmeasured: a denormal source read as it is x4, v_max_f32 translator fault on NVIDIA: a denormal source read as it is x6, v_max_f32 NVIDIA host: canonical NaN x2, v_med3_f32 unmeasured: a denormal source read as it is x12, v_min3_f32 unmeasured: a denormal source read as it is x7, v_min_f32 translator fault on NVIDIA: a denormal source read as it is x8, v_min_f32 NVIDIA host: canonical NaN x2, v_mul_f32 NVIDIA host: canonical NaN x17, v_mul_legacy_f32 NVIDIA host: canonical NaN x15, v_rndne_f32 NVIDIA host: canonical NaN x10, v_sub_f32 NVIDIA host: canonical NaN x15, v_subrev_f32 NVIDIA host: canonical NaN x14, v_subrev_f32 another NaN source x1, v_trunc_f32 NVIDIA host: canonical NaN x10

Not run: the full python tuxbox.py check, any Lanes scenario, any check other than --only alu --only float-forms, and the 1002:73df case you describe.

This contribution was written by an AI agent (Claude Opus 5.5) operating under my supervision. I am accountable for it and will respond to review.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263335623 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263335623). Originally posted by [snoozedDev](https://github.com/snoozedDev) on 2026-11-29T22:01:07Z. --- Reran the two commands at `0f6af003`, built as it is. Same setup as before: RTX 3090 (`10de:2204`), NVIDIA 615.78.08, GE-Proton11-14, `hideNvidiaGpu = False`, `--adapter 10de:2204`. Both checks pass, with 0 wrong. ```text RTX 3090, PR 0f6af00 (3 runs): PASS alu PASS 359 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused iGPU 164e, PR 0f6af00: PASS alu PASS 359 instructions on 128 inputs, 0 wrong, 1 refused PASS float-forms PASS 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused ``` The refusal is still `s_bcnt0_i32_b32`. The three 3090 runs printed the same `tolerated` line. It has both new names, and the counts match the per-lane dump from `1a58255` exactly: - `NVIDIA host: canonical NaN`: 32 entries, 656 lanes in total. That is every lane that came back as `0x7fffffff` or `0x7fff` at `1a58255`, the 4 where only a tolerated alternative was a NaN included. - `translator fault on NVIDIA: a denormal source read as it is`: `v_min_f32` x8, `v_max_f32` x6, `v_ceil_f32` x4, `v_floor_f32` x3, 21 lanes, the same split as before. Every other entry is unchanged from `1a58255` on this card. On the iGPU the `tolerated` line is identical to its `1a58255` run, and neither new name appears. `python -m unittest tests.test_basic_alu_reference` passes at `0f6af003` (16 tests). <details> <summary>The 3090's tolerated line at 0f6af003</summary> ```text differed from the native reference as tolerated: v_add_f32 NVIDIA host: canonical NaN x15, v_ceil_f32 NVIDIA host: canonical NaN x10, v_ceil_f32 translator fault on NVIDIA: a denormal source read as it is x4, v_cubesc_f32 unmeasured: a denormal source read as it is x10, v_cubetc_f32 unmeasured: a denormal source read as it is x6, v_cvt_flr_i32_f32 unmeasured: a denormal source read as it is x3, v_floor_f32 NVIDIA host: canonical NaN x10, v_floor_f32 translator fault on NVIDIA: a denormal source read as it is x3, v_fma_f32 NVIDIA host: canonical NaN x21, v_fma_mix_f32@f1f NVIDIA host: canonical NaN x16, v_fma_mix_f32@fff NVIDIA host: canonical NaN x21, v_fma_mix_f32@fhl NVIDIA host: canonical NaN x29, v_fma_mix_f32@hlf NVIDIA host: canonical NaN x40, v_fma_mix_f32@lll NVIDIA host: canonical NaN x40, v_fma_mixhi_f16@fff NVIDIA host: canonical NaN x19, v_fma_mixhi_f16@hhh NVIDIA host: canonical NaN x32, v_fma_mixhi_f16@lll NVIDIA host: canonical NaN x39, v_fma_mixlo_f16@fff NVIDIA host: canonical NaN x19, v_fma_mixlo_f16@hhh NVIDIA host: canonical NaN x32, v_fma_mixlo_f16@lhf NVIDIA host: canonical NaN x33, v_fma_mixlo_f16@lll NVIDIA host: canonical NaN x39, v_fmaak_f32 NVIDIA host: canonical NaN x17, v_fmac_f32 NVIDIA host: canonical NaN x21, v_mac_f32 NVIDIA host: canonical NaN x22, v_mac_legacy_f32 NVIDIA host: canonical NaN x22, v_mac_legacy_f32 translator fault: v_mac_legacy_f32 without the DX9 rule x2, v_mac_legacy_f32 console rounding unknown: rounded twice x5, v_mad_f32 NVIDIA host: canonical NaN x22, v_mad_legacy_f32 NVIDIA host: canonical NaN x20, v_mad_legacy_f32 console rounding unknown: rounded twice x5, v_madak_f32 NVIDIA host: canonical NaN x17, v_madmk_f32 NVIDIA host: canonical NaN x15, v_madmk_f32 console rounding unknown: rounded once x3, v_max3_f32 unmeasured: a denormal source read as it is x4, v_max_f32 translator fault on NVIDIA: a denormal source read as it is x6, v_max_f32 NVIDIA host: canonical NaN x2, v_med3_f32 unmeasured: a denormal source read as it is x12, v_min3_f32 unmeasured: a denormal source read as it is x7, v_min_f32 translator fault on NVIDIA: a denormal source read as it is x8, v_min_f32 NVIDIA host: canonical NaN x2, v_mul_f32 NVIDIA host: canonical NaN x17, v_mul_legacy_f32 NVIDIA host: canonical NaN x15, v_rndne_f32 NVIDIA host: canonical NaN x10, v_sub_f32 NVIDIA host: canonical NaN x15, v_subrev_f32 NVIDIA host: canonical NaN x14, v_subrev_f32 another NaN source x1, v_trunc_f32 NVIDIA host: canonical NaN x10 ``` </details> Not run: the full `python tuxbox.py check`, any Lanes scenario, any check other than `--only alu --only float-forms`, and the `1002:73df` case you describe. This contribution was written by an AI agent (Claude Opus 5.5) operating under my supervision. I am accountable for it and will respond to review.
JeffreyBytes commented 2026-11-29 22:04:18 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-29T22:04:18Z.


Thanks, both. The 3090 counts line up exactly with the per-lane dump (656 canonical-NaN lanes, 21 denormal), and the iGPU's tolerated line didn't change, so AMD stays exact. The 5090 passing too is a nice second data point.

Since then I've rebased onto main and fixed a test that landed there in the meantime (test_native_rdna2_approx, which still expected the old models' rejections). The ALU check's float models are unchanged from 0f6af003, so no need to rerun.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263377917 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7263377917). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-29T22:04:18Z. --- Thanks, both. The 3090 counts line up exactly with the per-lane dump (656 canonical-NaN lanes, 21 denormal), and the iGPU's tolerated line didn't change, so AMD stays exact. The 5090 passing too is a nice second data point. Since then I've rebased onto main and fixed a test that landed there in the meantime (`test_native_rdna2_approx`, which still expected the old models' rejections). The ALU check's float models are unchanged from 0f6af003, so no need to rerun.
JeffreyBytes commented 2026-11-30 13:25:05 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-30T13:25:05Z.


Rebased onto main now that #571 is in, and added a commit that drops the v_mac_legacy_f32 DX9-rule fault from the check, since #571 fixed it. v_mac_legacy_f32 is now held to the same model as v_mad_legacy_f32, with only the console's rounding left open. The rebase had two conflicts: #571's separate and ALU_CHECK_REJECTS changes, which this PR removes anyway, and its ∞ × denormal triple, which I kept. The DX9 multiply-adds still get their own shader and run that triple ahead of the shared ones, so every other float shader feeds the same lanes as before.

check --changed at 58fb8da on the RX 6700 XT: 15 passed, 0 failed. alu is 362 instructions, 0 wrong, and the DX9-rule fault no longer shows up under tolerated.

@snoozedDev @NickStallman, could one of you rerun --only alu --only float-forms at 58fb8da? Your runs were at 0f6af00, before #571, and the contributing rules want each vendor on the PR's head. I'd expect 0 wrong and the same tolerated line as before, except v_mac_legacy_f32: the "without the DX9 rule" entry should be gone, and the two canonical NaN lanes that came from it should now return the card's number.

<!-- greyfinch-sync:brcly/TuxBox:comment:7279814832 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7279814832). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-30T13:25:05Z. --- Rebased onto main now that #571 is in, and added a commit that drops the `v_mac_legacy_f32` DX9-rule fault from the check, since #571 fixed it. `v_mac_legacy_f32` is now held to the same model as `v_mad_legacy_f32`, with only the console's rounding left open. The rebase had two conflicts: #571's `separate` and `ALU_CHECK_REJECTS` changes, which this PR removes anyway, and its ∞ × denormal triple, which I kept. The DX9 multiply-adds still get their own shader and run that triple ahead of the shared ones, so every other float shader feeds the same lanes as before. `check --changed` at 58fb8da on the RX 6700 XT: 15 passed, 0 failed. `alu` is 362 instructions, 0 wrong, and the DX9-rule fault no longer shows up under `tolerated`. @snoozedDev @NickStallman, could one of you rerun `--only alu --only float-forms` at 58fb8da? Your runs were at 0f6af00, before #571, and the contributing rules want each vendor on the PR's head. I'd expect 0 wrong and the same `tolerated` line as before, except `v_mac_legacy_f32`: the "without the DX9 rule" entry should be gone, and the two canonical NaN lanes that came from it should now return the card's number.
NickStallman commented 2026-11-30 18:46:33 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T18:46:33Z.


@JeffreyBytes at 58fb8dae, full python tuxbox.py check (which includes both), GE-Proton11-14:

RTX 5090 (10de:2b85, 620.70.10) AMD iGPU (1002:13c0, RADV)
Full check 203 pass, 0 fail 202 pass, 0 fail
alu 362 instructions on 128 inputs, 0 wrong, 1 refused 362 on 128, 0 wrong, 1 refused
float-forms 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused same

The check's summary line doesn't print the tolerated list, so I haven't compared that part with the earlier run.

Evidence: TuxBox check of 58fb8dae3e, no uncommitted changes, GPU 10de:2b85: 17 passed, 0 failed, 0 not run
Evidence: TuxBox check of 58fb8dae3e, no uncommitted changes, GPU 1002:13c0: 17 passed, 0 failed, 0 not run

<!-- greyfinch-sync:brcly/TuxBox:comment:7288344960 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/446#issuecomment-7288344960). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-30T18:46:33Z. --- @JeffreyBytes at 58fb8dae, full `python tuxbox.py check` (which includes both), GE-Proton11-14: | | RTX 5090 (`10de:2b85`, 620.70.10) | AMD iGPU (`1002:13c0`, RADV) | |---|---|---| | Full check | 203 pass, 0 fail | 202 pass, 0 fail | | `alu` | 362 instructions on 128 inputs, 0 wrong, 1 refused | 362 on 128, 0 wrong, 1 refused | | `float-forms` | 94 forms on 128 inputs each, 0 wrong, 0 known faults not seen, 0 refused | same | The check's summary line doesn't print the `tolerated` list, so I haven't compared that part with the earlier run. Evidence: TuxBox check of 58fb8dae3eda, no uncommitted changes, GPU 10de:2b85: 17 passed, 0 failed, 0 not run Evidence: TuxBox check of 58fb8dae3eda, no uncommitted changes, GPU 1002:13c0: 17 passed, 0 failed, 0 not run
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
brcly/TuxBox!446
No description provided.