diff options
author | Rhys Perry <[email protected]> | 2019-10-14 17:03:07 +0100 |
---|---|---|
committer | Rhys Perry <[email protected]> | 2020-01-14 11:29:44 +0000 |
commit | 9fb0c2e0335716a46ce98bcb6979198d5862ae44 (patch) | |
tree | 91a125febe0602140fda47da40073c76a2fed4e8 /src/compiler/nir | |
parent | 9aab36b6eb82ac1d0bc992b52eca319b409eeada (diff) |
nir/divergence: handle load_primitive_id in GS
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2323>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2323>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_divergence_analysis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_divergence_analysis.c b/src/compiler/nir/nir_divergence_analysis.c index 9b8f9cb6349..397015263e1 100644 --- a/src/compiler/nir/nir_divergence_analysis.c +++ b/src/compiler/nir/nir_divergence_analysis.c @@ -157,6 +157,8 @@ visit_intrinsic(bool *divergent, nir_intrinsic_instr *instr, is_divergent = !(options & nir_divergence_single_patch_per_tcs_subgroup); else if (stage == MESA_SHADER_TESS_EVAL) is_divergent = !(options & nir_divergence_single_patch_per_tes_subgroup); + else if (stage == MESA_SHADER_GEOMETRY) + is_divergent = true; else unreachable("Invalid stage for load_primitive_id"); break; |