upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/code_hooks.h
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-24 08:08:48 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-24 08:09:01 -0300
commitf05bc53865332bc59f320449d9e26522dfcc7e1d (patch)
treec76cc58f79cbe4e2d777ccda55a0b636b85af77a /runtime/src/code_hooks.h
parent21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff)
read_before_write_vgprs: v_writelane_b32 keeps its destination's other lanes (SHADER-768)
v_writelane_b32 writes one lane and keeps the others. read_before_write_vgprs counted it as a full write. Counting every writelane destination as a read is too much the other way (@shdann on old PR 4297: a VS spilling an SGPR into one lane of v40 around the fetch call was rejected with 'fetch mapping'). The kept lanes are now carried: they become a read when something other than v_readlane_b32 reads the register before a full write. reg_reads_writes (per slice) counts the destination as read. DST_ALSO_READ names the accumulating ops both functions list. tests/semantic/test_writelane_read_before_write.py: carried and used lanes, the readlane spill, a full write ending the carry, shdann's VS spill and PS cases end to end. Carried over from old-pr/9910 (old upstream PR 9910, draft #175 here), rebased on main.
Diffstat (limited to 'runtime/src/code_hooks.h')
0 files changed, 0 insertions, 0 deletions