From: Jason Ekstrand Date: Wed, 9 Jan 2019 00:19:33 +0000 (-0600) Subject: spirv: Initialize struct member offsets to -1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=662cfb121bd3206c6a6de64de419349184984a9d;p=mesa.git spirv: Initialize struct member offsets to -1 This is the "no offset specified" value. Reviewed-by: Alejandro PiƱeiro Reviewed-by: Lionel Landwerlin --- diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 5013a9c30ae..6b01ad35a71 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -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, }; }