Lines Matching refs:src_reg
332 struct ir3_register *src_reg = src->srcs[0]; in reg_cp() local
340 reg->array = src_reg->array; in reg_cp()
343 reg->def = src_reg->def; in reg_cp()
357 struct ir3_register *src_reg = src->srcs[0]; in reg_cp() local
360 if (src_reg->flags & IR3_REG_ARRAY) in reg_cp()
367 if (lower_immed(ctx, instr, n, src_reg, new_flags)) in reg_cp()
392 if (src_reg->flags & IR3_REG_CONST) { in reg_cp()
396 if ((src_reg->flags & IR3_REG_RELATIV) && in reg_cp()
405 (src_reg->flags & IR3_REG_RELATIV) && (src_reg->array.offset == 0)) in reg_cp()
433 src_reg = ir3_reg_clone(instr->block->shader, src_reg); in reg_cp()
434 src_reg->flags = new_flags; in reg_cp()
435 instr->srcs[n] = src_reg; in reg_cp()
437 if (src_reg->flags & IR3_REG_RELATIV) in reg_cp()
443 if (src_reg->flags & IR3_REG_IMMED) { in reg_cp()
444 int32_t iim_val = src_reg->iim_val; in reg_cp()
454 iim_val = ir3_flut(src_reg); in reg_cp()
457 return lower_immed(ctx, instr, n, src_reg, new_flags); in reg_cp()
473 src_reg = ir3_reg_clone(instr->block->shader, src_reg); in reg_cp()
474 src_reg->flags = new_flags; in reg_cp()
475 src_reg->iim_val = iim_val; in reg_cp()
476 instr->srcs[n] = src_reg; in reg_cp()
481 return lower_immed(ctx, instr, n, src_reg, new_flags); in reg_cp()