Commit Graph

1 Commits

Author SHA1 Message Date
787ea0bee7 tools: VS -> PS link census (by number against by signature row)
Leonida links exp paramN to Location N and v_interp attrA to Location A;
VIctory links by signature row (native.rs VsOutput / PsInput). The census
reads a carve's index.json, ISG1/OSG1 and the FSSM stage tables (VIctory's
layout) and, per pipeline (a shader_link_check.py manifest, or a VS and a
PS paired by technique name), compares each pixel input's attr with the
param of the producer output of the same row and of the same semantic.
Counts only; --list names the pipelines locally, --json writes counts.

On a local 1.0.2.1 carve (counts only): of 323 readable VS x PS pairs by
name, 292 link the same all ways and 31 differ; 19 have an input at
another param (the PS reads a subset of the VS's rows, so by number it
reads the wrong ones), 12 read a semantic the VS does not write (not a
valid D3D12 pipeline). Rows past every signature register appear in 956
PS, 685 mesh and 120 VS, mostly with 16-bit elements. The linking rule is
not changed here; the contract row lists what moving to rows needs.

Unit test: tests/test_vs_ps_link_census.py on synthetic signatures and FSSM
tables. Contract row "VS -> PS link census" in docs/design.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:38:59 -05:00