mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 13:28:35 +00:00
- Exclude v_readfirstlane from --mesh-native-wave32 until per-use uniformity analysis proves the source wave-uniform (with ms_native_readfirstlane.asm and test_mesh_native_wave32.py regression test + docs/design.md update). - Lower SPIRV_OPT_LARGE_BYTES from 750 KiB to 512 KiB so library/lib_cs_03245 and siblings use the safe SSA pass set instead of --scalar-replacement=0 (avoiding NVIDIA 590.48.01 compiler SIGSEGV during warmup). AI-assisted.
9 lines
302 B
NASM
9 lines
302 B
NASM
; The first active lane in a full wave64 is lane 0. Reading the lane number in
|
|
; two independent wave32 halves would give the second half 32 instead.
|
|
v_mbcnt_lo_u32_b32 v0, -1, 0
|
|
v_mbcnt_hi_u32_b32 v0, -1, v0
|
|
v_readfirstlane_b32 s4, v0
|
|
v_add_nc_u32_e32 v1, s4, v0
|
|
exp pos0 v1, v1, v1, v1 done
|
|
s_endpgm
|