mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:35:52 +01:00
[PR #390] OLD-6536: GPU fixtures declare their expected words in their own header (prototype, three fixtures) #440
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#440
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
9193f9cGPU fixtures declare their expected words in their own header (prototype, three fixtures)c2ce100run_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
wanttable inscripts/run_gpu_tests.pyand the cases inruntime/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.pyreads the header. Both runners run every such fixture withvk_compute_test ... dumpand compare the words, so a new fixture needs no row in either list. Three fixtures move over:cs_bounds,cs_smem_boundsandcs_buf_fmt8(the last was checked only byrun_gpu_tests.pyuntil now, andcheck.pychecks 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) andtests/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
mainand merges cleanly.scripts/check_no_game_data.pyover every changed file: clean).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.