Commit Graph

3 Commits

Author SHA1 Message Date
2678e82ddf rdna2spirv: verify s_*_saveexec variants and sdst aliasing on RDNA2 (gfx1036) 2026-11-23 03:37:31 +03:00
d8c9fdfd5b fix(shader): read a null lane-mask source as zero
The GFX10 null register reads as zero. Applying that rule in the shared mask reader lets bit tests, reductions and saveexec accept the same source as a scalar data read.
2026-11-22 17:02:24 +01:00
6cfcf7cade rdna2spirv: every saveexec kind and s_andn1_wrexec
Only and/or/andn2_saveexec and andn2_wrexec were translated; xor, andn1,
orn1, orn2, nand, nor and xnor_saveexec (b32/b64) and andn1_wrexec were
rejected. One table (Gen.EXEC_LOGIC, the definitions of tools/cf_ref.py
_SAVEEXEC) now gives f(S0, EXEC) for the whole family; the existing three
kinds emit the same code as before.

tests/semantic/test_saveexec_variants.py checks every lane's saved bit,
new EXEC and SCC against cf_ref._SAVEEXEC in wave32 and wave64; cf_diff
(300 programs x wave32/64) still passes. docs/design.md row added.
2026-11-22 09:58:46 -03:00