Mesa (master): pan/bi: Fix SEL.16 swizzle
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 3 17:45:45 UTC 2020
Module: Mesa
Branch: master
Commit: 323eecaf1392b8fc6951e9f4967fca6ee755ec28
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=323eecaf1392b8fc6951e9f4967fca6ee755ec28
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Tue Jun 2 19:28:03 2020 -0400
pan/bi: Fix SEL.16 swizzle
2 scalar arguments, not 1 vector.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5307>
---
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 */
More information about the mesa-commit
mailing list