scripts: build llvm-mc 23.1.5 by default, so the pipeline library translates #1923

Open
github-bot wants to merge 2 commits from github-bot/gh-1923 into main AGit
Owner

@⁠fiestorra on GitHub · 2026-11-25 15:54 UTC · original
fiestorra:carry/llvm-mc-23-default → main · +73 −32 · 12 files · 2 commits · open

Claimed in the coordination issue as: LIBRARY-TRANSLATION-GAP (#1608)

What and why

scripts/build_llvm_mc.ps1 built LLVM 21.1.8 by default. That version's gfx1013 decoder cannot decode 840 of the
2,684 compute programs in the pipeline library of 1.0.2.1: their listings carry 79,490 rejected words (and 8,310
exp invalid_target_N lines), the translator refuses all of them as fall-through into undecodable words, and the
shaders stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503 shaders of shaders.rpf; the pipeline library
is the part it loses.

The same bytes disassembled with LLVM 23.1.5 (the release docs/testing.md and the corpus runs already name) have no
rejected word in those 840, and 839 of them translate and pass spirv-val; the 840th wants s_sethalt, which the
translator does not implement, under either version.

So this changes the helper's default -Version to 23.1.5, the docs that name the minimum version (README.md,
docs/design.md, docs/testing.md, docs/linux.md), and the three user-facing messages that still said 21+:
make_game.py's shaders preflight, shader_disasm.py's probe error and mc_command.py's install hint (the same
text is used when the fixture assembler is missing, but recommending 21+ there sends users to the version that loses
the library). tests/test_make_game_pipeline_preflight.py, tests/test_make_game_preflight.py and
tests/test_mc_command.py asserted those texts and are updated with them.

It is not a decoder workaround: #998 and #1712 patch around LLVM 21 in tools/ and are untouched here; this removes
the cause for anyone who builds llvm-mc with the helper.

Tested

All numbers on main 71a769d7d, -mcpu=gfx1013, --stages cs, 1.0.2.1, with llvm-mc 21.1.8 at
%USERPROFILE%\.leonida\llvm-mc and 23.1.5 at %USERPROFILE%\.leonida\llvm-mc-23 (native Windows builds from the
llvmorg-21.1.8 and llvmorg-23.1.5 tags).

  • The 840 refused programs: 79,490 invalid instruction encoding words and 8,310 exp invalid_target_N with 21.1.8;
    0 and 0 with 23.1.5 (library.json totals: 1,844 of 2,684).
  • Translation of those 840 from the 23.1.5 listings: 839 translated and 839 passed spirv-val (was 0/840). The
    refusal is s_sethalt, the same with the 21.1.8 listing, so it is not a decode difference.
  • The 1,844 that already translated, re-disassembled and re-translated: 1,674 listings differ under 23.1.5 (LLVM
    prints some operands differently; they still carry 1,317 known data words from 1,887) and 1,674 of 1,674 pass,
    the other 170 are byte-identical. So the stage goes from 1,844/2,684 to 2,683/2,684, the last being
    s_sethalt.
  • tests/test_docs_*, tests/test_make_game_preflight.py, tests/test_make_game_pipeline_preflight.py,
    tests/test_mc_command.py, tests/test_shader_disasm.py, tests/test_llvm_source_version.py,
    tests/test_llvm_install_*.py, tests/test_build_llvm_mc_*.py, tests/test_build_percent_path.py: pass.
    python -m compileall and git diff --check: clean. No unit test covers the default tag: it downloads and builds
    LLVM, which CI cannot do.

