Commit Graph

2 Commits

Author SHA1 Message Date
29037964a7 Keep wave32 for library graphics with corroborating source metadata 2026-11-23 22:56:14 +03:00
108e07fce4 rdna2spirv: an FSPX program's wave size comes from its dispatch state
A program with no FSSM sidecar got its wave size from the code heuristic, which also counts any _b64 op on vcc or
exec as wave64. The FidelityFX DLL's wave32 programs move vcc as an ordinary SGPR pair with s_mov_b64, so three of
them were translated as wave64, and one wave64 program with no marker as wave32 (4 of the 26 translated on main
aa2988cc).

- The wave size of an FSPX program is now the `wave32` field fspx_unpack.py writes from kind 0 word 4 bit 20, as the
  FSSM header's flag is for the game's shaders. Only the strict markers contradict it (WAVE64_RE against wave32,
  WAVE32_RE against wave64) and refuse the translation; without the field the heuristic stays. Nothing changes for
  a shader with an FSSM sidecar.
- Evidence for the bit, over the 29 programs: strict markers never contradict it, the RSRC1 VGPR granule fits it in
  all 21 programs that decode cleanly, and PSV0's lane counts agree in all 5 that state one (docs/fspx.md).
- tests/semantic/test_fspx_wave_size.py: the rule and its refusals with hand-written listings, and a
  v_readlane_b32 whose result differs between the two wave sizes.
- docs/fspx.md (kind 0 word 4, the evidence, translation status) and the wave-size row of docs/design.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:43:14 -05:00