SPIRV-Cross/shaders-msl/asm
Chip Davis 41007cdc7d MSL: Deduplicate function constants.
It is possible in SPIR-V to declare multiple specialization constants
with the same constant ID. The most common cause of this in GLSL is
defining a spec constant, then declaring the workgroup size to use that
spec constant by its ID. But, MSL forbids defining multiple function
constants with the same function constant ID. So, we must only emit one
definition of the actual function constant (with the
`[[function_constant(id)]]` attribute); but we can point the other
variables at this one definition.

Fixes three tests in the Vulkan CTS under
`dEQP-VK.compute.basic.max_local_size_*`.
2023-02-17 10:43:50 -08:00
..
comp MSL: Deduplicate function constants. 2023-02-17 10:43:50 -08:00
frag Add relax_nan_checks options. 2022-03-03 14:50:56 +01:00
tesc MSL: Add support for processing more than one patch per workgroup. 2020-07-23 17:59:54 -05:00
tese MSL: Force unnamed array builtin attributes to have a name. 2019-02-20 22:16:51 -06:00
vert Add tests for OpSpecConstantOp ops OpQuantizeToF16 and OpSRem. 2021-09-05 16:51:04 -04:00