glsl: simplify validate_intrastage_arrays

Struct types are now equal when they are structurally equal.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Nicolai Hähnle
2017-05-15 08:32:21 +02:00
parent d21a35d63c
commit de32c8378c

View File

@@ -850,14 +850,6 @@ validate_intrastage_arrays(struct gl_shader_program *prog,
}
return true;
}
} else {
/* The arrays of structs could have different glsl_type pointers but
* they are actually the same type. Use record_compare() to check that.
*/
if (existing->type->fields.array->is_record() &&
var->type->fields.array->is_record() &&
existing->type->fields.array->record_compare(var->type->fields.array))
return true;
}
}
return false;