build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY) #1444

Closed
hugo0024 wants to merge 1 commit from upstream-pr/1444 into main
hugo0024 commented 2026-11-25 00:21:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by hugo0024 on 2026-11-25T00:21:07Z.


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() in runtime/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.py with no names builds nothing:

cs_dpp_cmp.asm did not assemble:
<stdin>:15:1: error: dpp variant of this instruction is not supported
v_cmp_gt_f32_dpp vcc_lo, v1, v1 quad_perm:[1,0,3,2] row_mask:0xf bank_mask:0xf bound_ctrl:1

cs_dpp_cmp.asm holds 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, and scripts/run_gpu_tests.py passes such a source's instruction lines to the translator as they are. build.py still sent it to llvm-mc and stopped before publishing anything, so the two-step form is broken for the whole list: check.py reports 0 of 226 (it has an expected entry for cs_dpp_cmp), and w64_graphics.py finds no module.

  • build.py: a source that carries the marker line is not assembled; text_only_listing() writes the listing assemble_to_s of run_gpu_tests.py writes. Everything else in translate_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.py is not touched: it keeps its own TEXT_ONLY_MARK line, 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 main 1154976d4, after is this branch on b4b7756e8; LEONIDA_F16_INTERP_FALLBACK=1 for both scripts, as a Mac needs:

