nir/spirv: fix a bug with structure creation

We were creating 2 extra bogus fields.
This commit is contained in:
Connor Abbott 2015-07-04 15:51:24 -07:00
parent 73351c6a18
commit 15047514c9

View file

@ -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;
}