What this does not prove: the helper itself was not rebuilt here; the 23.1.5 binary measured is a native Windows build
from the llvmorg-23.1.5 tag on this machine (build log ends rc=0). The 26,503-shader corpus was not re-measured
with 23.1.5 in this run (the README's 23.1.5 rerun covers it). Whether s_sethalt can be expressed in SPIR-V is not
investigated. Every module was checked with spirv-val; none was run on a GPU.

GPUs tested: n/a (no GPU test; translation and spirv-val only)

AI-assisted: yes (DeepSeek Harness)

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.

Written with an AI assistant.

Why the version matters beyond the pipeline library

Measured on the retail title afterwards, and it is stronger than the translate count the description uses:

  • With a library translated by LLVM 21.1.8 (28,433 of 29,280 programs translated), a 900 s run of the title logged 849 E_INVALIDARG at device slot 67 (Xbox DeserializeComputePipelineStateX), 847 programs short.
  • With the LLVM 23.1.5 library (29,277 of 29,280), the same run, same machine, same 900 s: 0 failures and 2,689 successful slot-67 calls.

So without this change the shaders stage silently produces a library that is 847 compute programs short, and every pipeline state that uses one of them fails at creation among ~25,000 that succeed. The failures are per-call log lines, which is why they read as noise.

Details, with the counts and the method: #1608 and the like-for-like control in the next comment.

The three red jobs in the current run (linux-gpu-tools, macos, windows) are analysed in the thread below and are not from this diff: the linux-gpu-tools compile error is in code identical on main, cs_imgatomic_ext is the fixture owned by #1518, and vk_xdxr_postbuild_readback is a runtime test this branch does not touch.

**@⁠fiestorra** on GitHub · 2026-11-25 15:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923) `fiestorra:carry/llvm-mc-23-default` → `main` · +73 −32 · 12 files · 2 commits · open Claimed in the coordination issue as: LIBRARY-TRANSLATION-GAP (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why `scripts/build_llvm_mc.ps1` built LLVM 21.1.8 by default. That version's `gfx1013` decoder cannot decode 840 of the 2,684 compute programs in the pipeline library of 1.0.2.1: their listings carry 79,490 rejected words (and 8,310 `exp invalid_target_N` lines), the translator refuses all of them as `fall-through into undecodable words`, and the `shaders` stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503 shaders of `shaders.rpf`; the pipeline library is the part it loses. The same bytes disassembled with LLVM 23.1.5 (the release `docs/testing.md` and the corpus runs already name) have no rejected word in those 840, and 839 of them translate and pass `spirv-val`; the 840th wants `s_sethalt`, which the translator does not implement, under either version. So this changes the helper's default `-Version` to 23.1.5, the docs that name the minimum version (`README.md`, `docs/design.md`, `docs/testing.md`, `docs/linux.md`), and the three user-facing messages that still said 21+: `make_game.py`'s `shaders` preflight, `shader_disasm.py`'s probe error and `mc_command.py`'s install hint (the same text is used when the fixture assembler is missing, but recommending 21+ there sends users to the version that loses the library). `tests/test_make_game_pipeline_preflight.py`, `tests/test_make_game_preflight.py` and `tests/test_mc_command.py` asserted those texts and are updated with them. It is not a decoder workaround: #998 and #1712 patch around LLVM 21 in `tools/` and are untouched here; this removes the cause for anyone who builds `llvm-mc` with the helper. ### Tested All numbers on `main` `71a769d7d`, `-mcpu=gfx1013`, `--stages cs`, 1.0.2.1, with `llvm-mc` 21.1.8 at `%USERPROFILE%\.leonida\llvm-mc` and 23.1.5 at `%USERPROFILE%\.leonida\llvm-mc-23` (native Windows builds from the `llvmorg-21.1.8` and `llvmorg-23.1.5` tags). - The 840 refused programs: 79,490 `invalid instruction encoding` words and 8,310 `exp invalid_target_N` with 21.1.8; 0 and 0 with 23.1.5 (`library.json` totals: 1,844 of 2,684). - Translation of those 840 from the 23.1.5 listings: **839 translated and 839 passed `spirv-val`** (was 0/840). The refusal is `s_sethalt`, the same with the 21.1.8 listing, so it is not a decode difference. - The 1,844 that already translated, re-disassembled and re-translated: 1,674 listings differ under 23.1.5 (LLVM prints some operands differently; they still carry 1,317 known data words from 1,887) and **1,674 of 1,674 pass**, the other 170 are byte-identical. **So the stage goes from 1,844/2,684 to 2,683/2,684**, the last being `s_sethalt`. - `tests/test_docs_*`, `tests/test_make_game_preflight.py`, `tests/test_make_game_pipeline_preflight.py`, `tests/test_mc_command.py`, `tests/test_shader_disasm.py`, `tests/test_llvm_source_version.py`, `tests/test_llvm_install_*.py`, `tests/test_build_llvm_mc_*.py`, `tests/test_build_percent_path.py`: pass. `python -m compileall` and `git diff --check`: clean. No unit test covers the default tag: it downloads and builds LLVM, which CI cannot do. What this does not prove: the helper itself was not rebuilt here; the 23.1.5 binary measured is a native Windows build from the `llvmorg-23.1.5` tag on this machine (build log ends `rc=0`). The 26,503-shader corpus was not re-measured with 23.1.5 in this run (the README's 23.1.5 rerun covers it). Whether `s_sethalt` can be expressed in SPIR-V is not investigated. Every module was checked with `spirv-val`; none was run on a GPU. GPUs tested: n/a (no GPU test; translation and `spirv-val` only) AI-assisted: yes (DeepSeek Harness) ### 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. Written with an AI assistant. ## Why the version matters beyond the pipeline library Measured on the retail title afterwards, and it is stronger than the translate count the description uses: - With a library translated by **LLVM 21.1.8** (28,433 of 29,280 programs translated), a 900 s run of the title logged **849 `E_INVALIDARG`** at device slot 67 (`Xbox DeserializeComputePipelineStateX`), 847 programs short. - With the **LLVM 23.1.5** library (29,277 of 29,280), the same run, same machine, same 900 s: **0 failures and 2,689 successful slot-67 calls**. So without this change the `shaders` stage silently produces a library that is 847 compute programs short, and every pipeline state that uses one of them fails at creation among ~25,000 that succeed. The failures are per-call log lines, which is why they read as noise. Details, with the counts and the method: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 and the like-for-like control in the next comment. The three red jobs in the current run (`linux-gpu-tools`, `macos`, `windows`) are analysed in the thread below and are not from this diff: the `linux-gpu-tools` compile error is in code identical on `main`, `cs_imgatomic_ext` is the fixture owned by #1518, and `vk_xdxr_postbuild_readback` is a runtime test this branch does not touch.
LLVM 21.1.8's gfx1013 decoder cannot decode 840 of the 2,684 compute
programs in the pipeline library of 1.0.2.1: their listings carry 79,490
undecodable words and 8,310 exp invalid_target_N lines, the translator
refuses all of them as "fall-through into undecodable words", and the
shaders stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503
shaders of shaders.rpf; the library is what it loses.

