diff options
author | Jason Ekstrand <[email protected]> | 2017-08-21 16:05:20 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-08-28 08:57:52 -0700 |
commit | 63e79a8a777b36ecb30a1f6900e6b638cb32fc5f (patch) | |
tree | 9500ca46ce52a025a9940b999131b31d17fd7aef /src/compiler | |
parent | 79d8d6b02219adc97278c2e111ede209dcf7b4f6 (diff) |
nir: Fix system_value_from_intrinsic for subgroups
A couple of the cases were backwards
Reviewed-by: Matt Turner <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index e9e04896335..afd4d1a7236 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1992,10 +1992,10 @@ nir_system_value_from_intrinsic(nir_intrinsic_op intrin) return SYSTEM_VALUE_HELPER_INVOCATION; case nir_intrinsic_load_view_index: return SYSTEM_VALUE_VIEW_INDEX; - case SYSTEM_VALUE_SUBGROUP_SIZE: - return nir_intrinsic_load_subgroup_size; - case SYSTEM_VALUE_SUBGROUP_INVOCATION: - return nir_intrinsic_load_subgroup_invocation; + case nir_intrinsic_load_subgroup_size: + return SYSTEM_VALUE_SUBGROUP_SIZE; + case nir_intrinsic_load_subgroup_invocation: + return SYSTEM_VALUE_SUBGROUP_INVOCATION; case nir_intrinsic_load_subgroup_eq_mask: return SYSTEM_VALUE_SUBGROUP_EQ_MASK; case nir_intrinsic_load_subgroup_ge_mask: |