intel/compiler: Lower gl_SubgroupSize in postprocess_nir
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Feb 2019 21:29:12 +0000 (15:29 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Jul 2019 17:55:40 +0000 (12:55 -0500)
commit1981460af2c17d55c17be2475a28bbf711a80c79
treeb0503a4e411bcfaa645dc288919a9eff220afa64
parentf62227f2b7c4d69b9e0e3cd1e61c5959459a8334
intel/compiler: Lower gl_SubgroupSize in postprocess_nir

Instead of lowering the subgroup size so early, wait until we have more
information.  In particular, we're going to want different subgroup
sizes from different stages depending on the API.  We also defer
lowering of subgroup masks because the ge/gt masks require the subgroup
size to generate a subgroup mask.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/compiler/brw_nir.c