mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir/spirv: fix a bug with structure creation
We were creating 2 extra bogus fields.
This commit is contained in:
parent
73351c6a18
commit
15047514c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue