summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-06 21:38:57 +0100
committerKenneth Graunke <[email protected]>2019-09-06 15:38:10 -0700
commit6b8cb087568699ca9a6e9e8b7bf49179e622b59f (patch)
tree23d9f687702b75a83f5d48171962c18c18dc748d /src/compiler
parent27339fe9a74bf57b082b7ac657cdf76f3fd00f57 (diff)
nir/lower_io_to_vector: don't merge compact varyings
Signed-off-by: Rhys Perry <[email protected]> Fixes: 02bc4aabb48 ('nir/lower_io_to_vector: allow FS outputs to be vectorized') Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_lower_io_to_vector.c3
1 files changed, 3 insertions, 0 deletions
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;