diff options
| author | kotorvr <332716892+kotorvr@users.noreply.github.com> | 2026-11-22 09:00:29 +0000 |
|---|---|---|
| committer | kotorvr <332716892+kotorvr@users.noreply.github.com> | 2026-11-22 09:00:29 +0000 |
| commit | c3123e33b42ec53a7e978008aa7c1addcac3f784 (patch) | |
| tree | 0e0dbc0b0cdfb5b3771e84778765b52ea9e430fb /runtime/shims/process.cpp | |
| parent | 48ad23f0262452b6c3d09db98941bfedb8e9684d (diff) | |
shader: decode PS interpolation modes; refuse modes the translator doesn't model (SHADER-181)
The FSSM pixel-input record's flags bits 0-1 hold the interpolation mode
(1 flat, 2 linear = perspective-center). Over the 12,101 PS of the 1.0.2.1
corpus they are 1 or 2 only, agree with the v_interp form the code uses in
every shader, and match PSV0's per-input InterpolationMode (linear or
constant; no centroid, sample or noperspective input). The FSSM holds no
SPI_PS_INPUT_ENA/ADDR word.
- fssm_header: interpolation_modes(), mode names, tally of PS modes.
- rdna2spirv: check_interpolation_modes() refuses a read position whose
mode disagrees or is 0/3 (rejects 0 of 12,101 PS; shard 0/12 output is
byte-identical to main).
- ps_interp_census.py: PSV0 + FSSM + disassembly census (stdlib).
- docs/design.md: contract row with method and counts.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions