Repository navigation
Conversation
4664e7d to
3e2c7ca
Compare
|
The three red jobs are not from this change. The diff touches What each job actually failed on:
Local control on this branch, for whatever it is worth: the three test files this PR does change pass, and the If a maintainer wants a re-run to confirm the flakes, I would rather that than a change to this branch: editing unrelated Written with an AI assistant. |
|
finding: the 849 The mechanism: the shim builds the FSPX payload and calls
847 missing against 849 failures at the slot. End to end: re-running the stage with 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 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. |
|
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 So the failures were not a defect worth a separate fix: they were the 847 programs the Written with an AI assistant. |
3e2c7ca to
92cdd35
Compare
|
The docs no longer say 21 is enough, and a test pins the default Head
Still open, and I agree they are the real fix: nothing checks the version at run time ( 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. |
|
The red jobs are not this diff (read from the job logs) Head
So the default of 23.1.5 is not what turns them red. The Written with an AI assistant. |
|
Updating my own message: when I wrote it,
That test is not this branch's: it is an XDXR postbuild read-back under What I could not do, and say so rather than imply otherwise: compare against a completed If a maintainer wants the proof to be direct, one Written with an AI assistant. |
…ary translates 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.
7362994 to
4f19f41
Compare
|
Rebased onto current What the overnight CI drained to, on this branch and on the other three we have open:
New head after the rebase: So: one red job is the repository's ( Written with an AI assistant. |
Claimed in the coordination issue as: LIBRARY-TRANSLATION-GAP (#1608 (comment))
What and why
scripts/build_llvm_mc.ps1built LLVM 21.1.8 by default. That version'sgfx1013decoder cannot decode 840 of the2,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_Nlines), the translator refuses all of them asfall-through into undecodable words, and theshadersstage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503 shaders ofshaders.rpf; the pipeline libraryis the part it loses.
The same bytes disassembled with LLVM 23.1.5 (the release
docs/testing.mdand the corpus runs already name) have norejected word in those 840, and 839 of them translate and pass
spirv-val; the 840th wantss_sethalt, which thetranslator does not implement, under either version.
So this changes the helper's default
-Versionto 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'sshaderspreflight,shader_disasm.py's probe error andmc_command.py's install hint (the sametext 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.pyandtests/test_mc_command.pyasserted 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 removesthe cause for anyone who builds
llvm-mcwith the helper.Tested
All numbers on
main71a769d7d,-mcpu=gfx1013,--stages cs, 1.0.2.1, withllvm-mc21.1.8 at%USERPROFILE%\.leonida\llvm-mcand 23.1.5 at%USERPROFILE%\.leonida\llvm-mc-23(native Windows builds from thellvmorg-21.1.8andllvmorg-23.1.5tags).invalid instruction encodingwords and 8,310exp invalid_target_Nwith 21.1.8;0 and 0 with 23.1.5 (
library.jsontotals: 1,844 of 2,684).spirv-val(was 0/840). Therefusal is
s_sethalt, the same with the 21.1.8 listing, so it is not a decode difference.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 compileallandgit diff --check: clean. No unit test covers the default tag: it downloads and buildsLLVM, 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.5tag on this machine (build log endsrc=0). The 26,503-shader corpus was not re-measuredwith 23.1.5 in this run (the README's 23.1.5 rerun covers it). Whether
s_sethaltcan be expressed in SPIR-V is notinvestigated. Every module was checked with
spirv-val; none was run on a GPU.GPUs tested: n/a (no GPU test; translation and
spirv-valonly)AI-assisted: yes (DeepSeek Harness)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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:
E_INVALIDARGat device slot 67 (Xbox DeserializeComputePipelineStateX), 847 programs short.So without this change the
shadersstage 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 (comment) 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: thelinux-gpu-toolscompile error is in code identical onmain,cs_imgatomic_extis the fixture owned by #1518, andvk_xdxr_postbuild_readbackis a runtime test this branch does not touch.