The same bytes under llvm-mc 23.1.5 have no rejected word in those 840,
and 839 of them translate and pass spirv-val (the last wants s_sethalt,
which the translator does not implement, under either version). The 1,844
that already translated were re-disassembled too: 1,674 listings change
and all 1,674 still translate, the other 170 are byte-identical, so the
stage goes from 1,844/2,684 to 2,683/2,684.

The build helper now builds 23.1.5 by default. The docs that name the
minimum version (README, docs/design.md, docs/testing.md, docs/linux.md)
and the three user-facing messages that still said 21+ (make_game.py's
preflight, shader_disasm.py's probe error, mc_command.py's install hint)
now say 23+, with the tests that assert those texts updated.

AI-assisted (DeepSeek Harness).
Written with an AI assistant.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:11:22 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 06:04 UTC · original

The three red jobs are not from this change. The diff touches README.md, docs/design.md, docs/linux.md, docs/testing.md, make_game.py, scripts/build_llvm_mc.ps1, tools/mc_command.py, tools/shader_disasm.py and three test files — nothing under runtime/, and nothing that changes behaviour: the tool edits are the two user-facing "LLVM 21+" strings plus the doc block, and the script edit is the default version.

What each job actually failed on:

  • linux-gpu-tools: runtime/test/vk_null_descriptor_test.cpp:97 cannot see LEONIDA_TEST_NULL_DESCRIPTORS_SPV. That line, the #ifndef guard on line 249 that is supposed to cover it, and the target_compile_definitions in runtime/CMakeLists.txt:2199 are identical on main and on this branch (git grep against origin/main) — I did not touch any of the three, so this is a main-side configuration break, not something this branch introduces.
  • macos: cs_imgatomic_ext failed, the GPU fixture that is already red on the matching adapter and is owned by #1518. Same reason it was red before this branch existed.
  • windows: 423 of 424 tests pass; the only failure is vk_xdxr_postbuild_readback, a Vulkan test of the runtime that this branch does not modify.

