Commit Graph

7 Commits

Author SHA1 Message Date
a67d215b2c fssm_header.py: a missing path is one line, and --limit can't be negative
files_of() treated anything that is not a file as a folder, so a
missing path ended in a FileNotFoundError traceback. --limit was a
plain int used as paths[:limit], so --limit -1 silently dropped the
last blob and --limit -5 the last five, reported as a normal tally.
The path is now checked first (exit 2, one line), and --limit must be
0 or more (an argparse error otherwise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:55:59 +01:00
69e754c7d6 fssm_header: fall back when the nearest stage index is empty 2026-11-22 00:48:17 +01:00
4c7652f17c fssm_header.py: search both locations for shader stages 2026-11-22 00:20:29 +01:00
eaea09434b Merge pull request #274 from SuarezPM 2026-11-21 17:38:31 -05:00
fdf4d29955 Translator: use the FSSM pixel-input table in the PS input path (SHADER-15)
AI-assisted (fixer lane, orchestrated). tools/fssm_header.py already decoded the pixel-input table; rdna2spirv.py ignored it.

- PS translate() reads the fssm/<name>.fssm sidecar (same convention as CS) and declares every table position 0..count-1 as a fragment input at that Location, including positions the code never reads.
- A 32-bit v_interp read (p1/p2/mov) of a 16-bit-flagged position (flag bit 4) is rounded f32->f16->f32; *_f16-opcode reads already narrow and are unchanged; reads past the table still declare; no sidecar (or empty table) is byte-identical to the old path.
- shader_meta() records ps_interpolants (count) and ps_fp16_interpolants (flagged positions).
- docs/design.md: contract-table row with corpus measurements and the fixture confirmation (synthetic + mini_interp, no GPU).

Verified: tests/test_rdna2spirv_pixelinput.py 9 passed (synthetic FSSM blobs + hand-written listings, empty DXBC; no llvm-mc/spirv-tools/GPU/game data); full suite 1066 passed + 366 subtests on the dev branch; compileall + make_game --help green. Claimed as SHADER-15 in #156 before starting.
2026-11-21 19:15:52 -03:00
2fecf12124 fssm_header: parse the post-code binding table
Decode the filler, header, 20-byte records and name record after
code_end, and add a --bindings summary. Measured over 26,503 blobs:
5,640,704 records, all parse.
2026-11-21 21:59:15 +00:00
bbd15cf20d Tools: clean-room FSSM pixel input table decoder 2026-11-21 18:38:26 +00:00