From: Alyssa Rosenzweig Date: Mon, 13 Apr 2020 22:12:12 +0000 (-0400) Subject: pan/bi: Fix incorrect swizzle packing assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b000c54c01930c5637526aa875f5372399f5e55;p=mesa.git pan/bi: Fix incorrect swizzle packing assert Signed-off-by: Alyssa Rosenzweig Part-of: --- 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); }