spirv: Trivially handle the NonWriteable decoration
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b6dc940ec2
commit
2ef7aef322
|
@ -454,6 +454,7 @@ struct_member_decoration_cb(struct vtn_builder *b,
|
|||
assert(member < ctx->num_fields);
|
||||
|
||||
switch (dec->decoration) {
|
||||
case SpvDecorationNonWritable:
|
||||
case SpvDecorationRelaxedPrecision:
|
||||
break; /* FIXME: Do nothing with this for now. */
|
||||
case SpvDecorationNoPerspective:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue