aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-08 18:19:33 -0600
committerJason Ekstrand <[email protected]>2019-01-22 10:42:56 -0600
commit662cfb121bd3206c6a6de64de419349184984a9d (patch)
tree033c2ecb92b94c2225dc6ab74d48cd7d6c55dbd0 /src/compiler/spirv
parentb4eae8444e0a7c61bd7013e397e351e3b3965a49 (diff)
spirv: Initialize struct member offsets to -1
This is the "no offset specified" value. Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c1
1 files changed, 1 insertions, 0 deletions
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,
};
}