nir: gather whether a compute shader uses non-quad subgroup intrinsics
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7918>
This commit is contained in:
parent
5bb94ab050
commit
c73c246e05
|
@ -568,6 +568,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)
|
||||
shader->info.cs.uses_wide_subgroup_intrinsics = true;
|
||||
break;
|
||||
|
||||
case nir_intrinsic_end_primitive:
|
||||
|
|
|
@ -378,6 +378,11 @@ typedef struct shader_info {
|
|||
* AddressingModelPhysical64: 64
|
||||
*/
|
||||
unsigned ptr_size;
|
||||
|
||||
/**
|
||||
* Uses subgroup intrinsics which can communicate across a quad.
|
||||
*/
|
||||
bool uses_wide_subgroup_intrinsics;
|
||||
} cs;
|
||||
|
||||
/* Applies to both TCS and TES. */
|
||||
|
|
Loading…
Reference in New Issue