diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 4ed0806518f..a3ceea42912 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1992,8 +1992,7 @@ bi_alu_src_index(bi_builder *b, nir_alu_src src, unsigned comps) } else if (bitsize == 8) { /* 8-bit vectors not yet supported */ assert(comps == 1 && "8-bit vectors not supported"); - assert(src.swizzle[0] < 4 && "8-bit vectors not supported"); - idx.swizzle = BI_SWIZZLE_B0000 + src.swizzle[0]; + idx.swizzle = BI_SWIZZLE_B0000 + (src.swizzle[0] & 3); } return idx;