Both write their report last, after every input has been read, and neither
checked the report path: heap_index_census accepted a path inside the disasm
folder it reads or the carve index beside it, and d3d12_iid_scan accepted an
input image or the --header file. Refuse the alias with the report_paths guard
before anything is opened: one ERROR line and exit 2, as the tools' other
bad-input answers do.
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/heap_index_census.py follows every descriptor-width scalar load back to
the SGPRs it starts from (entry SGPR, constant, loaded pointer) per stage and
SFI0 heap-indexing class, and prints counts only. Over the 1.0.2.1 corpus,
99.86% of 770,412 descriptor loads start from an entry SGPR used as a 32-bit
pointer, none from a loaded pointer; heap-indexing shaders add a base read
with a run-time offset, and the stride is compiled into the offsets.
docs/d3d12_vulkan.md records the result in section 3.4 and the direct heap
indexing bullet: user data for compute (COMPUTE_PGM_RSRC2 USER_SGPR), below
s32 for the graphics stages whose user count is not measured yet.
tests/test_heap_index_census.py covers it on hand-written listings and
containers (no game files).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>