[PR #1257] tests: cover waterfall descriptor loads (TEST-WATERFALL-DESCRIPTOR) #1289

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1257
Author: @Okachamie
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: translator-waterfall-table-offset


📝 Commits (1)

  • 93b1296 tests: cover waterfall descriptor table offsets

📊 Changes

1 file changed (+103 additions, -0 deletions)

View changed files

➕ tests/semantic/test_waterfall_descriptor.py (+103 -0)

📄 Description

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

🔄 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/1257 **Author:** [@Okachamie](https://github.com/Okachamie) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `translator-waterfall-table-offset` --- ### 📝 Commits (1) - [`93b1296`](https://github.com/ubiquitarianism/leonida/commit/93b1296ee6417fdc6bbf4e6baf23d34ae9469cee) tests: cover waterfall descriptor table offsets ### 📊 Changes **1 file changed** (+103 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/semantic/test_waterfall_descriptor.py` (+103 -0) </details> ### 📄 Description Claimed in the coordination issue as: [TEST-WATERFALL-DESCRIPTOR](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142512136) ### 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1289
No description provided.