From 662cfb121bd3206c6a6de64de419349184984a9d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 8 Jan 2019 18:19:33 -0600 Subject: [PATCH] spirv: Initialize struct member offsets to -1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is the "no offset specified" value. Reviewed-by: Alejandro Piñeiro Reviewed-by: Lionel Landwerlin --- src/compiler/spirv/spirv_to_nir.c | 1 + 1 file changed, 1 insertion(+) 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, }; } -- 2.30.2