spirv: Trivially handle the NonWriteable decoration

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Jason Ekstrand
2016-04-20 10:32:59 -07:00
parent b6dc940ec2
commit 2ef7aef322
2 changed files with 4 additions and 0 deletions

View File

@@ -895,6 +895,9 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
/* Handle decorations that apply to a vtn_variable as a whole */
switch (dec->decoration) {
case SpvDecorationNonWritable:
/* Do nothing with this for now */
return;
case SpvDecorationBinding:
vtn_var->binding = dec->literals[0];
return;