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 <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
This commit is contained in:
Marek Olšák
2023-04-06 02:28:50 -04:00
committed by Marge Bot
parent e6e406b483
commit 4681fd3882

View File

@@ -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: