nir/lower_system_values: Lower SUBGROUP_*_MASK based on type
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Aug 2017 21:09:37 +0000 (14:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commit9b35faba426acc111741aa69752cb87185e548aa
tree7b598b13ff074ca25c01ebd1e364a7066939b07c
parent3ee91ee6ac739f7ad4d5d4b066073efbeb511b41
nir/lower_system_values: Lower SUBGROUP_*_MASK based on type

The SUBGROUP_*_MASK system values are uint64_t when coming in from GLSL
but uvec4 when coming in from SPIR-V.  Lowering based on type allows us
to nicely handle both.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir_lower_system_values.c