mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #2095] [CLOSED] shaders: fill fspx_state_sha256 from library sidecars (FSPX-LIBRARY-STATE-FILL) #2103
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2095
Author: @Undefined3301
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:fspx-library-state-fill📝 Commits (1)
43125abshaders: fill fspx_state_sha256 from library sidecars📊 Changes
2 files changed (+166 additions, -0 deletions)
View changed files
➕
tests/test_fill_fspx_library_states.py(+84 -0)➕
tools/fill_fspx_library_states.py(+82 -0)📄 Description
Item: FSPX-LIBRARY-STATE-FILL
What
Adds
tools/fill_fspx_library_states.py, which fills a missingfspx_state_sha256in an existing pipeline-library translation index (<shaders>/library/index.json) from its<name>.statesidecars, plustests/test_fill_fspx_library_states.py(standard library only, synthetic state files).Why
An FSPX program that carries a kind-0 state is matched by both
fspx_code_sha256andfspx_state_sha256(ShaderLibrary::program_candidates,runtime/src/shader_library.h). An index entry written before the sidecar key was recorded has the code hash but no state hash, so the incoming state filters every entry out and the pipeline is stubbed even though its translation exists.Measured
Retail boot, RTX 4080, NVIDIA 621.24: 934 distinct FSPX compute programs reached slot 67 with a kind-0 state and were refused (
no translated compute shader ... entries 1). 923 have a translation and a.statesidecar but no state key. After filling the index the count drops to 11 (the 29-program FidelityFX DLL has 27 translated here; 2 still fail the decoder) and those 923 pipelines are created for real. The boot then reaches the story transition instead of stalling one scene earlier.The 923 entries are translations the current translator no longer reproduces (
fall-through into undecodable words), so re-runninglibrary_shadersdrops them rather than recording the key; the tool repairs an existing work folder in place and is idempotent (second run: 0 added).Tests
AI-assisted: yes (DeepSeek V4.1 Flash via OpenCode/T3 Code). The tool writes LF and sorts keys atomically like the translator; no game data is in the test.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.