Before After
build.py <out> exit 1, 0 modules 288 of 288 translated and valid, 288 modules
check.py 0 of 226 pass, 4 skipped 183 of 226 pass, 41 skipped; cs_dpp_cmp ok
w64_graphics.py 30 of 30 "missing .spv" 0 missing
run_gpu_tests.py 192/256 passed, 63 skipped the same, test for test
  • The cs_dpp_cmp module build.py now writes is byte-identical to the one run_gpu_tests.py builds (8724 bytes).
  • After, check.py leaves cs_fma_fused (the MoltenVK 1.4.2 row of docs/testing.md) and the intermittent ps_imgatomic (#543), as before #957. w64_graphics.py still exits 1 on a Mac for the seven vs_w64_* fixtures, which is #900's subject.
  • tests/test_shader_build_text_only.py: 8 tests pass. With main's build.py, 6 of them error.
  • tests/test_shader_build_fallbacks.py, tests/test_docs_*.py, tests/test_i18n_index.py pass; python -m compileall -q make_game.py tools tests is clean.
  • pytest files: 1881 passed, 2 failed, before and after alike. The two are tests/test_translate.py on cs_dpp_cmp.asm, which #1375 fixes.
  • Standard-library loop: 492 files, 1 failed, tests/test_mod_pack_output_alias.py; it fails the same way on main 1154976d4 here.

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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482670848 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444). Originally posted by [hugo0024](https://github.com/hugo0024) on 2026-11-25T00:21:07Z. --- Claimed in the coordination issue as: TEST-BUILD-TEXT-ONLY ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148298254)) Depends on: #822 It does not build on #822; the two conflict. Both add a block right after `barycentric_fallback()` in `runtime/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.py` with no names builds nothing: ```text cs_dpp_cmp.asm did not assemble: <stdin>:15:1: error: dpp variant of this instruction is not supported v_cmp_gt_f32_dpp vcc_lo, v1, v1 quad_perm:[1,0,3,2] row_mask:0xf bank_mask:0xf bound_ctrl:1 ``` `cs_dpp_cmp.asm` holds 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, and `scripts/run_gpu_tests.py` passes such a source's instruction lines to the translator as they are. `build.py` still sent it to llvm-mc and stopped before publishing anything, so the two-step form is broken for the whole list: `check.py` reports 0 of 226 (it has an expected entry for `cs_dpp_cmp`), and `w64_graphics.py` finds no module. - `build.py`: a source that carries the marker line is not assembled; `text_only_listing()` writes the listing `assemble_to_s` of `run_gpu_tests.py` writes. Everything else in `translate_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.py` is not touched: it keeps its own `TEXT_ONLY_MARK` line, 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 `main` `1154976d4`, after is this branch on `b4b7756e8`; `LEONIDA_F16_INTERP_FALLBACK=1` for both scripts, as a Mac needs: | | Before | After | |---|---|---| | `build.py <out>` | exit 1, 0 modules | 288 of 288 translated and valid, 288 modules | | `check.py` | 0 of 226 pass, 4 skipped | 183 of 226 pass, 41 skipped; `cs_dpp_cmp` ok | | `w64_graphics.py` | 30 of 30 "missing .spv" | 0 missing | | `run_gpu_tests.py` | 192/256 passed, 63 skipped | the same, test for test | - The `cs_dpp_cmp` module `build.py` now writes is byte-identical to the one `run_gpu_tests.py` builds (8724 bytes). - After, `check.py` leaves `cs_fma_fused` (the MoltenVK 1.4.2 row of `docs/testing.md`) and the intermittent `ps_imgatomic` (#543), as before #957. `w64_graphics.py` still exits 1 on a Mac for the seven `vs_w64_*` fixtures, which is #900's subject. - `tests/test_shader_build_text_only.py`: 8 tests pass. With `main`'s `build.py`, 6 of them error. - `tests/test_shader_build_fallbacks.py`, `tests/test_docs_*.py`, `tests/test_i18n_index.py` pass; `python -m compileall -q make_game.py tools tests` is clean. - pytest files: 1881 passed, 2 failed, before and after alike. The two are `tests/test_translate.py` on `cs_dpp_cmp.asm`, which #1375 fixes. - Standard-library loop: 492 files, 1 failed, `tests/test_mod_pack_output_alias.py`; it fails the same way on `main` `1154976d4` here. 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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Tauwni commented 2026-11-25 10:02:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tauwni on 2026-11-25T10:02:50Z.


Tested on an Apple M3 (MoltenVK 1.4.2, macOS 26.5.1, llvm-mc 23.1.6 from Homebrew), this PR at ae4e7d75d applied on main 626d1281a:

  • On main, runtime/test/shaders/build.py stops at cs_dpp_cmp.asm ("dpp variant of this instruction is not supported") and writes no SPIR-V, so check.py runs nothing.
  • With this PR: 297 shaders, 297 translated, 297 pass spirv-val; check.py 183 of 231 pass, 43 skipped, and cs_dpp_cmp is ok. The five failures are the known Mac ones (cs_fma_fused, ps_ssharp, ps_ij_computed, ps_interp_f16_high) and cs_imgatomic_ext (#1518).
  • python -I tests/test_shader_build_text_only.py: 8 tests OK.

Full record in #1718. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7159149276 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1444#issuecomment-7159149276). Originally posted by [Tauwni](https://github.com/Tauwni) on 2026-11-25T10:02:50Z. --- Tested on an Apple M3 (MoltenVK 1.4.2, macOS 26.5.1, llvm-mc 23.1.6 from Homebrew), this PR at `ae4e7d75d` applied on `main` `626d1281a`: - On `main`, `runtime/test/shaders/build.py` stops at `cs_dpp_cmp.asm` ("dpp variant of this instruction is not supported") and writes no SPIR-V, so `check.py` runs nothing. - With this PR: 297 shaders, 297 translated, 297 pass `spirv-val`; `check.py` 183 of 231 pass, 43 skipped, and `cs_dpp_cmp` is `ok`. The five failures are the known Mac ones (`cs_fma_fused`, `ps_ssharp`, `ps_ij_computed`, `ps_interp_f16_high`) and `cs_imgatomic_ext` (#1518). - `python -I tests/test_shader_build_text_only.py`: 8 tests OK. Full record in #1718. AI-assisted (Claude Code).
Anzymanz commented 2026-11-25 13:45:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Anzymanz on 2026-11-25T13:45:43Z.


Confirmed on an RX 9070 XT (RADV, Mesa 26.2.6, CachyOS, llvm-mc 23.1.5) at main 5e95fa2. On main, build.py exits at cs_dpp_cmp.asm ("dpp variant of this instruction is not supported"), so check.py has no modules and reports 0 of 230. With this branch (and #1518), build.py translates 297/297 and all pass spirv-val, and check.py gives 227 of 231 pass, 4 skipped, both native and LEONIDA_W64_EMULATE=1; cs_dpp_cmp passes. tests/test_shader_build_text_only.py passes. Recorded in #1870. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7164251202 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1444#issuecomment-7164251202). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-25T13:45:43Z. --- Confirmed on an RX 9070 XT (RADV, Mesa 26.2.6, CachyOS, llvm-mc 23.1.5) at main 5e95fa2. On main, `build.py` exits at `cs_dpp_cmp.asm` ("dpp variant of this instruction is not supported"), so `check.py` has no modules and reports 0 of 230. With this branch (and #1518), `build.py` translates 297/297 and all pass spirv-val, and `check.py` gives 227 of 231 pass, 4 skipped, both native and `LEONIDA_W64_EMULATE=1`; `cs_dpp_cmp` passes. `tests/test_shader_build_text_only.py` passes. Recorded in #1870. AI-assisted.
PierreEbele commented 2026-11-25 15:30:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:30:04Z.


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 python -I tests/test_shader_build_text_only.py on the PR tree (8 tests OK; 6 errors against main's build.py), tests/test_shader_build_fallbacks.py on both trees (OK), and a probe on both with a stubbed llvm-mc: main dies with "cs_dpp_cmp.asm did not assemble" before publishing anything, the PR builds it with zero assembler calls and a listing byte-identical to run_gpu_tests.py's for the same fixture. No llvm-mc/spirv-val/GPU on this machine, so the end-to-end totals are unverified; no findings, no game data touched.
AI-assisted review.
Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7166939852 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1444#issuecomment-7166939852). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T15:30:04Z. --- 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 `python -I tests/test_shader_build_text_only.py` on the PR tree (8 tests OK; 6 errors against main's build.py), tests/test_shader_build_fallbacks.py on both trees (OK), and a probe on both with a stubbed llvm-mc: main dies with "cs_dpp_cmp.asm did not assemble" before publishing anything, the PR builds it with zero assembler calls and a listing byte-identical to run_gpu_tests.py's for the same fixture. No llvm-mc/spirv-val/GPU on this machine, so the end-to-end totals are unverified; no findings, no game data touched. AI-assisted review. **Recommendation:** Merge
kevincommits commented 2026-11-26 07:15:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kevincommits on 2026-11-26T07:15:24Z.


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 (llvm-mc with the AMDGPU target), SPIRV-Tools from Homebrew. I merged main at a73a57e13 into the branch locally (822 commits behind, no conflicts). Head tested: ae4e7d75d.

build.py with no names: on main it stops at cs_dpp_cmp and publishes nothing; on this branch it builds all 301 shaders and all 301 pass spirv-val.

Command on both trees: LLVM_MC=/opt/homebrew/opt/llvm/bin/llvm-mc python3 -I runtime/test/shaders/build.py <out>.

tree result files in <out>/spirv
main at a73a57e13 exit 1: <stdin>:17:1: error: dpp variant of this instruction is not supported at v_cmp_gt_f32_dpp vcc_lo, v1, v1 dpp8:[4,5,6,7,0,1,2,3] 0
this branch merged with main 301 shaders: 301 translated, 301 pass spirv-val 604, 20 of them for the dpp fixtures

So the failure in the description reproduces here with a current llvm-mc, and the change removes it.

  • Test file. python -I tests/test_shader_build_text_only.py: 8/8 on the merged tree.
  • Full standalone suite on the merged tree: 514 run, 513 pass; the 1 that fails is main's test_mod_pack_output_alias (fixed by #1412).

Not tested: check.py and the GPU runs on the built shaders, and the LEONIDA_* build variants. No game files used. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7185261671 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1444#issuecomment-7185261671). Originally posted by [kevincommits](https://github.com/kevincommits) on 2026-11-26T07:15:24Z. --- 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 (`llvm-mc` with the AMDGPU target), SPIRV-Tools from Homebrew. I merged `main` at `a73a57e13` into the branch locally (822 commits behind, no conflicts). Head tested: `ae4e7d75d`. **`build.py` with no names: on `main` it stops at `cs_dpp_cmp` and publishes nothing; on this branch it builds all 301 shaders and all 301 pass `spirv-val`.** Command on both trees: `LLVM_MC=/opt/homebrew/opt/llvm/bin/llvm-mc python3 -I runtime/test/shaders/build.py <out>`. | tree | result | files in `<out>/spirv` | |---|---|---| | `main` at `a73a57e13` | exit 1: `<stdin>:17:1: error: dpp variant of this instruction is not supported` at `v_cmp_gt_f32_dpp vcc_lo, v1, v1 dpp8:[4,5,6,7,0,1,2,3]` | 0 | | this branch merged with `main` | `301 shaders: 301 translated, 301 pass spirv-val` | 604, 20 of them for the `dpp` fixtures | So the failure in the description reproduces here with a current llvm-mc, and the change removes it. - **Test file.** `python -I tests/test_shader_build_text_only.py`: 8/8 on the merged tree. - **Full standalone suite on the merged tree:** 514 run, 513 pass; the 1 that fails is `main`'s `test_mod_pack_output_alias` (fixed by #1412). Not tested: `check.py` and the GPU runs on the built shaders, and the `LEONIDA_*` build variants. No game files used. AI-assisted.
OreoFR commented 2026-11-28 21:51:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:51:00Z.


Verified by OreoFR

Run 1 (win02)

  • Base: main 5cb45921e + PR head 3fd1a37dc; green run in a merge package of 2 PRs, no new ctest failure vs main
  • Test: python -I tests/test_shader_build_text_only.py ; package ctest
  • Red on main: 6 ERROR (AttributeError TEXT_ONLY_MARK: main has no text-only path in build.py; the constant and text_only_listing are the feature): the missing function itself
  • Green with the PR: 8 OK, package with no new ctest failure
  • Verdict: READY

Run 2 (lot 4)

  • Base: main 09c153948 + PR head 3fd1a37dc; integration package 1 of 6 (20 PRs, merged without conflict)
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; full Python suite; translator suite
  • Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps)
  • Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main; Python: the same 7 failing files as main, the PRs' 11 test files pass; translator: 0 failures
  • Verdict: CLEAN PACKAGE (no new failure vs main)

Run 3 (lot 4 bis)

  • Base: main 33db04a70 + PR head 3fd1a37dc; integration package of 15 PRs
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite
  • Red on main: 6 errors (python -I tests/test_shader_build_text_only.py)
  • Green with the PR: OK; ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures
  • Verdict: READY (no new failure vs main; #822 and #1444 conflict trivially with each other in runtime/test/shaders/build.py (two function blocks added at the same place), whichever merges second needs a rebase)

All runs

  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246318515 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7246318515). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:51:00Z. --- **Verified by OreoFR** **Run 1 (win02)** - Base: main `5cb45921e` + PR head `3fd1a37dc`; green run in a merge package of 2 PRs, no new ctest failure vs main - Test: `python -I tests/test_shader_build_text_only.py ; package ctest` - Red on main: 6 ERROR (AttributeError TEXT_ONLY_MARK: main has no text-only path in build.py; the constant and text_only_listing are the feature): the missing function itself - Green with the PR: 8 OK, package with no new ctest failure - Verdict: READY **Run 2 (lot 4)** - Base: main `09c153948` + PR head `3fd1a37dc`; integration package 1 of 6 (20 PRs, merged without conflict) - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; full Python suite; translator suite - Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps) - Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main; Python: the same 7 failing files as main, the PRs' 11 test files pass; translator: 0 failures - Verdict: CLEAN PACKAGE (no new failure vs main) **Run 3 (lot 4 bis)** - Base: main `33db04a70` + PR head `3fd1a37dc`; integration package of 15 PRs - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite - Red on main: 6 errors (`python -I tests/test_shader_build_text_only.py`) - Green with the PR: OK; ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures - Verdict: READY (no new failure vs main; #822 and #1444 conflict trivially with each other in runtime/test/shaders/build.py (two function blocks added at the same place), whichever merges second needs a rebase) **All runs** - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 21:59:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T21:59:57Z.


Hi @hugo0024, thanks for this pull request. OreoFR checked it red/green on Windows (RTX 4070 Laptop, driver 621.40): tests/test_shader_build_text_only.py fails on main without it and passes with it, and the C++ bundle showed no new ctest failure. It was ready to merge, but #822 was merged just before it and both touch runtime/test/shaders/build.py, so it now conflicts with main (c7753ed98) in that file. Could you merge main into your branch (no rebase needed) and resolve that one file? It can be merged right after.

AI-assisted (Claude Code, Claude Opus 5.5), posted for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246423188 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7246423188). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T21:59:57Z. --- Hi @hugo0024, thanks for this pull request. OreoFR checked it red/green on Windows (RTX 4070 Laptop, driver 621.40): `tests/test_shader_build_text_only.py` fails on `main` without it and passes with it, and the C++ bundle showed no new ctest failure. It was ready to merge, but #822 was merged just before it and both touch `runtime/test/shaders/build.py`, so it now conflicts with `main` (c7753ed98) in that file. Could you merge `main` into your branch (no rebase needed) and resolve that one file? It can be merged right after. AI-assisted (Claude Code, Claude Opus 5.5), posted for MoonEyes.
zmasi commented 2026-11-29 02:35:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T02:35:37Z.


Verification Report (703b69134c merged into main c8bf0e7b6)

  • Environment: Windows 11, Python 3.12.10, llvm-mc 21.x (amdgcn target), Vulkan SDK 1.4.363.1 (spirv-as, spirv-val, LEONIDA_VK_VALIDATION=1 with VK_LAYER_KHRONOS_validation), NVIDIA GeForce RTX 3090 (Ampere, driver 610.88, subgroup 32..32). No game data used (check_no_game_data.py rc=0).
  • Diff & Merge Audit: Merged 703b69134c cleanly into current origin/main (25cf1aa4ec / c8bf0e7b6, 0 conflicts; 2 files changed: runtime/test/shaders/build.py, tests/test_shader_build_text_only.py). Confirmed that the #822 conflict resolution in runtime/test/shaders/build.py preserves both barycentric_fallback() / f16_interp_fallback_override() and TEXT_ONLY_MARK / text_only_listing(), staging synthetic FSSM headers and bypassing llvm-mc only when TEXT_ONLY_MARK appears as a full standalone line.

Red -> Green Results (Post-#822 Resolution + Live RTX 3090 Shader Execution)

Check Base main build.py Merged main + #1444 (703b69134c)
python -I tests/test_shader_build_text_only.py RED (rc=1, FAILED (errors=6): AttributeError: ... 'TEXT_ONLY_MARK') GREEN (rc=0, Ran 8 tests in 0.846s — OK)
python -I tests/test_shader_build_fallbacks.py (#822 regression check) — GREEN (rc=0, Ran 9 tests in 1.874s — OK)
python -I runtime/test/shaders/build.py <out> RED (rc=1, aborts at cs_dpp_cmp.asm did not assemble: error: dpp variant of this instruction is not supported; 0 .spv modules written) GREEN (rc=0: 306 shaders: 306 translated, 306 pass spirv-val, including cs_dpp_cmp.spv)
check.py <out> on RTX 3090 (LEONIDA_VK_VALIDATION=1) RED (0 modules built) GREEN (cs_dpp_cmp ok + all 10 cs_dpp* fixtures ok, 0 validation errors)
w64_graphics.py <out> on RTX 3090 (LEONIDA_VK_VALIDATION=1) RED (30/30 missing .spv) GREEN (rc=0: 18/18 Tier A/B draws ok, 12 Tier C cleanly skipped without W64G_REF, 0 missing .spv)
  • Verdict: PASS (post-#822 merge resolution at 703b69134c merges cleanly into current main, preserves #822's fallback tests, unblocks full build.py translation of all 306 fixtures, and passes live cs_dpp_cmp + w64_graphics.py execution on RTX 3090).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249525261 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7249525261). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T02:35:37Z. --- ### Verification Report (`703b69134c` merged into `main` `c8bf0e7b6`) - **Environment**: Windows 11, Python 3.12.10, `llvm-mc` 21.x (`amdgcn` target), Vulkan SDK `1.4.363.1` (`spirv-as`, `spirv-val`, `LEONIDA_VK_VALIDATION=1` with `VK_LAYER_KHRONOS_validation`), **NVIDIA GeForce RTX 3090** (Ampere, driver `610.88`, subgroup `32..32`). No game data used (`check_no_game_data.py` `rc=0`). - **Diff & Merge Audit**: Merged `703b69134c` cleanly into current `origin/main` (`25cf1aa4ec` / `c8bf0e7b6`, `0` conflicts; 2 files changed: `runtime/test/shaders/build.py`, `tests/test_shader_build_text_only.py`). Confirmed that the `#822` conflict resolution in `runtime/test/shaders/build.py` preserves both `barycentric_fallback()` / `f16_interp_fallback_override()` and `TEXT_ONLY_MARK` / `text_only_listing()`, staging synthetic FSSM headers and bypassing `llvm-mc` only when `TEXT_ONLY_MARK` appears as a full standalone line. #### Red -> Green Results (Post-`#822` Resolution + Live RTX 3090 Shader Execution) | Check | Base `main` `build.py` | Merged `main` + `#1444` (`703b69134c`) | |---|---|---| | `python -I tests/test_shader_build_text_only.py` | **RED** (`rc=1`, `FAILED (errors=6)`: `AttributeError: ... 'TEXT_ONLY_MARK'`) | **GREEN** (`rc=0`, `Ran 8 tests in 0.846s — OK`) | | `python -I tests/test_shader_build_fallbacks.py` (`#822` regression check) | — | **GREEN** (`rc=0`, `Ran 9 tests in 1.874s — OK`) | | `python -I runtime/test/shaders/build.py <out>` | **RED** (`rc=1`, aborts at `cs_dpp_cmp.asm did not assemble: error: dpp variant of this instruction is not supported`; `0` `.spv` modules written) | **GREEN** (`rc=0`: `306 shaders: 306 translated, 306 pass spirv-val`, including `cs_dpp_cmp.spv`) | | `check.py <out>` on RTX 3090 (`LEONIDA_VK_VALIDATION=1`) | **RED** (`0` modules built) | **GREEN** (`cs_dpp_cmp ok` + all 10 `cs_dpp*` fixtures `ok`, `0` validation errors) | | `w64_graphics.py <out>` on RTX 3090 (`LEONIDA_VK_VALIDATION=1`) | **RED** (`30/30` missing `.spv`) | **GREEN** (`rc=0`: `18/18` Tier A/B draws `ok`, `12` Tier C cleanly skipped without `W64G_REF`, `0` missing `.spv`) | - **Verdict**: **PASS** (post-`#822` merge resolution at `703b69134c` merges cleanly into current `main`, preserves `#822`'s fallback tests, unblocks full `build.py` translation of all 306 fixtures, and passes live `cs_dpp_cmp` + `w64_graphics.py` execution on RTX 3090). AI-assisted.
TheGeogeo commented 2026-11-29 14:18:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:30Z.


Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 1 commit(s) not there, and 11 of the 119 lines it adds are already present. No duplicate found: its claim TEST-BUILD-TEXT-ONLY appears in no other open pull request and in no main commit.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257201656 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7257201656). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:18:30Z. --- Ready for testing: merges cleanly with `main` `3535eb5c4`. Not in `main` yet: `git cherry` finds 1 commit(s) not there, and 11 of the 119 lines it adds are already present. No duplicate found: its claim `TEST-BUILD-TEXT-ONLY` appears in no other open pull request and in no `main` commit. AI-assisted (Claude Code).
enlight3d commented 2026-11-29 15:21:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:21:48Z.


RUN of #1444 (red/green, python -I, no build, no game, no GPU, no llvm-mc)

Heads tested: PR head 703b69134c79, origin/main c22a0a73228c; merged = main + PR head, git merge --no-ff, local only (merged cleanly, merge commit aaff6d0f0634).

Commands, one process each, from the worktree root:
python -I tests/test_shader_build_text_only.py -v
Related (they load runtime/test/shaders/build.py or scripts/run_gpu_tests.py): tests/test_shader_build_fallbacks.py, test_mc_command.py, test_cmake_translator_deps.py, test_run_gpu_tests.py, tests/semantic/test_global_mem_offset.py, tests/semantic/test_value_semantics.py (the last one as python tests/semantic/test_value_semantics.py, see the note).

  • Red, two kinds, both with the PR's test file kept:
    1. Non-test change reverted entirely (runtime/test/shaders/build.py from the merge base): build-style red, FAILED (errors=6) of 8, each AttributeError: module ... has no attribute 'TEXT_ONLY_MARK' (new API missing); the other 2 tests pass on the old file.
    2. Behavioural red: new API kept (TEXT_ONLY_MARK, text_only_listing), only the call in translate_tests reverted (listing = None, so a marked source goes to llvm-mc again): FAILED (failures=2) of 8, test_a_marked_fixture_never_reaches_llvm_mc for the two marked fixtures, AssertionError: llvm-mc was run for a text-only source.
  • Green at PR head: test_shader_build_text_only.py Ran 8, OK; the related files all OK (test_mc_command.py OK with 8 skipped).
  • Green merged into main: test_shader_build_text_only.py Ran 8, OK; all related files OK (test_shader_build_fallbacks.py Ran 10, main added one). Nothing fails merged that passes on main.
  • Notes: there is no llvm-mc on this machine, which this PR's test does not need (llvm-mc and the translator are stand-ins), so the real assembler path was not exercised here. tests/test_wave64_halves_fixtures.py was not run (it needs pytest, not installed here). tests/semantic/test_value_semantics.py fails under python -I with ModuleNotFoundError: No module named 'support', a property of isolated mode that does not depend on the PR; without -I it passes (41 tests OK at head and merged).

Machine: NVIDIA GeForce RTX 3090 (not used), Windows 11 Pro 10.0.26300, CPython 3.13.12.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258029085 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7258029085). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T15:21:48Z. --- RUN of #1444 (red/green, `python -I`, no build, no game, no GPU, no llvm-mc) Heads tested: PR head `703b69134c79`, origin/main `c22a0a73228c`; merged = main + PR head, `git merge --no-ff`, local only (merged cleanly, merge commit `aaff6d0f0634`). Commands, one process each, from the worktree root: `python -I tests/test_shader_build_text_only.py -v` Related (they load `runtime/test/shaders/build.py` or `scripts/run_gpu_tests.py`): `tests/test_shader_build_fallbacks.py`, `test_mc_command.py`, `test_cmake_translator_deps.py`, `test_run_gpu_tests.py`, `tests/semantic/test_global_mem_offset.py`, `tests/semantic/test_value_semantics.py` (the last one as `python tests/semantic/test_value_semantics.py`, see the note). - Red, two kinds, both with the PR's test file kept: 1. Non-test change reverted entirely (`runtime/test/shaders/build.py` from the merge base): build-style red, `FAILED (errors=6)` of 8, each `AttributeError: module ... has no attribute 'TEXT_ONLY_MARK'` (new API missing); the other 2 tests pass on the old file. 2. Behavioural red: new API kept (`TEXT_ONLY_MARK`, `text_only_listing`), only the call in `translate_tests` reverted (`listing = None`, so a marked source goes to llvm-mc again): `FAILED (failures=2)` of 8, `test_a_marked_fixture_never_reaches_llvm_mc` for the two marked fixtures, `AssertionError: llvm-mc was run for a text-only source`. - Green at PR head: `test_shader_build_text_only.py` Ran 8, OK; the related files all OK (`test_mc_command.py` OK with 8 skipped). - Green merged into main: `test_shader_build_text_only.py` Ran 8, OK; all related files OK (`test_shader_build_fallbacks.py` Ran 10, main added one). Nothing fails merged that passes on main. - Notes: there is no llvm-mc on this machine, which this PR's test does not need (llvm-mc and the translator are stand-ins), so the real assembler path was not exercised here. `tests/test_wave64_halves_fixtures.py` was not run (it needs pytest, not installed here). `tests/semantic/test_value_semantics.py` fails under `python -I` with `ModuleNotFoundError: No module named 'support'`, a property of isolated mode that does not depend on the PR; without `-I` it passes (41 tests OK at head and merged). Machine: NVIDIA GeForce RTX 3090 (not used), Windows 11 Pro 10.0.26300, CPython 3.13.12.
OreoFR commented 2026-11-29 15:29:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T15:29:06Z.


Re-verified by OreoFR at head 703b69134 on main 91bab934d: READY — red 6 fail → green 8 OK; ctest/link n/a (only runtime/test/shaders/build.py and a Python test change, nothing gta6rt links); head changed since the earlier verification https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7246318515 (that was 3fd1a37dc, before the rebase over #822). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5).

  • Red (main + only tests/test_shader_build_text_only.py): 8 tests, 6 errors (TEXT_ONLY_MARK and the text-only listing are not in main's build.py).
  • Green (main + this PR, git merge --no-ff, no conflict): 8 tests OK. tests/test_shader_build_fallbacks.py (#822's tests) also passes on the merge, 10 OK, as on main.

Ready to merge per the maintainers' plan.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258125563 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7258125563). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T15:29:06Z. --- **Re-verified by OreoFR** at head `703b69134` on main `91bab934d`: READY — red 6 fail → green 8 OK; ctest/link n/a (only `runtime/test/shaders/build.py` and a Python test change, nothing gta6rt links); head changed since the earlier verification https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7246318515 (that was `3fd1a37dc`, before the rebase over #822). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5). - Red (main + only `tests/test_shader_build_text_only.py`): 8 tests, 6 errors (`TEXT_ONLY_MARK` and the text-only listing are not in main's `build.py`). - Green (main + this PR, `git merge --no-ff`, no conflict): 8 tests OK. `tests/test_shader_build_fallbacks.py` (#822's tests) also passes on the merge, 10 OK, as on main. Ready to merge per the maintainers' plan.
aslan2142 commented 2026-12-01 11:41:48 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed the diff against main: runtime/test/shaders/build.py:84-100,206-222 cleanly recognizes TEXT_ONLY_MARK and writes the same synthetic listing as scripts/run_gpu_tests.py without invoking llvm-mc, covered by 8 unit tests in tests/test_shader_build_text_only.py. Clean-room verified. Approving; please merge/rebase current main for a fresh green CI run before merge.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130518750 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#pullrequestreview-6130518750). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:41:48Z. **Review:** APPROVED --- Reviewed the diff against `main`: `runtime/test/shaders/build.py:84-100,206-222` cleanly recognizes `TEXT_ONLY_MARK` and writes the same synthetic listing as `scripts/run_gpu_tests.py` without invoking `llvm-mc`, covered by 8 unit tests in `tests/test_shader_build_text_only.py`. Clean-room verified. Approving; please merge/rebase current `main` for a fresh green CI run before merge. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:35:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:35:36Z.


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:7317861968 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1444#issuecomment-7317861968). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:35:36Z. --- 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!1444
No description provided.