mesa: include mtypes.h less
[mesa.git] / src / compiler / glsl / link_interface_blocks.cpp
index c2c3b58f8211b48477038e46e203a6f9f4c14906..7c3037e89754567a8da40208764bba9194bd30b9 100644 (file)
@@ -30,6 +30,7 @@
 #include "glsl_symbol_table.h"
 #include "linker.h"
 #include "main/macros.h"
+#include "main/mtypes.h"
 #include "util/hash_table.h"
 
 
@@ -137,7 +138,7 @@ intrastage_match(ir_variable *a,
    /* If a block is an array then it must match across the shader.
     * Unsized arrays are also processed and matched agaist sized arrays.
     */
-   if (b->type != a->type &&
+   if (b->type != a->type && (b->type->is_array() || a->type->is_array()) &&
        (b->is_interface_instance() || a->is_interface_instance()) &&
        !validate_intrastage_arrays(prog, b, a))
       return false;