summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-26 17:06:17 -0700
committerJason Ekstrand <[email protected]>2016-05-26 17:10:50 -0700
commit9f9f229359a7c850bd5a24945f3445e611267789 (patch)
tree43fcf90284ec6f67db56cefdd4a830fc104f0d44 /src/compiler
parent1ec45a1948548ee26d55b6e5dfab1559f7f0a8ce (diff)
nir/spirv: Allow pointless variable decorations on inputs
SPIR-V specifies that a bunch of stuff gets applied to types. This means taht a local variable could get, for instance, an array stride. Just because it's pointless doesn't mean you'll never see it.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/spirv/vtn_variables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 8abd8ee9a0f..812ac62b39a 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -1050,6 +1050,8 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
case SpvDecorationArrayStride:
case SpvDecorationGLSLShared:
case SpvDecorationGLSLPacked:
+ break; /* These can apply to a type but we don't care about them */
+
case SpvDecorationBinding:
case SpvDecorationDescriptorSet:
case SpvDecorationNoContraction: