Repository navigation
Package translated graphics shaders for the slot-57 cache - #9153
nova-aryan wants to merge 1 commit into
Conversation
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
|
Tested on RTX 5090, 621.24, Windows 11: no change on its own, which is what its "Depends on #8890" says — worth pinning so nobody concludes the packer is wrong. Base: So the slot-57 cache is not consulted because the runtime consumer (#8890) is not in the tree; the counters are identical within noise. The packer itself is fine — I did not run it in this configuration. Two facts for whoever lands #8890: it currently conflicts with |
|
Review (AI-assisted, static; no game files, and I did not run the packer on a real library). 1. Default mode aborts on an index entry that 2. A graphics entry without 3. No run against real output. The tests are synthetic and the documented run ( 4. Small. The rollback with |
|
Measured on the retail package, and it changes what this pair can do here: the FSPX corpus of 1.0.2.1 is compute-only, so there is nothing to pack for the slot-57 graphics cache.
That is not a defect of the packer: it is what this package's FidelityFX DLL offers. Unless the 8 undecodable programs are the graphics ones (a decode gap, worth knowing on its own), the slot-57 graphics cache cannot come from FSPX on 1.0.2.1 and the cache has to be fed from somewhere else. I did not run |
|
Independent Windows 11 validation on 95ccdd1: extracted the five native programs used by the first three reference graphics records, with their matched VS/PS container interfaces. All five translated and passed spirv-val. The packer with --require-hashes produced exactly the five requested keys; each matched SHA-256 of the full source program. This checks the real producer/packer boundary, not rendered pixels or a full-catalog result. |
|
Producer coverage follow-up: my demanded-only cache packed all 1,266 distinct native graphics programs observed across startup, each translated and validated; a retail run with it recorded 9,866 successful slot-57 calls before a separate queue/device stop. The full VS/PS catalog experiment separately translated and spirv-val validated 9,211 of 11,339 programs. These counts validate the producer boundary; displayed frames are still black and the title is not playable. |
Claimed in the coordination issue: Package translated graphics shader modules for the slot-57 cache.
Depends on: #8890 (runtime consumer)
What and why
The slot-57 boot repro needs translated graphics modules indexed by native program hash. The loader in #8890 consumes
fspx_gfx/index.json, and the current repro assembles that directory by hand.tools/pack_fspx_gfx.pybuilds the cache from the existingrdna2spirv.pyoutput. It keeps the stage and translation metadata and writes each module under its full native program SHA-256. A boot repro can pass--require-hashesto select its programs and fail if any are missing. Conflicting translations for one digest fail rather than letting the loader choose an ambiguous candidate. A new cache becomes visible to the loader after its modules are written.Tests
ShaderLibraryatf1ab75acwith GCC and verified it loaded both modules by hash, preserved their stage and push-constant metadata, and returned no entry for a missing hash.test_image_atomics_guardandtest_image_store_d16. The text newline and docs CLI flag checks also reproduced their baseline failures.git diff --check,compilealland the changed-file game-data check passed. CPU-only tests with synthetic inputs. Retail boot and GPU pipeline creation remain unverified.AI-assisted: Yes (Codex).