docs/testing: record the two ps_* KosmicKrisp NaN cases #2602

Merged
EvgHaze merged 1 commit from upstream-pr/2602 into main 2026-11-29 18:29:05 +00:00
EvgHaze commented 2026-11-29 04:01:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EvgHaze on 2026-11-29T04:01:28Z.


Claimed in the coordination issue as KOSMICKRISP-NAN-ROWS (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7250390749).

What and why

docs/testing.md already records that KosmicKrisp's nir_to_msl prints any float-typed 32-bit constant in the IEEE-754 NaN range as (NAN) (0x7fc00000), with cs_bvh / cs_bvh32 as the example. Two more GPU tests fail on that same path and are not listed, so a reader on a Mac sees six red tests and cannot tell which of them is the driver:

  • ps_cndmask_sign_mods — all 4096 pixels differ, (0,0) reads 0x7fc00000, 0x7fc00000, 0x80000001, 0x7fc00000, want 0xff800001, 0x7f800001, 0x80000001, 0x7f800001.
  • ps_valu16_mad_sel — all 4096 pixels differ, (0,0) reads 0x8003, 0xdb880000, 0x7fc00000, 0x80000000, want 0x8003, 0xdb880000, 0xffffffff, 0x80000000.

Both write a value the GPU stores as 0xffffffff or as a non-canonical NaN, and both read back the canonical 0x7fc00000. The entry names the cause and the two drivers that pass, so the next person does not re-derive it.

Testing

Apple M3 (Mac15,13), 8 cores, macOS 27.0 (26A5406e):

  • ps_cndmask_sign_mods: fails 0/1 on KosmicKrisp (Mesa 26.3.1), passes 1/1 on llvmpipe (same Mesa build) and on MoltenVK 1.4.2.
  • ps_valu16_mad_sel: same three results.

Each test was run alone through scripts/run_gpu_tests.py --filter with VK_DRIVER_FILES naming one ICD at a time, on the same build.

Documentation only: no code, no fixtures, no test changes. python -I scripts/check_no_game_data.py docs/testing.md passes.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5547381435 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602). Originally posted by [EvgHaze](https://github.com/EvgHaze) on 2026-11-29T04:01:28Z. --- Claimed in the coordination issue as `KOSMICKRISP-NAN-ROWS` (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7250390749). ### What and why `docs/testing.md` already records that KosmicKrisp's `nir_to_msl` prints any `float`-typed 32-bit constant in the IEEE-754 NaN range as `(NAN)` (`0x7fc00000`), with `cs_bvh` / `cs_bvh32` as the example. Two more GPU tests fail on that same path and are not listed, so a reader on a Mac sees six red tests and cannot tell which of them is the driver: - `ps_cndmask_sign_mods` — all 4096 pixels differ, `(0,0)` reads `0x7fc00000, 0x7fc00000, 0x80000001, 0x7fc00000`, want `0xff800001, 0x7f800001, 0x80000001, 0x7f800001`. - `ps_valu16_mad_sel` — all 4096 pixels differ, `(0,0)` reads `0x8003, 0xdb880000, 0x7fc00000, 0x80000000`, want `0x8003, 0xdb880000, 0xffffffff, 0x80000000`. Both write a value the GPU stores as `0xffffffff` or as a non-canonical NaN, and both read back the canonical `0x7fc00000`. The entry names the cause and the two drivers that pass, so the next person does not re-derive it. ### Testing Apple M3 (Mac15,13), 8 cores, macOS 27.0 (26A5406e): - `ps_cndmask_sign_mods`: fails 0/1 on KosmicKrisp (Mesa 26.3.1), passes 1/1 on llvmpipe (same Mesa build) and on MoltenVK 1.4.2. - `ps_valu16_mad_sel`: same three results. Each test was run alone through `scripts/run_gpu_tests.py --filter` with `VK_DRIVER_FILES` naming one ICD at a time, on the same build. Documentation only: no code, no fixtures, no test changes. `python -I scripts/check_no_game_data.py docs/testing.md` passes. AI-assisted.
EvgHaze commented 2026-11-29 04:09:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EvgHaze on 2026-11-29T04:09:19Z.


Filed upstream: the same nir_to_msl constant path is now reported to Mesa as https://gitlab.freedesktop.org/mesa/mesa/-/issues/17056 (NaN-range f32 constants printed as (NAN), so 0xffffffff and non-canonical NaNs read back as 0x7fc00000).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250481256 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7250481256). Originally posted by [EvgHaze](https://github.com/EvgHaze) on 2026-11-29T04:09:19Z. --- Filed upstream: the same `nir_to_msl` constant path is now reported to Mesa as https://gitlab.freedesktop.org/mesa/mesa/-/issues/17056 (NaN-range f32 constants printed as `(NAN)`, so `0xffffffff` and non-canonical NaNs read back as `0x7fc00000`).
TheGeogeo commented 2026-11-29 04:56:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T04:56:53Z.


Tested 3c1f549fd merged (no commit) with main ef3299584: Python 3.12.4, Windows 11 10.0.26300, CPU only. Docs only, so no test is expected.

  • The 15 docs test files (tests/test_docs_*.py, test_i18n_index.py, test_navmesh_links.py) give the same results on plain main and on the merge. test_docs_cli_flags.py and test_docs_links.py fail the same way on both, unrelated to this change. check_no_game_data.py is clean.
  • The rows match the tests: ps_cndmask_sign_mods expects 0xff800001, 0x7f800001, 0x80000001, 0x7f800001 and ps_valu16_mad_sel expects 0x8003, 0xdb880000, 0xffffffff, 0x80000000 (runtime/test/shaders/check.py:884 and :890, scripts/run_gpu_tests.py:1587 and :1592). I could not check the Mac readings themselves here.
  • Overlap: #2229 (docs/testing.md: three more KosmicKrisp failures from its (NAN) constant printing) adds one row for ps_cndmask_sign_mods, ps_valu16_mad_sel and cs_fmt_all at the same place, after the cs_bvh row. The two PRs conflict, and once one of them lands the other is mostly a duplicate. Only one of the two should go in, or the second should be reduced to what the first lacks.

No other finding. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250956133 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7250956133). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T04:56:53Z. --- Tested `3c1f549fd` merged (no commit) with `main` `ef3299584`: Python 3.12.4, Windows 11 10.0.26300, CPU only. Docs only, so no test is expected. - The 15 docs test files (`tests/test_docs_*.py`, `test_i18n_index.py`, `test_navmesh_links.py`) give the same results on plain `main` and on the merge. `test_docs_cli_flags.py` and `test_docs_links.py` fail the same way on both, unrelated to this change. `check_no_game_data.py` is clean. - The rows match the tests: `ps_cndmask_sign_mods` expects `0xff800001, 0x7f800001, 0x80000001, 0x7f800001` and `ps_valu16_mad_sel` expects `0x8003, 0xdb880000, 0xffffffff, 0x80000000` (`runtime/test/shaders/check.py:884` and `:890`, `scripts/run_gpu_tests.py:1587` and `:1592`). I could not check the Mac readings themselves here. - Overlap: #2229 (`docs/testing.md`: three more KosmicKrisp failures from its (NAN) constant printing) adds one row for `ps_cndmask_sign_mods`, `ps_valu16_mad_sel` and `cs_fmt_all` at the same place, after the `cs_bvh` row. The two PRs conflict, and once one of them lands the other is mostly a duplicate. Only one of the two should go in, or the second should be reduced to what the first lacks. No other finding. AI-assisted (Claude Code).
MoonEyes commented 2026-11-29 13:23:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T13:23:26Z.


