You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shader_disasm: honor compiled wave size in the LLVM backend - #9654
The default LLVM backend ignored the compiled wave size even after the Python decoder began using it. An identical synthetic compare in two FSSM containers consequently had the wave32 destination on gfx1013 in both listings. Pass the known wave size through LLVM target features for both the scan and the final decode. Headerless inputs retain the selected CPU default. The build signature changes so a resumed build refreshes existing listings once. Open #3402 also changes that signature for a separate code-range fix.
On the parent both explicit-mode regression cases failed and the unknown-size control passed. With this change real LLVM decoded the full VCC destination for wave64 and its low half for wave32, with zero invalid words for both synthetic inputs. A resume regression checks that dependent translation runs once when upgrading an existing folder.
Windows checks passed: 31 disassembler, 47 shader-stage resume, 42 FSSM header, 22 FSPX shader stage and 13 BVH shader stage tests. Python compileall and isolated make_game --help passed. CPU and LLVM verification, no GPU run for this change. AI-assisted implementation and testing.
Independent Windows check on 50da74ec037f197b397993ad0af45f2a2f790ce2
python -I tests/test_shader_disasm.py passed (31 passed). This exercised the shader disassembly fixture suite, including compiled wave size propagation. The run used the repository's test fixtures. I did not verify live game execution or GPU behavior.
Tested 50da74ec0 merged with main5d74c2723 (clean merge) on Windows 11 (10.0.26300), Python 3.13.15 in UTF-8 mode (PYTHONUTF8=1; venv with the pinned tests/requirements.txt), with llvm-mc 21.1.8 (AMDGPU) and SPIRV-Tools v2026.4 on PATH: pass.
tests/test_shader_disasm.py with this PR: passes (Ran 31 tests in 3.268s, OK). On main: passes (Ran 29 tests in 2.835s, OK).
tests/test_shader_stage_resume.py with this PR: passes (Ran 47 tests in 9.309s, OK). On main: passes (Ran 46 tests in 9.211s, OK).
Negative control: this PR's test with main's version of make_game.py, tools/shader_disasm.py fails (Ran 31 tests in 3.226s, FAILED (failures=3)), so the new test does catch the problem.
Code not reviewed beyond running it. No GPU or game files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on: #9556
The default LLVM backend ignored the compiled wave size even after the Python decoder began using it. An identical synthetic compare in two FSSM containers consequently had the wave32 destination on gfx1013 in both listings. Pass the known wave size through LLVM target features for both the scan and the final decode. Headerless inputs retain the selected CPU default. The build signature changes so a resumed build refreshes existing listings once. Open #3402 also changes that signature for a separate code-range fix.
On the parent both explicit-mode regression cases failed and the unknown-size control passed. With this change real LLVM decoded the full VCC destination for wave64 and its low half for wave32, with zero invalid words for both synthetic inputs. A resume regression checks that dependent translation runs once when upgrading an existing folder.
Windows checks passed: 31 disassembler, 47 shader-stage resume, 42 FSSM header, 22 FSPX shader stage and 13 BVH shader stage tests. Python compileall and isolated make_game --help passed. CPU and LLVM verification, no GPU run for this change. AI-assisted implementation and testing.
Coordination claim, no item ID assigned