pan/bi: Fix SEL.16 swizzle

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>
This commit is contained in:
Alyssa Rosenzweig 2020-06-02 19:28:03 -04:00 committed by Marge Bot
parent 9ed1ae4724
commit 323eecaf13
1 changed files with 4 additions and 4 deletions

View 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 */