diff options
author | Rob Clark <[email protected]> | 2017-12-25 15:18:00 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-30 12:39:07 -0500 |
commit | ea0bbe82019458f3c0482a2d13614fdd06041ee3 (patch) | |
tree | b4c8412f59c1664d24e0b698dac737ba298cba0e /src/compiler/nir/nir.c | |
parent | 60c2d094831a2238551b6959d045638e78706924 (diff) |
nir: add missing local_group_size intrinsic
For GL_ARB_compute_variable_group_size
Reported-by: Karol Herbst <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r-- | src/compiler/nir/nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 688f2b1ae32..692d97bf9aa 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1969,6 +1969,8 @@ nir_intrinsic_from_system_value(gl_system_value val) return nir_intrinsic_load_subgroup_le_mask; case SYSTEM_VALUE_SUBGROUP_LT_MASK: return nir_intrinsic_load_subgroup_lt_mask; + case SYSTEM_VALUE_LOCAL_GROUP_SIZE: + return nir_intrinsic_load_local_group_size; default: unreachable("system value does not directly correspond to intrinsic"); } @@ -2038,6 +2040,8 @@ nir_system_value_from_intrinsic(nir_intrinsic_op intrin) return SYSTEM_VALUE_SUBGROUP_LE_MASK; case nir_intrinsic_load_subgroup_lt_mask: return SYSTEM_VALUE_SUBGROUP_LT_MASK; + case nir_intrinsic_load_local_group_size: + return SYSTEM_VALUE_LOCAL_GROUP_SIZE; default: unreachable("intrinsic doesn't produce a system value"); } |