There is a limit to how vector widths (eg due to RA), larger vectors should be
broken up in NIR so we shouldn't ever see such vectors.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17220>
unsigned shift = (bitsize == 32) ? 0 : (bitsize == 16) ? 1 : 2;
unsigned chan_per_word = 1 << shift;
+ assert(DIV_ROUND_UP(count * bitsize, 32) <= BI_MAX_SRCS &&
+ "unnecessarily large vector should have been lowered");
+
bi_index srcs[BI_MAX_VEC];
for (unsigned i = 0; i < count; i += chan_per_word) {