nir: Add per_view attribute to nir_variable
[mesa.git] / src / compiler / nir / nir_lower_io_to_vector.c
index 05412e2375de01fdff6d5d708463d7b5e7843a77..f85e53ac75839053470c58a33898e3869cea9a75 100644 (file)
@@ -84,6 +84,9 @@ variables_can_merge(const nir_shader *shader,
    if (a->data.compact || b->data.compact)
       return false;
 
+   if (a->data.per_view || b->data.per_view)
+      return false;
+
    const struct glsl_type *a_type_tail = a->type;
    const struct glsl_type *b_type_tail = b->type;