upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/pso_cache.md
AgeCommit message (Collapse)Author
9 daysdocs(pso_cache): distinguish Xbox package PSO blob from runtime Vulkan cachesdocs/pso-cache-scope-noteandretuta
Add an opening scope note separating the shaders.rpf PS\0\x09 package blob from host-side Vulkan VkPipelineCache files and the compute pipeline journal. AI-assisted: Antigravity gemini-4-neon.
12 daysAdd a graphics user-signature describerYaBulochka
tools/psocache_usersig.py resolves a graphics PSO to the chunk records its stage record names, decodes each 0x41 entry (kind, offset, key, count, space/base/size) and each 0x42 slot word (SS, II, RR), and computes the 32-dword cost as constants + 2 tables and as constants + 1 table. --limit N summarises the first N graphics PSOs, --entry N prints one, --json dumps the same report. It reuses the cache parser from psocache_inspect and never prints a hash. docs/pso_cache.md maps the graphics records to descriptor tables, ranges and 32-bit constants with a confidence per claim, gives the measured fit numbers and sketches how a CreateGraphicsPipelineState path would consume them. tests/test_psocache_usersig.py builds a two-PSO cache that covers SRV, UAV, CBV, Sampler, constants, a record that does not fit 32 dwords and extra slots, and checks the summary, the entry listing, --limit, --json and the error paths.
13 daysAdd a reproducible cache extractor and decode the meta chunksYaBulochka
tools/psocache_extract.py walks an RPF9 archive's stream table in order, inflates each stream to learn its extent and stops at the first stream whose output starts with the cache magic. It joins the following contiguous streams until the header's declared total is reached, writes the file inside the temporary directory and validates it with psocache_inspect. A --budget and --max-streams bound the search; a folder is scanned in sorted order and the report carries the archive index and the archive-internal stream offset only. psocache_inspect.py gains --meta (with --entry N and --limit N): it reports the chunk-record order, the per-kind 0x41 fields, the 0x42 slot bytes and the 0x41-kind to 0x42-middle-byte correlation over the records whose counts match. The 0x43 value is never printed. docs/pso_cache.md records the decoded shape with a confidence per claim and the remaining unknowns; docs/README.md names the new tool. tests/test_psocache_extract.py builds synthetic RPF9 archives and covers the contiguous split, folder scan, budget, stream limit, truncated chain and an output path outside the temporary directory. The inspect test now covers the meta decode, an entry listing and the CLI flags.
13 daysDocument the measured PSO/shader cache formatYaBulochka
docs/pso_cache.md records the PS\0\x09 blob: the 0x80 header fields and which of their meanings are unproven, the 0x70 and 0x18 record regions, the two 8-byte index tables, the meta chunk records (0x41/0x42/0x43, the six 0x41 second-dword values and the 0x42 slot-shaped values), the s_endpgm and s_code_end markers and why their counts differ from the shader count. It also lists what is still unknown and how tools/psocache_inspect.py checks a carved copy. docs/README.md gets one row for the page.