pan/bi: Improve assert for vector size errors

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10392>
This commit is contained in:
Alyssa Rosenzweig 2021-04-13 13:21:19 -04:00 committed by Marge Bot
parent 2f4bb3d6b9
commit caebca4aa7

View file

@ -1299,7 +1299,7 @@ bi_alu_src_index(nir_alu_src src, unsigned comps)
unsigned new_offset = (src.swizzle[i] >> subword_shift);
if (i > 0)
assert(offset == new_offset);
assert(offset == new_offset && "wrong vectorization");
offset = new_offset;
}