Local control on this branch, for whatever it is worth: the three test files this PR does change pass, and the make_game preflight, resume and interrupt files pass too (47 tests, 7 subtests). check has not started yet for this PR, so its result cannot be the reason either.

If a maintainer wants a re-run to confirm the flakes, I would rather that than a change to this branch: editing unrelated runtime/ code to make a red job green is exactly the kind of "acts but changes nothing" PR this project rejects. I can rebase onto current main (a73a57e13) if the branch is behind it.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 06:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7184074163) The three red jobs are not from this change. The diff touches `README.md`, `docs/design.md`, `docs/linux.md`, `docs/testing.md`, `make_game.py`, `scripts/build_llvm_mc.ps1`, `tools/mc_command.py`, `tools/shader_disasm.py` and three test files — **nothing under `runtime/`**, and nothing that changes behaviour: the tool edits are the two user-facing "LLVM 21+" strings plus the doc block, and the script edit is the default version. What each job actually failed on: - **`linux-gpu-tools`**: `runtime/test/vk_null_descriptor_test.cpp:97` cannot see `LEONIDA_TEST_NULL_DESCRIPTORS_SPV`. That line, the `#ifndef` guard on line 249 that is supposed to cover it, and the `target_compile_definitions` in `runtime/CMakeLists.txt:2199` are **identical on `main` and on this branch** (`git grep` against `origin/main`) — I did not touch any of the three, so this is a main-side configuration break, not something this branch introduces. - **`macos`**: `cs_imgatomic_ext failed`, the GPU fixture that is already red on the matching adapter and is owned by #1518. Same reason it was red before this branch existed. - **`windows`**: 423 of 424 tests pass; the only failure is `vk_xdxr_postbuild_readback`, a Vulkan test of the runtime that this branch does not modify. Local control on this branch, for whatever it is worth: the three test files this PR does change pass, and the `make_game` preflight, resume and interrupt files pass too (47 tests, 7 subtests). `check` has not started yet for this PR, so its result cannot be the reason either. If a maintainer wants a re-run to confirm the flakes, I would rather that than a change to this branch: editing unrelated `runtime/` code to make a red job green is exactly the kind of "acts but changes nothing" PR this project rejects. I can rebase onto current `main` (`a73a57e13`) if the branch is behind it. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 06:46 UTC · original

finding: the 849 E_INVALIDARG at device slot 67 (Xbox DeserializeComputePipelineStateX) in my earlier --run reports are caused by the shader library being translated with LLVM 21.1.8, and they disappear with LLVM 23.1.5. Counts only, same machine and package (RTX 4090, driver 32.0.16.2124, Windows 11), LEONIDA_D3D12=vulkan.

