From 323eecaf1392b8fc6951e9f4967fca6ee755ec28 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 2 Jun 2020 19:28:03 -0400 Subject: [PATCH] pan/bi: Fix SEL.16 swizzle 2 scalar arguments, not 1 vector. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_lower_combine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/panfrost/bifrost/bi_lower_combine.c b/src/panfrost/bifrost/bi_lower_combine.c index 6eb6da7699b..2d59b760c28 100644 --- a/src/panfrost/bifrost/bi_lower_combine.c +++ b/src/panfrost/bifrost/bi_lower_combine.c @@ -71,10 +71,10 @@ bi_combine_sel16(bi_context *ctx, bi_instruction *parent, unsigned comp, unsigne .dest_offset = comp >> 1, .src = { parent->src[comp], parent->src[comp + 1] }, .src_types = { nir_type_uint16, nir_type_uint16 }, - .swizzle = { { - parent->swizzle[comp][0], - parent->swizzle[comp + 1][0], - } } + .swizzle = { + { parent->swizzle[comp][0] }, + { parent->swizzle[comp + 1][0] }, + } }; /* In case we have a combine from a vec3 */ -- 2.30.2