nir: add nir_intrinsic_elect to divergence analysis
authorDaniel Schürmann <daniel@schuermann.dev>
Thu, 6 Feb 2020 16:35:25 +0000 (17:35 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 18:49:22 +0000 (18:49 +0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4062>

src/compiler/nir/nir_divergence_analysis.c

index 03201e0faf8ec21eb04010e779d164b37fb4e644..b166b31ab882b2c0899002e978e38e94370c77f2 100644 (file)
@@ -410,6 +410,7 @@ visit_intrinsic(nir_intrinsic_instr *instr,
    case nir_intrinsic_ballot_bit_count_inclusive:
    case nir_intrinsic_write_invocation_amd:
    case nir_intrinsic_mbcnt_amd:
+   case nir_intrinsic_elect:
       is_divergent = true;
       break;