pan/bi: Fix incorrect swizzle packing assert
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 13 Apr 2020 22:12:12 +0000 (18:12 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 22:32:40 +0000 (22:32 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4539>

src/panfrost/bifrost/bi_pack.c

index 604b0300746343259d572cbbc6d87c0db561f6cb..7c2f11ab82198c856a2a72d2f702fa76545efdd4 100644 (file)
@@ -477,7 +477,7 @@ bi_swiz16(bi_instruction *ins, unsigned src)
                 if (!bi_writes_component(ins, src)) continue;
 
                 unsigned k = ins->swizzle[src][c];
-                assert(k < 1);
+                assert(k <= 1);
                 swizzle |= (k << c);
         }