X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fpanfrost%2Fbifrost%2Fbir.c;fp=src%2Fpanfrost%2Fbifrost%2Fbir.c;h=a40b33800f80c8e3dbd9fc3991d25697ea067768;hb=a5bfe591963e2c814cd59bee52e2c1fddbe9686d;hp=3c5ad9bf71b90af751ff3ed07e13ace758caa792;hpb=c12081dca1942bce675e73b3604ecb5955a63087;p=mesa.git diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c index 3c5ad9bf71b..a40b33800f8 100644 --- a/src/panfrost/bifrost/bir.c +++ b/src/panfrost/bifrost/bir.c @@ -100,6 +100,10 @@ bi_get_component_count(bi_instruction *ins, signed src) return (src <= 0) ? ins->vector_channels : 1; } else { unsigned bytes = nir_alu_type_get_type_size(src < 0 ? ins->dest_type : ins->src_types[src]); + + if (ins->type == BI_ATEST || ins->type == BI_SELECT) + return 1; + return MAX2(32 / bytes, 1); } }