pan/bi: Fix SEL.16 swizzle
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 2 Jun 2020 23:28:03 +0000 (19:28 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 17:35:10 +0000 (17:35 +0000)
2 scalar arguments, not 1 vector.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5307>

src/panfrost/bifrost/bi_lower_combine.c

index 6eb6da7699bdc572346872c44c8e17022ebf0cef..2d59b760c2869754bb1fb0df8fc199f0ae640cc1 100644 (file)
@@ -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 */