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

Closed
lines9686-rgb wants to merge 2 commits from upstream-pr/390 into main
lines9686-rgb commented 2026-11-24 04:24:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lines9686-rgb on 2026-11-24T04:24:17Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5466052509 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/390). Originally posted by [lines9686-rgb](https://github.com/lines9686-rgb) on 2026-11-24T04:24:17Z. --- 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)
ubiquitarianism commented 2026-11-24 04:51:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-11-24T04:51:22Z.


This works and the tests pass: test_fixture_expect 7/7, and test_shader_checks and test_run_gpu_tests are unchanged. I'm holding it because it's a draft prototype, and moving all fixtures to self-declared expectations is a project-wide decision. Once that's agreed, un-draft it or convert the remaining fixtures in a follow-up.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7122399631 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/390#issuecomment-7122399631). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-11-24T04:51:22Z. --- This works and the tests pass: `test_fixture_expect` 7/7, and `test_shader_checks` and `test_run_gpu_tests` are unchanged. I'm holding it because it's a draft prototype, and moving all fixtures to self-declared expectations is a project-wide decision. Once that's agreed, un-draft it or convert the remaining fixtures in a follow-up.
aslan2142 commented 2026-12-01 11:42:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:42:49Z.


Draft prototype review note: this PR conflicts with main (across runtime/test/shaders/check.py, scripts/run_gpu_tests.py, and fixture/test files) and has failing stale CI. Moving fixtures to self-declared header expectations remains a project-wide design decision; please rebase onto current main, mark ready, and run fresh CI once that direction is agreed.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310027701 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/390#issuecomment-7310027701). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:42:49Z. --- Draft prototype review note: this PR conflicts with `main` (across `runtime/test/shaders/check.py`, `scripts/run_gpu_tests.py`, and fixture/test files) and has failing stale CI. Moving fixtures to self-declared header expectations remains a project-wide design decision; please rebase onto current `main`, mark ready, and run fresh CI once that direction is agreed. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:20:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:20:37Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319147227 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/390#issuecomment-7319147227). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:20:37Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!390
No description provided.