diff --git a/src/panfrost/bifrost/bi_lower_swizzle.c b/src/panfrost/bifrost/bi_lower_swizzle.c index 6dc762abe6c..8e372fa9f5a 100644 --- a/src/panfrost/bifrost/bi_lower_swizzle.c +++ b/src/panfrost/bifrost/bi_lower_swizzle.c @@ -251,7 +251,7 @@ bi_lower_swizzle(bi_context *ctx) BITSET_WORD *replicates_16 = calloc(sizeof(bi_index), ctx->ssa_alloc); bi_foreach_instr_global(ctx, ins) { - if (ins->nr_dests && bi_is_ssa(ins->dest[0]) && bi_instr_replicates(ins, replicates_16)) + if (ins->nr_dests && bi_instr_replicates(ins, replicates_16)) BITSET_SET(replicates_16, ins->dest[0].value); if (ins->op == BI_OPCODE_SWZ_V2I16 && bi_is_ssa(ins->src[0]) && diff --git a/src/panfrost/bifrost/bi_opt_message_preload.c b/src/panfrost/bifrost/bi_opt_message_preload.c index a1f461252a9..1096bb83dce 100644 --- a/src/panfrost/bifrost/bi_opt_message_preload.c +++ b/src/panfrost/bifrost/bi_opt_message_preload.c @@ -96,7 +96,7 @@ bi_opt_message_preload(bi_context *ctx) bi_builder b = bi_init_builder(ctx, bi_before_nonempty_block(block)); bi_foreach_instr_in_block_safe(block, I) { - if (I->nr_dests != 1 || !bi_is_ssa(I->dest[0])) continue; + if (I->nr_dests != 1) continue; struct bifrost_message_preload msg;