Repository navigation
Conversation
… programs llvm-mc 21 and 22 leave invalid words in five of the 29 programs of amd_fidelityfx_upscaler_xbox.dll (05, 06, 08, 09, 28), so they are not translated and the upscaler later reads through a missing pipeline (amd_fidelityfx_upscaler_xbox.dll+0x65ff). shader_disasm.py's auto backend (ProjectLeonida#1712) decodes those five with no invalid words; with it all 29 translate and pass spirv-val with llvm-mc 22.1.8 and --wave64-emulate. The command line default stays llvm-mc; the FSPX stage asks for auto.
Contributor
|
Independent run of the tests at
The real-DLL numbers (29 of 29 FSPX programs) need a package; I can repeat them on Windows 10 / GTX 1050 Ti once mine is unpacked. AI-assisted (Claude Code). |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Claimed in the coordination issue as FSPX-UNPACK-AUTO-BACKEND (#1608). Depends on #1712, which adds
backend="auto"totools/shader_disasm.py. This branch is #1712 plus one commit.What and why
With llvm-mc 21 or 22, five of the 29 FSPX programs of
amd_fidelityfx_upscaler_xbox.dll(05, 06, 08, 09, 28) are disassembled with invalid words, and the translator refuses them. The title then reads through the missing pipeline: the access violation atamd_fidelityfx_upscaler_xbox.dll+0x65ff(read of 0x10) reported in #1608 by CLHelper, kurrutako and Snooozs. Here it showed up as soon as the boot ran withLEONIDA_DEVICE_TYPE=6. #1862 fixes the two programs that llvm-mc 23 leaves out; it doesn't help older llvm-mc builds. The Linux packages andscripts/build_llvm_mc.ps1's default are 21.1.8.#1712's
autobackend decodes those five with the pure-Python decoder and no invalid words. This change:tools/fspx_unpack.py: a--backend {llvm-mc,python,auto}option for--disasm, passed toshader_disasm.disasm. The default staysllvm-mc, so direct uses and the existing tests are unchanged.make_game.py: the FSPX stage runsfspx_unpack.py ... --disasm --backend auto, as tools: add auto fallback to python disassembler in shader_disasm and shader_library #1712 does for the pipeline library.fspx_unpack.pyis already inFSPX_TOOLS, so a cached FSPX set is rebuilt once.Tested
rdna2spirv.py --no-asm --wave64-emulate.0 invalid words.LEONIDA_DEVICE_TYPE=6):amd_fidelityfx_upscaler_xbox.dll+0x65ffright at the world start.no translated compute shader for FSPXlines, to a later and unrelated stop.python -I tests/test_fspx_unpack.py(35, including the newtest_auto_backend_replaces_a_listing_with_invalid_words, which fails without the change),test_fspx_shaders_stage.py,test_fspx_unpack_out.py,test_shader_disasm.pyandtest_shader_library.pypass.test_fspx_shaders_stage.pychanges in two places:--backend autoon the unpack command line.llvm-mcalone. Withauto, the Python decoder would read its program and the stage would not fail, which is the point of the change but not what that test checks.No game files in the change or the tests.
AI-assisted (Claude Code).