spirv: Initialize struct member offsets to -1
This is the "no offset specified" value. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
b4eae8444e
commit
662cfb121b
|
@ -1236,6 +1236,7 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
|
|||
.type = val->type->members[i]->type,
|
||||
.name = ralloc_asprintf(b, "field%d", i),
|
||||
.location = -1,
|
||||
.offset = -1,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue