diff options
Diffstat (limited to 'src/intel/compiler/brw_nir.c')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index e5ff6deb2f7..f599f748a8a 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -620,7 +620,6 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir) OPT(nir_lower_tex, &tex_options); OPT(nir_normalize_cubemap_coords); - OPT(nir_lower_read_invocation_to_scalar); OPT(nir_lower_global_vars_to_local); @@ -637,6 +636,13 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir) OPT(nir_lower_system_values); + const nir_lower_subgroups_options subgroups_options = { + .lower_to_scalar = true, + .lower_subgroup_masks = true, + .lower_vote_trivial = !is_scalar, + }; + OPT(nir_lower_subgroups, &subgroups_options); + OPT(nir_lower_clip_cull_distance_arrays); nir_variable_mode indirect_mask = 0; |