Files
metal2vulkan/crates/metal2vulkan-devtools
Anees Iqbal 7708b4ba82 conformance, rt test: threadgroup memory read before the program writes it
The conformance case compute-threadgroup-memory-reads-zero runs tgz_reads
in one compute pass: the [[threadgroup(0)]] region's length set once,
then 2048 threadgroups of 256, of 250 and of 30 threads, twice each, each
dispatch into its own 16-byte slot, so later threadgroups of a dispatch
and the second dispatch run where earlier threadgroups stored their
patterns. Its test holds Metal's recorded words equal to
metal2vulkan_devtools::threadgroup_start::answer: nothing read nonzero
before the program wrote it, every pattern read back, Metal's SIMD
groups.

The new runtime's device test
every_device_reads_zero_from_threadgroup_memory_until_the_program_writes_it
runs the same dispatches on every device and holds the same answer; at
a size that is not whole groups of what the plain module runs, it holds
that the emulated SIMD-group module was made and ran.
2026-11-19 13:52:36 -08:00
..