Module: Mesa
Branch: main
Commit: 4681fd3882bb758e829232fe6e82f8e88fff3ed6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4681fd3882bb758e829232fe6e82f8e88fff3ed6

Author: Marek Olšák <[email protected]>
Date:   Thu Apr  6 02:28:50 2023 -0400

nir: set uses_wide_subgroup_intrinsics for all shader stages

nir_opt_varyings will use it in VS, TES, GS.

Reviewed-by: Timur Kristóf <[email protected]>
Reviewed-by: Qiang Yu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>

---

 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 9fe631033d2..d170466ac11 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:

Reply via email to