pan/bi: Improve assert for vector size errors
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 13 Apr 2021 17:21:19 +0000 (13:21 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 May 2021 15:10:20 +0000 (15:10 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10392>

src/panfrost/bifrost/bifrost_compile.c

index bd02721..e68237f 100644 (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;
         }