[PR #390] OLD-6536: GPU fixtures declare their expected words in their own header (prototype, three fixtures) #440

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/390
Author: @lines9686-rgb
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fixture-expect-headers


📝 Commits (2)

  • 9193f9c GPU fixtures declare their expected words in their own header (prototype, three fixtures)
  • c2ce100 run_gpu_tests: an expect-header fixture the device cannot run is a SKIP, as for the listed compute dumps

📊 Changes

8 files changed (+165 additions, -12 deletions)

View changed files

📝 runtime/test/shaders/check.py (+8 -3)
📝 runtime/test/shaders/cs_bounds.asm (+1 -0)
📝 runtime/test/shaders/cs_buf_fmt8.asm (+1 -0)
📝 runtime/test/shaders/cs_smem_bounds.asm (+1 -0)
➕ runtime/test/shaders/fixture_expect.py (+59 -0)
📝 scripts/run_gpu_tests.py (+14 -6)
➕ tests/test_fixture_expect.py (+75 -0)
📝 tests/test_shader_checks.py (+6 -3)

📄 Description

Claimed in the coordination issue as: OLD-6536 (carried over from the original repository, same author)

What and why

Every new compute fixture adds a row to two shared lists, the want table in scripts/run_gpu_tests.py and the cases in runtime/test/shaders/check.py. In the original repository those lists were where most open pull requests conflicted with each other.

This is a prototype of the other way round: a fixture states its expected words in its own leading comment, as ; expect: <words> (and an optional ; groups: N). runtime/test/shaders/fixture_expect.py reads the header. Both runners run every such fixture with vk_compute_test ... dump and compare the words, so a new fixture needs no row in either list. Three fixtures move over: cs_bounds, cs_smem_bounds and cs_buf_fmt8 (the last was checked only by run_gpu_tests.py until now, and check.py checks it too). A fixture the device cannot run is a SKIP, as for the listed dumps.

Draft: whether to migrate the remaining fixtures this way is a maintainer's decision. If yes, a follow-up converts the rest mechanically.

Tested

tests/test_fixture_expect.py (the parser, and that a header fixture has no row left in either runner), tests/test_shader_checks.py (87 tests) and tests/test_run_gpu_tests.py: OK.

GPUs tested: n/a (the moved fixtures compare the same words as before)

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (scripts/check_no_game_data.py over every changed file: clean).
  • A new translator rule is in the contract table of docs/design.md: n/a

🤖 Generated with Claude Code


🔄 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/390 **Author:** [@lines9686-rgb](https://github.com/lines9686-rgb) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fixture-expect-headers` --- ### 📝 Commits (2) - [`9193f9c`](https://github.com/ubiquitarianism/leonida/commit/9193f9c2cd161f30fc3dd59f6352717e2bd79a12) GPU fixtures declare their expected words in their own header (prototype, three fixtures) - [`c2ce100`](https://github.com/ubiquitarianism/leonida/commit/c2ce100941d3a772f9c6b3b5f5b5429f9060f970) run_gpu_tests: an expect-header fixture the device cannot run is a SKIP, as for the listed compute dumps ### 📊 Changes **8 files changed** (+165 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+8 -3) 📝 `runtime/test/shaders/cs_bounds.asm` (+1 -0) 📝 `runtime/test/shaders/cs_buf_fmt8.asm` (+1 -0) 📝 `runtime/test/shaders/cs_smem_bounds.asm` (+1 -0) ➕ `runtime/test/shaders/fixture_expect.py` (+59 -0) 📝 `scripts/run_gpu_tests.py` (+14 -6) ➕ `tests/test_fixture_expect.py` (+75 -0) 📝 `tests/test_shader_checks.py` (+6 -3) </details> ### 📄 Description Claimed in the coordination issue as: `OLD-6536` (carried over from the original repository, same author) ### What and why Every new compute fixture adds a row to two shared lists, the `want` table in `scripts/run_gpu_tests.py` and the cases in `runtime/test/shaders/check.py`. In the original repository those lists were where most open pull requests conflicted with each other. This is a prototype of the other way round: a fixture states its expected words in its own leading comment, as `; expect: <words>` (and an optional `; groups: N`). `runtime/test/shaders/fixture_expect.py` reads the header. Both runners run every such fixture with `vk_compute_test ... dump` and compare the words, so a new fixture needs no row in either list. Three fixtures move over: `cs_bounds`, `cs_smem_bounds` and `cs_buf_fmt8` (the last was checked only by `run_gpu_tests.py` until now, and `check.py` checks it too). A fixture the device cannot run is a SKIP, as for the listed dumps. Draft: whether to migrate the remaining fixtures this way is a maintainer's decision. If yes, a follow-up converts the rest mechanically. ### Tested `tests/test_fixture_expect.py` (the parser, and that a header fixture has no row left in either runner), `tests/test_shader_checks.py` (87 tests) and `tests/test_run_gpu_tests.py`: OK. GPUs tested: n/a (the moved fixtures compare the same words as before) AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (`scripts/check_no_game_data.py` over every changed file: clean). - [x] A new translator rule is in the contract table of `docs/design.md`: n/a 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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#440
No description provided.