The mechanism: the shim builds the FSPX payload and calls self->real->CreateComputePipelineState; the payload is well formed there (kind 0 = 28 B, kind 1 = 20 B, kind 6 = 98 KB in the failing calls), so the E_INVALIDARG comes from our Vulkan layer not finding the program. Summing the N shaders: M translated lines of the two shaders stage logs:

shaders run attempted translated missing
25-nov, LLVM 21.1.8 (the tree the runtime used) 29,280 28,433 847
26-nov, LLVM 23.1.5 29,280 29,277 3

847 missing against 849 failures at the slot.

End to end: re-running the stage with LLVM_MC pointing at an LLVM 23.1.5 llvm-mc and then booting for 300 s with --trace-d3d12 gives 0 slot-67 failures and 2,689 successful slot-67 calls, against 849 failures in the previous 900 s run with the 21.1.8 library. A 900 s control with the new library is running so the comparison is like for like.

This is what #1923 is for, and it makes the case stronger than "the pipeline library translates 2,683 of 2,684": without the version bump, the shaders stage silently produces a library that is 847 programs short, and every compute pipeline state that uses one of them fails at creation. The failures are logged per call, so they are easy to miss among 25,000 successful ones.

Not proven: that those 847 programs now compute the right values (they exist and their PSO is created, nothing more), and nothing about the still-static frame in the boot.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 06:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7184771083) finding: the 849 `E_INVALIDARG` at device slot 67 (`Xbox DeserializeComputePipelineStateX`) in my earlier `--run` reports are caused by the shader library being translated with LLVM 21.1.8, and they disappear with LLVM 23.1.5. Counts only, same machine and package (RTX 4090, driver 32.0.16.2124, Windows 11), `LEONIDA_D3D12=vulkan`. The mechanism: the shim builds the FSPX payload and calls `self->real->CreateComputePipelineState`; the payload is well formed there (kind 0 = 28 B, kind 1 = 20 B, kind 6 = 98 KB in the failing calls), so the `E_INVALIDARG` comes from our Vulkan layer not finding the program. Summing the `N shaders: M translated` lines of the two `shaders` stage logs: | `shaders` run | attempted | translated | **missing** | |---|---|---|---| | 25-nov, LLVM 21.1.8 (the tree the runtime used) | 29,280 | 28,433 | **847** | | 26-nov, LLVM 23.1.5 | 29,280 | 29,277 | **3** | 847 missing against 849 failures at the slot. End to end: re-running the stage with `LLVM_MC` pointing at an LLVM 23.1.5 `llvm-mc` and then booting for 300 s with `--trace-d3d12` gives **0 slot-67 failures and 2,689 successful slot-67 calls**, against 849 failures in the previous 900 s run with the 21.1.8 library. A 900 s control with the new library is running so the comparison is like for like. This is what #1923 is for, and it makes the case stronger than "the pipeline library translates 2,683 of 2,684": without the version bump, the `shaders` stage silently produces a library that is 847 programs short, and every compute pipeline state that uses one of them fails at creation. The failures are logged per call, so they are easy to miss among 25,000 successful ones. Not proven: that those 847 programs now compute the right values (they exist and their PSO is created, nothing more), and nothing about the still-static frame in the boot. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 07:01 UTC · original

Like-for-like control, same 900 s and same machine as the run that reported the failures: with the LLVM 23.1.5 library there are 0 slot-67 failures and 2,689 successful calls, against 849 failures with the 21.1.8 library. The rest of the run matches what it was: 70,204 PresentX (74,068 before), 25,450 graphics PSOs (25,007 before), same 4,621,204,361-byte cache loaded. The 2,689 successful calls are identical in the 300 s and 900 s runs, so the title asks for its compute pipeline states early and does not come back for them.

