Lines Matching refs:ins
55 mir_foreach_instr_in_block_safe(block, ins) { in midgard_opt_combine_projection()
57 if (ins->type != TAG_ALU_4) continue; in midgard_opt_combine_projection()
58 if (ins->op != midgard_alu_op_fmul) continue; in midgard_opt_combine_projection()
64 if (!mir_is_simple_swizzle(ins->swizzle[0], ins->mask)) continue; in midgard_opt_combine_projection()
65 if (!is_swizzle_0(ins->swizzle[1])) continue; in midgard_opt_combine_projection()
68 unsigned frcp = ins->src[1]; in midgard_opt_combine_projection()
69 unsigned to = ins->dest; in midgard_opt_combine_projection()
91 if (frcp_from != ins->src[0]) continue; in midgard_opt_combine_projection()
118 .mask = ins->mask, in midgard_opt_combine_projection()
132 mir_insert_instruction_before(ctx, ins, accel); in midgard_opt_combine_projection()
133 mir_remove_instruction(ins); in midgard_opt_combine_projection()
146 mir_foreach_instr_in_block_safe(block, ins) { in midgard_opt_varying_projection()
148 if (ins->type != TAG_LOAD_STORE_4) continue; in midgard_opt_varying_projection()
149 if (!OP_IS_PROJECTION(ins->op)) continue; in midgard_opt_varying_projection()
151 unsigned vary = ins->src[0]; in midgard_opt_varying_projection()
152 unsigned to = ins->dest; in midgard_opt_varying_projection()
177 ins->op == midgard_op_ldst_perspective_div_w; in midgard_opt_varying_projection()
193 mir_remove_instruction(ins); in midgard_opt_varying_projection()