nir: fix gather_ssa_types
[mesa.git] / src / compiler / nir / nir_lower_var_copies.c
index d677b4e505b97b8207269a3f7db60cf856d66fe0..0ba398698f0dd9d0fa24f962bd4156a632fb6e96 100644 (file)
@@ -82,7 +82,8 @@ emit_deref_copy_load_store(nir_builder *b,
                                     src_deref_arr + 1);
       }
    } else {
-      assert(dst_deref->type == src_deref->type);
+      assert(glsl_get_bare_type(dst_deref->type) ==
+             glsl_get_bare_type(src_deref->type));
       assert(glsl_type_is_vector_or_scalar(dst_deref->type));
 
       nir_store_deref(b, dst_deref, nir_load_deref(b, src_deref), ~0);