So the failures were not a defect worth a separate fix: they were the 847 programs the shaders stage could not translate on LLVM 21.1.8, and this change is what puts them back.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 07:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7185017999) Like-for-like control, same 900 s and same machine as the run that reported the failures: with the LLVM 23.1.5 library there are **0 slot-67 failures and 2,689 successful calls**, against **849 failures** with the 21.1.8 library. The rest of the run matches what it was: 70,204 `PresentX` (74,068 before), 25,450 graphics PSOs (25,007 before), same 4,621,204,361-byte cache loaded. The 2,689 successful calls are identical in the 300 s and 900 s runs, so the title asks for its compute pipeline states early and does not come back for them. So the failures were not a defect worth a separate fix: they were the 847 programs the `shaders` stage could not translate on LLVM 21.1.8, and this change is what puts them back. Written with an AI assistant.
github-bot force-pushed github-bot/gh-1923 from 3e2c7caf50 to 92cdd35f06 2026-11-26 11:36:39 +00:00 Compare
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 12:50 UTC · original

The docs no longer say 21 is enough, and a test pins the default

Head 736299450, one commit on top of 92cdd35f0.

  • docs/testing.md: the llvm-mc bullet now separates the two requirements — LLVM 21+ to assemble the test fixtures, 23+ for the shaders stage — instead of saying "21+" and contradicting line 49 of the same file.
  • docs/linux.md: the bullet names llvm-23 first for the shaders stage and keeps the llvm-21 naming only where it is about the distribution's versioned binary names.
  • tests/test_llvm_source_version.py gained DefaultVersionTest, which reads scripts/build_llvm_mc.ps1 and requires [string]$Version = "23.1.5". The existing tests cover an explicit -Version; nothing covered the default, which is the one the fix turns on, so an accidental revert would have passed.

check_no_game_data.py passes on the three files and the test module runs green here (Ran 7 tests, OK).

Still open, and I agree they are the real fix: nothing checks the version at run time (probe() and the post-build probe only check that s_endpgm disassembles, which 21 does), CONTRIBUTING.md/runtime/test/shaders/build.py still say 21+, and CI installs llvm-21 because it only assembles fixtures. A llvm-mc --version read in probe() that warns below 23 is the next commit; I did not want to change the build's failure mode in the same push as the docs.

CI: the five jobs have been queued since 11:33 UTC and 591 runs are queued repo-wide, so there is no signal from the current head yet.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 12:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7192523259) **The docs no longer say 21 is enough, and a test pins the default** Head `736299450`, one commit on top of `92cdd35f0`. - `docs/testing.md`: the `llvm-mc` bullet now separates the two requirements — LLVM 21+ to assemble the test fixtures, **23+ for the `shaders` stage** — instead of saying "21+" and contradicting line 49 of the same file. - `docs/linux.md`: the bullet names `llvm-23` first for the `shaders` stage and keeps the `llvm-21` naming only where it is about the distribution's versioned binary names. - `tests/test_llvm_source_version.py` gained `DefaultVersionTest`, which reads `scripts/build_llvm_mc.ps1` and requires `[string]$Version = "23.1.5"`. The existing tests cover an explicit `-Version`; nothing covered the default, which is the one the fix turns on, so an accidental revert would have passed. `check_no_game_data.py` passes on the three files and the test module runs green here (`Ran 7 tests, OK`). Still open, and I agree they are the real fix: nothing checks the version at run time (`probe()` and the post-build probe only check that `s_endpgm` disassembles, which 21 does), `CONTRIBUTING.md`/`runtime/test/shaders/build.py` still say 21+, and CI installs `llvm-21` because it only assembles fixtures. A `llvm-mc --version` read in `probe()` that warns below 23 is the next commit; I did not want to change the build's failure mode in the same push as the docs. CI: the five jobs have been queued since 11:33 UTC and 591 runs are queued repo-wide, so there is no signal from the current head yet. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 22:12 UTC · original

The red jobs are not this diff (read from the job logs)

