nir: add uses_wide_subgroup_intrinsics to task/mesh shader_info

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18504>
This commit is contained in:
Marcin Ślusarz 2022-08-31 14:26:58 +02:00 committed by Marge Bot
parent 704ef1fd3b
commit fa437f87ca
2 changed files with 4 additions and 0 deletions

View file

@ -835,6 +835,8 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
shader->info.fs.needs_all_helper_invocations = true;
if (shader->info.stage == MESA_SHADER_COMPUTE)
shader->info.cs.uses_wide_subgroup_intrinsics = true;
if (gl_shader_stage_is_mesh(shader->info.stage))
shader->info.mesh.uses_wide_subgroup_intrinsics = true;
break;
case nir_intrinsic_end_primitive:

View file

@ -532,6 +532,8 @@ typedef struct shader_info {
/* Applies to MESH. */
struct {
bool uses_wide_subgroup_intrinsics;
/* Bit mask of MS outputs that are used
* with an index that is NOT the local invocation index.
*/