From 15047514c9503313427b2467334624f2e697430d Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Sat, 4 Jul 2015 15:51:24 -0700 Subject: [PATCH] nir/spirv: fix a bug with structure creation We were creating 2 extra bogus fields. --- src/glsl/nir/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index ed23a9cb747..4b97a862eda 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -452,7 +452,7 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode, const char *name = val->name ? val->name : "struct"; - val->type->type = glsl_struct_type(fields, count, name); + val->type->type = glsl_struct_type(fields, num_fields, name); return; } -- 2.30.2