Repository navigation
build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY) - #1444
build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY)#1444hugo0024 wants to merge 1 commit into
Conversation
…tests.py (TEST-BUILD-TEXT-ONLY) cs_dpp_cmp.asm (ProjectLeonida#957) holds a VOPC compare in DPP form, which llvm-mc has no gfx1013 encoding for. The file says so in a comment line, and run_gpu_tests.py passes such a source to the translator as text. build.py still sent it to llvm-mc, so with no names it stopped at "cs_dpp_cmp.asm did not assemble" before publishing anything: check.py then reported 0 of 226 and w64_graphics.py found no module. build.py now writes the same listing run_gpu_tests.py writes for a source that carries the marker line. On an Apple M5 the two-step form goes from nothing built to 288 of 288 translated and valid, check.py from 0 to 183 of 226 passing with cs_dpp_cmp ok, and the module is byte-identical to the one run_gpu_tests.py builds. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tested on an Apple M3 (MoltenVK 1.4.2, macOS 26.5.1, llvm-mc 23.1.6 from Homebrew), this PR at
Full record in #1718. AI-assisted (Claude Code). |
|
Confirmed on an RX 9070 XT (RADV, Mesa 26.2.6, CachyOS, llvm-mc 23.1.5) at main 5e95fa2. On main, |
|
Reviewed ae4e7d7: build.py now writes a text-only listing (instruction lines, run_gpu_tests.py's exact format) for .asm sources carrying the shared TEXT_ONLY_MARK - cs_dpp_cmp - instead of sending them to llvm-mc, which has no gfx1013 encoding for the DPP-form VOPC compare; unmarked sources are unchanged and assembler errors still stop the build. Ran |
|
Independent run with the real assembler, not stand-ins. Apple M5 Pro, macOS 27.2.1 (26B131), Python 3.14.2, Homebrew LLVM 23.1.6 (
Command on both trees:
So the failure in the description reproduces here with a current llvm-mc, and the change removes it.
Not tested: |
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(GPU test: ps_imgatomic loses atomic updates intermittently on MoltenVK 1.4.2 (Apple M5 Pro); KosmicKrisp passes #543), as before rdna2spirv, shader_disasm: VOPC compares in DPP form (SHADER-VOPC-DPP) #957.w64_graphics.pystill exits 1 on a Mac for the sevenvs_w64_*fixtures, which is vk_harness: a vertex shader with subgroup operations is unsupported where the vertex stage has none (TEST-W64G-VS-SUBGROUP-STAGE) #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 tests: the pytest helper takes a text-only sample's lines as its listing, as run_gpu_tests.py does (TEST-TRANSLATE-TEXT-ONLY) #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