From 4681fd3882bb758e829232fe6e82f8e88fff3ed6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 6 Apr 2023 02:28:50 -0400 Subject: [PATCH] nir: set uses_wide_subgroup_intrinsics for all shader stages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit nir_opt_varyings will use it in VS, TES, GS. Reviewed-by: Timur Kristóf Reviewed-by: Qiang Yu Part-of: --- src/compiler/nir/nir_gather_info.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 9fe6310..d170466 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -831,9 +831,8 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader, case nir_intrinsic_write_invocation_amd: if (shader->info.stage == MESA_SHADER_FRAGMENT) shader->info.fs.needs_all_helper_invocations = true; - if (shader->info.stage == MESA_SHADER_COMPUTE || - gl_shader_stage_is_mesh(shader->info.stage)) - shader->info.uses_wide_subgroup_intrinsics = true; + + shader->info.uses_wide_subgroup_intrinsics = true; break; case nir_intrinsic_end_primitive: -- 2.7.4