Commit Graph

6 Commits

Author SHA1 Message Date
9711b34332 ps_interp_modes: refuse a single named file without a readable PSV0 chunk
(cherry picked from commit f57fd7049d)
2026-11-24 10:03:07 -05:00
2a5f48e632 Merge pull request #3102 from Marco Luzzaro 2026-11-22 15:14:49 -05:00
9ad18085dd TEST-623: surface interpolation census I/O errors 2026-11-22 20:23:14 +01:00
da958c8262 ps_interp_modes: validate PSV0 runtime_info_size and match component-packed ISG1 rows
Check len(p) >= 4 and runtime_info_size >= 32 before reading PSVRuntimeInfo1 SigInputElements in psv0_inputs(), and match ISG1 elements by component mask overlap and multi-row span so component-packed inputs sharing a register row do not overwrite each other's rw mask or name in shader_row().

Claim: https://github.com/ItsNotRexed/Leonida/issues/2300#issuecomment-7082476941
2026-11-22 14:04:11 -03:00
1fdae256cf ps_interp_modes: refuse --limit below 1 and skip directory .dxbc entries
--limit 0 and negative values silently exported one shader because the break came after rows.append(); a subdirectory ending in .dxbc aborted the census with an uncaught OSError.
2026-11-22 17:14:55 +05:30
b68331d771 Tools+docs: decode PS interpolation modes from PSV0 and census the corpus (SHADER-181)
No FSSM word stores SPI_PS_INPUT_ENA/ADDR (u16 scan of 0x00-0x138 over all
12,101 PS against the signature-reconstructed value). tools/ps_interp_modes.py
decodes the mode from the DXBC PSV0 input elements (DXIL::InterpolationMode,
mapped to the SPI_PS_INPUT_ENA pair bits per Mesa gfx103.json), cross-checks
the FSSM table flags (read-method bits 0/1/3/4) and the disassembly I/J
operands, and runs a census: all generic inputs are Constant or
perspective-centre Linear (zero centroid/sample/noperspective); SV_Position is
noperspective by D3D rule, interpolated through the parameter cache in only 4
PS; every shader reads a single barycentric pair (v0/v1, one v14 copy). 23
synthetic tests; decoder+census only, no translator change.
2026-11-22 01:09:58 -08:00