diff options
author | Karol Herbst <[email protected]> | 2018-02-22 23:35:50 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2018-07-12 13:09:00 +0200 |
commit | 154ef32e4633b9aa4eafc8c41e818943fe129630 (patch) | |
tree | 1ea4127deac4b50283bd1ea74999a111189d330f /src/compiler/spirv | |
parent | 31cbcbdb873bc7437e02fbe7ba54b864245c7830 (diff) |
nir/spirv: implement BuiltInGlobalSize
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index b7c9e6f2f70..c86416495b6 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1208,6 +1208,10 @@ vtn_get_builtin_location(struct vtn_builder *b, *location = FRAG_RESULT_STENCIL; vtn_assert(*mode == nir_var_shader_out); break; + case SpvBuiltInGlobalSize: + *location = SYSTEM_VALUE_GLOBAL_GROUP_SIZE; + set_mode_system_value(b, mode); + break; default: vtn_fail("unsupported builtin"); } |