Commit Graph

1 Commits

Author SHA1 Message Date
af4929c2d7 spirv_mini_interp: run_workgroup shares LDS; OpControlBarrier
Every invocation of run_workgroup had its own zero-initialised Workgroup
variables, so no CPU test could check lanes communicating through LDS or
racing on an LDS dword, and OpControlBarrier was refused. The Workgroup boxes
are now the workgroup's (created by the first invocation, shared by the
rest), and OpControlBarrier is a point every invocation must reach together,
as a subgroup operation is. run_fragment still refuses it
(test_barrier_control pins that).

tests/semantic/test_interp_shared_lds.py: one lane writes and all read after
s_barrier (one and two waves), lanes racing with ds_add_u32 and its
returned values, the ds_add_f32 CAS loop on shared LDS, separate workgroups,
and a barrier only one invocation reaches.
2026-11-22 23:12:08 -03:00