diff options
author | Jason Ekstrand <[email protected]> | 2017-03-21 15:24:25 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-05-03 11:25:46 -0700 |
commit | f903f78b7237f11f0f8f2bb10db0741a1c69458e (patch) | |
tree | ebdcf2a23ebcd692296b1fe2f167d42a1f4843ff /src/compiler/spirv/vtn_variables.c | |
parent | 99d07095533fa46c76f1d739411a8fcbcc4924c2 (diff) |
spirv: Add support for SPV_KHR_multiview
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_variables.c')
-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 293d07d68bf..365e562386f 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1036,6 +1036,10 @@ vtn_get_builtin_location(struct vtn_builder *b, *location = SYSTEM_VALUE_DRAW_ID; set_mode_system_value(mode); break; + case SpvBuiltInViewIndex: + *location = SYSTEM_VALUE_VIEW_INDEX; + set_mode_system_value(mode); + break; case SpvBuiltInHelperInvocation: default: unreachable("unsupported builtin"); |