tests: follow the full-EXEC f64 output word stores #26

Manually merged
github merged 1 commit from gh-pr/26/head into gh-pr/26/base 2026-11-26 08:41:13 +00:00
Owner

@⁠wavehs on GitHub · 2026-11-24 02:01 UTC · original
wavehs:test-f64-full-exec-store → main · +4 −6 · 2 files · 1 commits · merged 2026-11-24 02:26 UTC

Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and the index of its open pull requests is #17, where old 10000 is listed as kept but not moved. No open pull request touches these two files.

Depends on: none.

What and why

tests/test_f64_conversion.py and tests/test_f64_output_modifiers.py are red on main@9ec34cdff (6 and 7 failures), the first red files after tests/test_awc_manifest.py in the standard-library loop:

AssertionError: unexpectedly None : Missing SPIR-V instruction: OpSelect %uint %\w+ %t6 %t7

They expected the translator's old masked write: load the old dword, OpSelect the new one under %active, store the select result. #4473 folds if (%active) when a shader writes no EXEC, and these fixtures are straight-line code, so every lane is active and the result is stored directly. The translator is right; the expectation is stale.

The two checks now assert OpStore {dest} {word} with a note that the fixture keeps EXEC full; what the test is about (the converted word, the scale constant, NoContraction) is unchanged.

This is old PR 10000 (0fe16691d, WebIdentity1) from the old repository, kept in #17 as old-pr/10000 and not carried over yet. Cherry-picked with -x, authorship kept; WebIdentity1, take it and I will withdraw this.

Tested

main@9ec34cdff, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:

tree test_f64_conversion.py test_f64_output_modifiers.py
main@9ec34cdff FAILED (failures=6) FAILED (failures=7)
this commit OK OK

compileall clean, check_no_game_data.py clean. Not run: Windows, any GPU test, the translator suite.

AI-assisted: yes (the patch is WebIdentity1's; carried over and re-verified here).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: test-only.)
**@⁠wavehs** on GitHub · 2026-11-24 02:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/26) `wavehs:test-f64-full-exec-store` → `main` · +4 −6 · 2 files · 1 commits · merged 2026-11-24 02:26 UTC Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and the index of its open pull requests is #17, where old 10000 is listed as kept but not moved. No open pull request touches these two files. Depends on: none. ### What and why `tests/test_f64_conversion.py` and `tests/test_f64_output_modifiers.py` are red on `main@9ec34cdff` (6 and 7 failures), the first red files after `tests/test_awc_manifest.py` in the standard-library loop: ``` AssertionError: unexpectedly None : Missing SPIR-V instruction: OpSelect %uint %\w+ %t6 %t7 ``` They expected the translator's old masked write: load the old dword, `OpSelect` the new one under `%active`, store the select result. #4473 folds `if (%active)` when a shader writes no EXEC, and these fixtures are straight-line code, so every lane is active and the result is stored directly. The translator is right; the expectation is stale. The two checks now assert `OpStore {dest} {word}` with a note that the fixture keeps EXEC full; what the test is about (the converted word, the scale constant, `NoContraction`) is unchanged. This is old PR 10000 (`0fe16691d`, WebIdentity1) from the old repository, kept in #17 as `old-pr/10000` and not carried over yet. Cherry-picked with `-x`, authorship kept; WebIdentity1, take it and I will withdraw this. ### Tested `main@9ec34cdff`, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files: | tree | `test_f64_conversion.py` | `test_f64_output_modifiers.py` | |---|---|---| | `main@9ec34cdff` | `FAILED (failures=6)` | `FAILED (failures=7)` | | this commit | `OK` | `OK` | `compileall` clean, `check_no_game_data.py` clean. Not run: Windows, any GPU test, the translator suite. AI-assisted: yes (the patch is WebIdentity1's; carried over and re-verified here). ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: test-only.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:41:11 +00:00
github manually merged commit 3f64ac0323 into gh-pr/26/base 2026-11-26 08:41:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.