[PR #26] [MERGED] tests: follow the full-EXEC f64 output word stores #82

Closed
opened 2026-11-26 20:16:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/26
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: test-f64-full-exec-store


📝 Commits (1)

  • 3f64ac0 test: follow full-EXEC f64 output word stores

📊 Changes

2 files changed (+4 additions, -6 deletions)

View changed files

📝 tests/test_f64_conversion.py (+2 -3)
📝 tests/test_f64_output_modifiers.py (+2 -3)

📄 Description

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.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/26 **Author:** [@wavehs](https://github.com/wavehs) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `test-f64-full-exec-store` --- ### 📝 Commits (1) - [`3f64ac0`](https://github.com/ubiquitarianism/leonida/commit/3f64ac032391da7f4d5f715ed0e59c4d7ba79ab6) test: follow full-EXEC f64 output word stores ### 📊 Changes **2 files changed** (+4 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_f64_conversion.py` (+2 -3) 📝 `tests/test_f64_output_modifiers.py` (+2 -3) </details> ### 📄 Description 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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:44 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#82
No description provided.