upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorhugo <63666848+hugo0024@users.noreply.github.com>2026-11-25 15:55:45 +0800
committerhugo <63666848+hugo0024@users.noreply.github.com>2026-11-28 12:44:48 +0800
commit772c7bc3f35f5f141d7225b832dbc2e4409f2783 (patch)
treeebc298e57737b09293420a7eea28d3b55f54dda1 /runtime/test/cpp_unwind_test.cpp
parentef8fbf09f3ba00460e1c08102b096b76702a70b6 (diff)
rdna2spirv: ds_permute_b32 stores its shuffles, so every lane runs them (SHADER-PERMUTE-EAGER)
Gen.ds_permute lets each destination lane scan the 32 source lanes of its half: per source lane a shuffle of the published target, a shuffle of the data and an OpSelect that keeps the data when the target is this lane. Each shuffle was used once and so was every link of that chain, so SPIRV-Cross (MoltenVK) wrote the 32 steps as one nested ternary under the EXEC ternary of the register write. A lane that takes an outer arm, or is off in EXEC, then runs none of the shuffles inside it (the SHADER-529 mechanism). On an Apple M5 (MoltenVK 1.4.2) tools/lds_fuzz.py --wave 32 --permute had 17 of the 100 programs of seed 31002 differ from the model, every one in a ds_permute_b32 result, mostly 0 where a source lane's data belongs. Both shuffles are now stored to Function variables (Gen.eager), as the DPP rule stores its ballot bit and its shuffle. tests/semantic/test_ds_permute_eager.py checks the three native forms with test_dpp_eager_subgroup.py's model of SPIRV-Cross's single-use forwarding, and the values against test_ds_permute.py's ISA model. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions