From: Rhys Perry Date: Fri, 6 Sep 2019 20:38:57 +0000 (+0100) Subject: nir/lower_io_to_vector: don't merge compact varyings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b8cb087568699ca9a6e9e8b7bf49179e622b59f;p=mesa.git nir/lower_io_to_vector: don't merge compact varyings Signed-off-by: Rhys Perry Fixes: 02bc4aabb48 ('nir/lower_io_to_vector: allow FS outputs to be vectorized') Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/nir/nir_lower_io_to_vector.c b/src/compiler/nir/nir_lower_io_to_vector.c index 677b4a84095..84bd941c11c 100644 --- a/src/compiler/nir/nir_lower_io_to_vector.c +++ b/src/compiler/nir/nir_lower_io_to_vector.c @@ -81,6 +81,9 @@ variables_can_merge(const nir_shader *shader, const nir_variable *a, const nir_variable *b, bool same_array_structure) { + if (a->data.compact || b->data.compact) + return false; + const struct glsl_type *a_type_tail = a->type; const struct glsl_type *b_type_tail = b->type;