From 7ac1bb047aa96805199b0d85ee49367f6a2b0531 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 10 Jun 2020 14:06:43 -0400 Subject: [PATCH] pan/mdg: Avoid fusing ld_vary_16 with non-zero component Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/nir_fuse_io_16.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/panfrost/midgard/nir_fuse_io_16.c b/src/panfrost/midgard/nir_fuse_io_16.c index ddeb4491de4..ed4b7750d04 100644 --- a/src/panfrost/midgard/nir_fuse_io_16.c +++ b/src/panfrost/midgard/nir_fuse_io_16.c @@ -67,6 +67,11 @@ nir_fuse_io_16(nir_shader *shader) if (nir_dest_bit_size(intr->dest) != 32) continue; + /* We swizzle at a 32-bit level so need a multiple of 2. We could + * do a bit better and handle even components though */ + if (nir_intrinsic_component(intr)) + continue; + if (!intr->dest.is_ssa) continue; -- 2.30.2