upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorArtur <gangg111@tlen.pl>2026-11-22 14:25:27 +0100
committerArtur <gangg111@tlen.pl>2026-11-22 14:25:27 +0100
commit65cf017a798a1cb94a9b2fa891d351e28c24d2c2 (patch)
treea2b69a883ca8d31acca0f548cc241e0694b3be5e /runtime/test/queue_proxy_test.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
rdna2spirv: s_movrels reads a lane-mask SGPR as the whole wave's mask (SHADER-284)
A lane-mask SGPR (a saved EXEC, a v_cmp result) holds only this lane's bit in the translation, so the dynamic load in s_movrels_b32/b64 copied that bit as data: with EXEC saved as 5, s_movrels then s_bcnt1 gave 32 where the ISA gives 2. For every SGPR lane_masks.py marks as a mask at the instruction, the whole wave's mask word is collected (wave_mask, as for s_bcnt1) and selected when the index lands on it. D then holds the mask as data, which is what lane_masks.py already assumes for an s_movrels destination. tests/semantic/test_salu_movrels_lane_mask.py runs the finding's listing and two more (M0 hitting a mask between data words; the b64 pair of a saved EXEC in wave64) on every lane of a workgroup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions