From 0b000c54c01930c5637526aa875f5372399f5e55 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 13 Apr 2020 18:12:12 -0400 Subject: [PATCH] pan/bi: Fix incorrect swizzle packing assert Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 604b0300746..7c2f11ab821 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -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); } -- 2.30.2