nir/lower_subgroups: Mask off unused bits in ballot ops
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 23 Apr 2020 02:35:48 +0000 (21:35 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 11:37:03 +0000 (11:37 +0000)
commitfdf9b674ee3a17c98fd266750dec3475910542f6
tree882a3e54957b99b1d3f596726c002d7b1ceda065
parent9c009da208b77496011f149fd1e289656da0f226
nir/lower_subgroups: Mask off unused bits in ballot ops

Thanks to VK_EXT_subgroup_size_control, we can end up with
gl_SubgroupSize being as low as 8 on Intel.

Fixes: d10de253097 "anv: Implement VK_EXT_subgroup_size_control"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4694>
src/compiler/nir/nir_lower_subgroups.c