diff options
| author | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-25 08:22:09 +0200 |
|---|---|---|
| committer | Man Alin <whoalin414@gmail.com> | 2026-11-30 22:22:13 +0000 |
| commit | 1725e0818a8406c3e21457d1520755bf2d880a52 (patch) | |
| tree | e049e6a57be0e0f9431704a8a2e22f61c4616358 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 51b0b9d34095cb2441fc50204612313a3d592370 (diff) | |
translator: gate mask-word gathers on EXEC coverage; scalar mask number reads
Review fixes for the mask-as-data change:
- The wave-mask gather is a group op over the lanes EXEC leaves active,
and drivers differ on whether lanes EXEC has off still vote: NVIDIA,
AMD and KosmicKrisp return the whole subgroup's bits, MoltenVK's
ballot/reduce saw only the lanes a narrowed EXEC left on and produced
the EXEC value instead of the frozen mask word (cs_mask_vgpr_exec).
mask_word_read_ok now gathers only when a CFG must-analysis
(mark_exec_state) proves every lane that can hold a set bit of the
mask is EXEC-active at the read: each EXEC half is tracked as clean,
a constant mask, or an unknown narrowing (s_mov/s_cselect resolve
constants, saved-EXEC aliases and unchanged EXEC, so the common
restore idioms still gather), and mask_exec_sigs records every EXEC
state seen while each mask register held a mask. Unproven reads keep
this lane's 0 / ~0 bit, the pre-change answer.
- Scalar number ops read a lane mask operand as data too
(MASK_NUMBER_READERS, #1043's NUMBER_READERS): s_add_u32 s20, s10, K
after v_cmp wrote s10 yields the wave's mask word, while mask moves
and mask logic ops keep this lane's bit for the saveexec idioms.
- wave64_emulate_opt treats ins["mask_words"] (a mask read that will
gather) as a cross-lane exchange for the lane-local fold planner and
barrier scheduler, covering the scalar readers as well.
- test_slot67_operand_forms' expectedFailure comes off: the packed
vcc_hi word now reaches the data read.
Co-Authored-By: Devin <noreply@cognition.ai>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions