spirv: Trivially handle the NonWriteable decoration
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -454,6 +454,7 @@ struct_member_decoration_cb(struct vtn_builder *b,
|
|||||||
assert(member < ctx->num_fields);
|
assert(member < ctx->num_fields);
|
||||||
|
|
||||||
switch (dec->decoration) {
|
switch (dec->decoration) {
|
||||||
|
case SpvDecorationNonWritable:
|
||||||
case SpvDecorationRelaxedPrecision:
|
case SpvDecorationRelaxedPrecision:
|
||||||
break; /* FIXME: Do nothing with this for now. */
|
break; /* FIXME: Do nothing with this for now. */
|
||||||
case SpvDecorationNoPerspective:
|
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 */
|
/* Handle decorations that apply to a vtn_variable as a whole */
|
||||||
switch (dec->decoration) {
|
switch (dec->decoration) {
|
||||||
|
case SpvDecorationNonWritable:
|
||||||
|
/* Do nothing with this for now */
|
||||||
|
return;
|
||||||
case SpvDecorationBinding:
|
case SpvDecorationBinding:
|
||||||
vtn_var->binding = dec->literals[0];
|
vtn_var->binding = dec->literals[0];
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user