Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
record_type = t->fields.array;
unsigned length = t->length;
+
/* Shader storage block unsized arrays: add subscript [0] to variable
- * names */
+ * names.
+ */
if (t->is_unsized_array())
length = 1;
}
} else {
for (unsigned i = 0; i < num_blks; i++) {
- if (strcmp(var->get_interface_type()->name, blks[i].Name) ==
- 0) {
+ if (strcmp(var->get_interface_type()->name, blks[i].Name) == 0) {
buffer_block_index = i;
break;
}