mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
glsl: let interface linking code validate its arrays
Currently intrastage arrays are validated twice for interface blocks. Reviewed-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
parent
c5a56a63f9
commit
1a96d9ef1c
1 changed files with 2 additions and 1 deletions
|
|
@ -762,7 +762,8 @@ cross_validate_globals(struct gl_shader_program *prog,
|
|||
/* Check if types match. Interface blocks have some special
|
||||
* rules so we handle those elsewhere.
|
||||
*/
|
||||
if (var->type != existing->type) {
|
||||
if (var->type != existing->type &&
|
||||
!var->is_interface_instance()) {
|
||||
if (!validate_intrastage_arrays(prog, var, existing)) {
|
||||
if (var->type->is_record() && existing->type->is_record()
|
||||
&& existing->type->record_compare(var->type)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue