The pass refused any module that had a LocalSize execution mode beside its
WorkgroupSize composite. Such a module is valid: the WorkgroupSize built-in
"takes precedence over any LocalSize or LocalSizeId execution mode" (vkspec,
the WorkgroupSize built-in), and glslang writes both when a shader uses
local_size_x_id. rt's hand-made test kernels (tests/kernels.rs) are glslang
output of that shape. In check job m3-max-72835 the pass refused every one of
them, and 38 of rt's 714 lavapipe device tests failed with "specialize: a
WorkgroupSize ... beside a local-size mode". kernel_variants and the
compute-encoder tests were among them.
The one LocalSize mode now takes the composite's values, which is what the
precedence rule already makes the module run with. A module without a mode
still gets one after its entry point. A second LocalSize mode, or a LocalSize
mode of other than three sizes, is refused by name. The format fix the check's
fmt step asked for is in the same file.
Test: a_local_size_mode_beside_the_workgroup_composite_takes_its_values adds
a LocalSize 1 1 1 mode to the deep kernel. Specialized at 8x4x2, the module
must hold exactly one mode, LocalSize 8 4 2, and pass spirv-val under Vulkan
1.2 and 1.3. A copy with two modes must be refused by name. The next check
job runs it, with rt's lavapipe device suite.