Head 736299450. The diff touches README.md, docs/{design,linux,testing}.md, make_game.py, scripts/build_llvm_mc.ps1, tools/{mc_command,shader_disasm}.py and four tests — no runtime/ file. The two failing jobs fail elsewhere:

  • linux-gpu-tools, step Build: runtime/test/vk_null_descriptor_test.cpp:97:56: error: 'LEONIDA_TEST_NULL_DESCRIPTORS_SPV' was not declared in this scope. That define is only added when the configure step finds glslangValidator, and this runner does not have it; the failure is the test's, not the toolchain default's.
  • windows: 99% tests passed, 1 tests failed out of 452, and the one is vk_xdxr_postbuild_readback — a postbuild read-back under runtime/test, again a file this branch does not touch.

So the default of 23.1.5 is not what turns them red. The check, semantic-tests, translator-tests and stdlib-tests-linux jobs are still queued, along with the rest of the repository's queue.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 22:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7204455504) **The red jobs are not this diff (read from the job logs)** Head `736299450`. The diff touches `README.md`, `docs/{design,linux,testing}.md`, `make_game.py`, `scripts/build_llvm_mc.ps1`, `tools/{mc_command,shader_disasm}.py` and four tests — **no `runtime/` file**. The two failing jobs fail elsewhere: - `linux-gpu-tools`, step **Build**: `runtime/test/vk_null_descriptor_test.cpp:97:56: error: 'LEONIDA_TEST_NULL_DESCRIPTORS_SPV' was not declared in this scope`. That define is only added when the configure step finds `glslangValidator`, and this runner does not have it; the failure is the test's, not the toolchain default's. - `windows`: `99% tests passed, 1 tests failed out of 452`, and the one is `vk_xdxr_postbuild_readback` — a postbuild read-back under `runtime/test`, again a file this branch does not touch. So the default of 23.1.5 is not what turns them red. The `check`, `semantic-tests`, `translator-tests` and `stdlib-tests-linux` jobs are still queued, along with the rest of the repository's queue. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 22:55 UTC · original

Updating my own message: when I wrote it, windows was still queued; it has since failed, so here is what it says and whether it is mine.

windows, step CPU runtime tests: 451/455... 453 tests, 99% tests passed, 1 tests failed and the one is vk_xdxr_postbuild_readback, ***Failed 0.02 sec. Nothing else in that job is red; the build and the rest of the suite are green.

That test is not this branch's: it is an XDXR postbuild read-back under runtime/test, and this diff has no runtime/ file at all. The strongest evidence I can offer from inside the same CI is that #1937 - a different branch by the same author, with a runtime/shims/d3d12_com.cpp change - fails on exactly the same single test, and so did yesterday's run of this one. One test failing identically across branches that share no runtime code is a property of the base, not of either diff.

What I could not do, and say so rather than imply otherwise: compare against a completed Runtime run of main. The repository's main runs were pending or cancelled at the time, so the claim rests on the cross-branch identity above, not on a main run I read.

If a maintainer wants the proof to be direct, one Runtime run of main with windows funded and finished would settle whether vk_xdxr_postbuild_readback is red before any PR touches it.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 22:55 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7205106088) Updating my own message: when I wrote it, `windows` was still queued; it has since failed, so here is what it says and whether it is mine. `windows`, step *CPU runtime tests*: `451/455`... `453` tests, `99% tests passed, 1 tests failed` and the one is `vk_xdxr_postbuild_readback`, `***Failed 0.02 sec`. Nothing else in that job is red; the build and the rest of the suite are green. That test is not this branch's: it is an XDXR postbuild read-back under `runtime/test`, and this diff has no `runtime/` file at all. The strongest evidence I can offer from inside the same CI is that #1937 - a different branch by the same author, with a `runtime/shims/d3d12_com.cpp` change - fails on exactly the same single test, and so did yesterday's run of this one. One test failing identically across branches that share no runtime code is a property of the base, not of either diff. What I could not do, and say so rather than imply otherwise: compare against a completed `Runtime` run of `main`. The repository's `main` runs were `pending` or `cancelled` at the time, so the claim rests on the cross-branch identity above, not on a main run I read. If a maintainer wants the proof to be direct, one `Runtime` run of `main` with `windows` funded and finished would settle whether `vk_xdxr_postbuild_readback` is red before any PR touches it. Written with an AI assistant.
github-bot force-pushed github-bot/gh-1923 from 736299450f to 4f19f41aec 2026-11-27 07:56:03 +00:00 Compare
Author
Owner

