upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorMoriz82 <72836413+Moriz82@users.noreply.github.com>2026-11-24 15:13:57 -0600
committerMoriz82 <72836413+Moriz82@users.noreply.github.com>2026-11-24 21:39:34 -0600
commit570db1d58f67a3b899cc60f53055eeb86fc8ac3d (patch)
treee1d89e6f3cf52f888fd1a55540c14d3c47afe472 /runtime/src/bcpack.cpp
parentbfef489cb6307fa4e1dc6ed2c40bfc0ce120d066 (diff)
shader_library: keep each state of a compute program, select by code hash (TOOLS-LIBRARY-COMPUTE-BY-HASH)
The run time finds a pipeline-library compute program by the SHA-256 of its code and of its record's state blob. shader_library.py kept one state per program, the last record's, so when two compute records used one program with different state blobs only one of the two pairs got an entry and a .state file. Each distinct state of a program is now written: the first under the program's name, each further one as <name>_state_<blob index>, with its own .code, .json, .state, listing and index entry. library.json names the entry of each record. A program with one state, the case of every program in the measured 1.0.2.1 library, is written exactly as before. --compute-hashes FILE writes only the compute programs whose code has one of the SHA-256 digests listed in FILE, with every state they are used with. It cannot be combined with --stages, and a digest no compute program has is an error before anything is written. tests/test_shader_library.py gets three tests on a synthetic library; all three fail on the base. The standard-library tests and the translator suite add no failing file. No retail library was read for this change. AI-assisted (Claude Code). Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions