Lines Matching defs:new

28 void mir_rewrite_index_src_single(midgard_instruction *ins, unsigned old, unsigned new)
32 ins->src[i] = new;
36 void mir_rewrite_index_dst_single(midgard_instruction *ins, unsigned old, unsigned new)
39 ins->dest = new;
43 mir_rewrite_index_src_single_swizzle(midgard_instruction *ins, unsigned old, unsigned new, unsigned *swizzle)
48 ins->src[i] = new;
54 mir_rewrite_index_src(compiler_context *ctx, unsigned old, unsigned new)
57 mir_rewrite_index_src_single(ins, old, new);
62 mir_rewrite_index_src_swizzle(compiler_context *ctx, unsigned old, unsigned new, unsigned *swizzle)
65 mir_rewrite_index_src_single_swizzle(ins, old, new, swizzle);
70 mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new)
73 mir_rewrite_index_dst_single(ins, old, new);
78 ctx->blend_input = new;
81 ctx->blend_src1 = new;
85 mir_rewrite_index(compiler_context *ctx, unsigned old, unsigned new)
87 mir_rewrite_index_src(ctx, old, new);
88 mir_rewrite_index_dst(ctx, old, new);
336 * the instruction into a new bundle before/after the bundle of the instruction
396 midgard_bundle new = mir_bundle_for_op(ctx, ins);
397 memcpy(bundles + before, &new, sizeof(new));
399 list_addtail(&new.instructions[0]->link, &before_bundle->instructions[0]->link);
400 block->quadword_count += midgard_tag_props[new.tag].size;
402 return new.instructions[0];
412 /* We need to grow the bundles array to add our new bundle */
424 midgard_bundle new = mir_bundle_for_op(ctx, ins);
425 memcpy(bundles + after + 1, &new, sizeof(new));
426 list_add(&new.instructions[0]->link, &after_bundle->instructions[after_bundle->instruction_count - 1]->link);
427 block->quadword_count += midgard_tag_props[new.tag].size;
429 return new.instructions[0];