SPIRV-Cross/shaders-msl-no-opt
Chip Davis 68908355a9 MSL: Expand subgroup support.
Add support for declaring a fixed subgroup size. Metal, like Vulkan with
`VK_EXT_subgroup_size_control`, allows the thread execution width to
vary depending on factors such as register usage. Unfortunately, this
breaks several tests that depend on the subgroup size being what the
device says it is. So we'll fix the subgroup size at the size the device
declares. The extra invocations in the subgroup will appear to be
inactive. Because of this, the ballot mask builtins are now ANDed with
the active subgroup mask.

Add support for emulating a subgroup of size 1. This is intended to be
used by Vulkan Portability implementations (e.g. MoltenVK) when the
hardware/software combo provides insufficient support for subgroups.
Luckily for us, Vulkan 1.1 only requires that the subgroup size be at
least 1.

Add support for quadgroup and SIMD-group functions which were added to
iOS in Metal 2.2 and 2.3. This will allow clients to take advantage of
expanded quadgroup and SIMD-group support in recent Metal versions and
on recent Apple GPUs (families 6 and 7).

Gut emulation of subgroup builtins in fragment shaders. It turns out
codegen for the SIMD-group functions in fragment wasn't implemented for
AMD on Mojave; it's a safe bet that it wasn't implemented for the other
drivers either. Subgroup support in fragment shaders now requires Metal
2.2.
2020-11-20 15:55:49 -06:00
..
asm MSL: Fix regression in image gather handling. 2020-11-06 16:21:30 +01:00
comp MSL: Expand subgroup support. 2020-11-20 15:55:49 -06:00
components MSL: Deal with padded fragment output + Component decoration. 2020-01-07 17:02:12 +01:00
frag MSL: Expand subgroup support. 2020-11-20 15:55:49 -06:00
packing MSL: Workaround broken vector -> scalar access chain in MSL. 2020-07-06 10:03:44 +02:00
vert MSL: Reintroduce workaround for constant arrays being passed by value. 2020-02-24 13:22:52 +01:00
vulkan/frag MSL: Fix passing a sampled image to a function. 2019-01-14 09:29:31 -06:00