mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1444] build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY) #1474
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#1474
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/1444
Author: @hugo0024
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:build-text-only📝 Commits (1)
ae4e7d7build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY)📊 Changes
2 files changed (+168 additions, -14 deletions)
View changed files
📝
runtime/test/shaders/build.py(+37 -14)➕
tests/test_shader_build_text_only.py(+131 -0)📄 Description
Claimed in the coordination issue as: TEST-BUILD-TEXT-ONLY (claim)
Depends on: #822
It does not build on #822; the two conflict. Both add a block right after
barycentric_fallback()inruntime/test/shaders/build.py, so whichever merges second needs a rebase that keeps both blocks (Tauwni tested that resolution in a comment on #822).What and why
Since #957,
runtime/test/shaders/build.pywith no names builds nothing:cs_dpp_cmp.asmholds a VOPC compare in DPP form, which llvm-mc has no gfx1013 encoding for. The file says so in a comment line of its own, andscripts/run_gpu_tests.pypasses such a source's instruction lines to the translator as they are.build.pystill sent it to llvm-mc and stopped before publishing anything, so the two-step form is broken for the whole list:check.pyreports 0 of 226 (it has an expected entry forcs_dpp_cmp), andw64_graphics.pyfinds no module.build.py: a source that carries the marker line is not assembled;text_only_listing()writes the listingassemble_to_sofrun_gpu_tests.pywrites. Everything else intranslate_tests(the compute header, the containers) is as before.tests/test_shader_build_text_only.py: the marker is the same line in both runners, the two write the same listing for every marked fixture, a marked source never reaches llvm-mc, and an unmarked one still does and still stops the build on an assembler error.run_gpu_tests.pyis not touched: it keeps its ownTEXT_ONLY_MARKline, which #1375 (the pytest helper, open) also checks for. No file overlaps with #1375.Tested
Apple M5, MoltenVK 1.4.2, llvm-mc 23.1.6. Before is
main1154976d4, after is this branch onb4b7756e8;LEONIDA_F16_INTERP_FALLBACK=1for both scripts, as a Mac needs:build.py <out>check.pycs_dpp_cmpokw64_graphics.pyrun_gpu_tests.pycs_dpp_cmpmodulebuild.pynow writes is byte-identical to the onerun_gpu_tests.pybuilds (8724 bytes).check.pyleavescs_fma_fused(the MoltenVK 1.4.2 row ofdocs/testing.md) and the intermittentps_imgatomic(#543), as before #957.w64_graphics.pystill exits 1 on a Mac for the sevenvs_w64_*fixtures, which is #900's subject.tests/test_shader_build_text_only.py: 8 tests pass. Withmain'sbuild.py, 6 of them error.tests/test_shader_build_fallbacks.py,tests/test_docs_*.py,tests/test_i18n_index.pypass;python -m compileall -q make_game.py tools testsis clean.tests/test_translate.pyoncs_dpp_cmp.asm, which #1375 fixes.tests/test_mod_pack_output_alias.py; it fails the same way onmain1154976d4here.Not tested: Windows and Linux, and an LLVM other than 23.1.6. The change does not depend on the assembler: a marked source no longer reaches it.
GPUs tested: Apple M5 (8-core GPU), MoltenVK 1.4.2, macOS 27.2.1 (26B131)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.