#2229 adds rows to the same place in docs/testing.md. Could you also take its cs_fmt_all word-293 row here, so we keep one PR and close #2229?

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7256501858 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7256501858). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T13:23:26Z. --- #2229 adds rows to the same place in docs/testing.md. Could you also take its cs_fmt_all word-293 row here, so we keep one PR and close #2229?
TheGeogeo commented 2026-11-29 17:12:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T17:12:53Z.


Tested 3c1f549fd merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • The change is docs only (docs/testing.md), so no test can show a red.
  • No regression: the 13 tests/test_docs_*.py files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.
  • No game data check passes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259513740 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7259513740). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T17:12:53Z. --- Tested 3c1f549fd merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only. - The change is docs only (`docs/testing.md`), so no test can show a red. - No regression: the 13 `tests/test_docs_*.py` files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge. - No game data check passes. AI-assisted (Claude Code).
fiestorra commented 2026-11-29 17:25:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T17:25:20Z.


Checked the two rows against the tree, since a documentation row naming a case that does not exist is the failure mode to catch:

  • ps_cndmask_sign_mods and ps_valu16_mad_sel both exist on main and both already appear in the recorded Apple runs
    (gpu-test-results/AppleM3.txt, AppleM5.txt) as failures, so the rows are documenting cases that are real and already known to fail there;
  • for ps_cndmask_sign_mods the recorded Mac result agrees with the value in the row: out[3] reads 0x7fc00000, want 0xffffffff, and 0x7fc00000 is what the
    new row quotes too;
  • for ps_valu16_mad_sel the recorded text names a different figure (cs_fmt_all word 293: 0x80007e00, want 0x80007c01), so the 0x8003, 0xdb880000 tuple in
    the row is the author's own run rather than something I can match against these files. Worth a second look from whoever has the device, not because it looks
    wrong, but because I cannot confirm it and would rather say so.

The branch is 254 commits behind, and since the change only adds two documentation rows, a rebase is cheap and keeps the diff to two lines.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259677993 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7259677993). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T17:25:20Z. --- Checked the two rows against the tree, since a documentation row naming a case that does not exist is the failure mode to catch: - **`ps_cndmask_sign_mods`** and **`ps_valu16_mad_sel`** both exist on `main` and both already appear in the recorded Apple runs (`gpu-test-results/AppleM3.txt`, `AppleM5.txt`) as failures, so the rows are documenting cases that are real and already known to fail there; - for `ps_cndmask_sign_mods` the recorded Mac result agrees with the value in the row: `out[3] reads 0x7fc00000, want 0xffffffff`, and `0x7fc00000` is what the new row quotes too; - for `ps_valu16_mad_sel` the recorded text names a different figure (`cs_fmt_all word 293: 0x80007e00, want 0x80007c01`), so the `0x8003, 0xdb880000` tuple in the row is the author's own run rather than something I can match against these files. Worth a second look from whoever has the device, not because it looks wrong, but because I cannot confirm it and would rather say so. The branch is **254 commits behind**, and since the change only adds two documentation rows, a rebase is cheap and keeps the diff to two lines. Written with an AI assistant.
DadaCap commented 2026-11-29 18:29:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:29:07Z.


Thank you! Merged into main with a merge commit. It was verified ready on its current head (3c1f549fd) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260519664 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2602#issuecomment-7260519664). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-29T18:29:07Z. --- Thank you! Merged into `main` with a merge commit. It was verified ready on its current head (3c1f549fd) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)
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
ProjectLeonida/mandy!2602
No description provided.