@⁠fiestorra on GitHub · 2026-11-27 07:53 UTC · original

Rebased onto current main (d1dff7949), and here is why: the shared red jobs were not this diff, and the reason is now measured rather than assumed.

What the overnight CI drained to, on this branch and on the other three we have open: check cancelled, macos-python failed, translator-tests failed, stdlib-tests-linux failed.

  • macos-python fails on main too. Main's CI run 45905816073 has macos-python failure with the same shape (test_anim_skeleton_match.py: error: --out must not overwrite an input archive), so that job is red before any PR. Not ours and not fixable from here.
  • translator-tests passed on main and failed on these branches, which is the interesting one: the job asserts and llvm-mc answers dpp variant of this instruction is not supported. That support arrived in main after these branches' base - c5f180751 rdna2spirv: translate v_cmpx in DPP form (SHADER-VOPCX-DPP) and its review commit - so a branch based on a73a57e13 carries fixtures that its own translator cannot handle. Rebased onto d1dff7949, tests/semantic/test_dpp_compare.py and test_dpp_bound_ctrl_modifiers.py both run OK on the new head.

New head after the rebase: 4f19f41ae, MERGEABLE.

So: one red job is the repository's (macos-python), one was a stale base (translator-tests, now fixed), and the rest (linux-gpu-tools with the glslangValidator-less configure, windows with vk_xdxr_postbuild_readback, macos with the two fixtures other PRs own) are analysed in the thread above.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-27 07:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1923#issuecomment-7212921394) Rebased onto current `main` (`d1dff7949`), and here is why: the shared red jobs were not this diff, and the reason is now measured rather than assumed. What the overnight CI drained to, on this branch and on the other three we have open: `check` cancelled, `macos-python` failed, `translator-tests` failed, `stdlib-tests-linux` failed. - **`macos-python` fails on `main` too.** Main's CI run `45905816073` has `macos-python failure` with the same shape (`test_anim_skeleton_match.py: error: --out must not overwrite an input archive`), so that job is red before any PR. Not ours and not fixable from here. - **`translator-tests` passed on `main` and failed on these branches**, which is the interesting one: the job asserts and `llvm-mc` answers `dpp variant of this instruction is not supported`. That support arrived in `main` after these branches' base - `c5f180751 rdna2spirv: translate v_cmpx in DPP form (SHADER-VOPCX-DPP)` and its review commit - so a branch based on `a73a57e13` carries fixtures that its own translator cannot handle. Rebased onto `d1dff7949`, `tests/semantic/test_dpp_compare.py` and `test_dpp_bound_ctrl_modifiers.py` both run **OK** on the new head. New head after the rebase: `4f19f41ae`, `MERGEABLE`. So: one red job is the repository's (`macos-python`), one was a stale base (`translator-tests`, now fixed), and the rest (`linux-gpu-tools` with the `glslangValidator`-less configure, `windows` with `vk_xdxr_postbuild_readback`, `macos` with the two fixtures other PRs own) are analysed in the thread above. Written with an AI assistant.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1923/head:github-bot/gh-1923'
git switch 'github-bot/gh-1923'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1923'
git switch 'github-bot/gh-1923'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1923'
git switch 'github-bot/gh-1923'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1923'
git switch 'main'
git merge --squash 'github-bot/gh-1923'
git switch 'main'
git merge --ff-only 'github-bot/gh-1923'
git switch 'main'
git merge 'github-bot/gh-1923'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.