pan/bi: Remove bogus assert for pack_32_2x16
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 24 Jun 2022 15:53:16 +0000 (11:53 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Sep 2022 17:22:58 +0000 (17:22 +0000)
commit65961848b11b5ad67be28b1709c30f144ecff9cf
treee8d79c565fcf93e3757982796c56355b2c9d6feb
parent5689a932e8a6cb6afcfddbe734cb52f3b7973d56
pan/bi: Remove bogus assert for pack_32_2x16

The following IR is valid NIR:

   vec1 16 ssa_0 = ...
   vec1 32 ssa_1 = pack_32_2x16 ssa_0.xx

In this case, pack_32_2x16 takes in a two component vector, but the source
itself ssa_0 has only a single component. This is fine due to the shuffle, but
will fail the assert. Remove the assert and all is well.

Fixes test_relational.shuffle_copy.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18656>
src/panfrost/bifrost/bifrost_compile.c