tests: cover waterfall descriptor loads (TEST-WATERFALL-DESCRIPTOR) #1257

Open
github-bot wants to merge 1 commit from github-bot/gh-1257 into main AGit
Owner

@⁠Okachamie on GitHub · 2026-11-24 20:58 UTC · original
Okachamie:translator-waterfall-table-offset → main · +103 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST-WATERFALL-DESCRIPTOR

What and why

Add a game-free CPU semantic test for a first-active-lane waterfall loop. Eight lanes alternate between two descriptor-table entries. The test checks that each lane fetches the texel for its own offset through the descriptor loaded by s_load_dwordx8.

Tested

  • python -I tests/semantic/test_waterfall_descriptor.py passed on Linux x86-64 with Python 3.14.10.
  • python -I scripts/run_semantic_tests.py tests/semantic passed on the proposed commit: 471 files, 6,169 tests, zero failures.
  • python -I scripts/check_no_game_data.py tests/semantic/test_waterfall_descriptor.py passed.
  • In the original mutation check, disabling EXEC narrowing made every lane fetch entry 0. The odd lanes then failed as expected.

GPUs tested: n/a (CPU interpreter)

AI-assisted: yes

Checklist

  • Based on current main at 66d4f5aa36bb6bcd006fa4b311c7a84d809fdbad.
  • One topic.
  • Synthetic test data only.
  • New translator rule in docs/design.md (n/a for this test-only change).
**@⁠Okachamie** on GitHub · 2026-11-24 20:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1257) `Okachamie:translator-waterfall-table-offset` → `main` · +103 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: [TEST-WATERFALL-DESCRIPTOR](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Add a game-free CPU semantic test for a first-active-lane waterfall loop. Eight lanes alternate between two descriptor-table entries. The test checks that each lane fetches the texel for its own offset through the descriptor loaded by `s_load_dwordx8`. ### Tested - `python -I tests/semantic/test_waterfall_descriptor.py` passed on Linux x86-64 with Python 3.14.10. - `python -I scripts/run_semantic_tests.py tests/semantic` passed on the proposed commit: 471 files, 6,169 tests, zero failures. - `python -I scripts/check_no_game_data.py tests/semantic/test_waterfall_descriptor.py` passed. - In the original mutation check, disabling EXEC narrowing made every lane fetch entry 0. The odd lanes then failed as expected. GPUs tested: n/a (CPU interpreter) AI-assisted: yes ### Checklist - [x] Based on current `main` at `66d4f5aa36bb6bcd006fa4b311c7a84d809fdbad`. - [x] One topic. - [x] Synthetic test data only. - [ ] New translator rule in `docs/design.md` (n/a for this test-only change).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:44:47 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 14:37 UTC · original

Reviewed 93b1296: ran the new test on both the PR tree and main (passes; test-only PR, no code change), plus the suite runner on the file, check_no_game_data and compileall (all pass). Mutation probe: a translated waterfall that drops the v_cmpx narrowing yields the wrong odd-lane values and fails the test, so the coverage is real. No game data, no GPU needed; full semantic suite not run. No findings. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 14:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1257#issuecomment-7165576673) Reviewed 93b1296: ran the new test on both the PR tree and main (passes; test-only PR, no code change), plus the suite runner on the file, check_no_game_data and compileall (all pass). Mutation probe: a translated waterfall that drops the v_cmpx narrowing yields the wrong odd-lane values and fails the test, so the coverage is real. No game data, no GPU needed; full semantic suite not run. No findings. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1257/head:github-bot/gh-1257'
git switch 'github-bot/gh-1257'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1257'
git switch 'github-bot/gh-1257'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1257'
git switch 'github-bot/gh-1257'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1257'
git switch 'main'
git merge --squash 'github-bot/gh-1257'
git switch 'main'
git merge --ff-only 'github-bot/gh-1257'
git switch 'main'
git merge 'github-bot/gh-1257'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.