Lines Matching refs:scan_inst
3117 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in compute_to_mrf()
3118 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
3129 if (scan_inst->is_partial_write()) in compute_to_mrf()
3136 if (!region_contained_in(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
3141 if (scan_inst->mlen) in compute_to_mrf()
3148 if (scan_inst->is_math()) { in compute_to_mrf()
3155 inst->src[0], scan_inst->dst, scan_inst->size_written); in compute_to_mrf()
3164 if (block->start() == scan_inst) in compute_to_mrf()
3171 for (int i = 0; i < scan_inst->sources; i++) { in compute_to_mrf()
3172 if (regions_overlap(scan_inst->src[i], scan_inst->size_read(i), in compute_to_mrf()
3180 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
3188 if (scan_inst->mlen > 0 && scan_inst->base_mrf != -1 && in compute_to_mrf()
3189 regions_overlap(fs_reg(MRF, scan_inst->base_mrf), scan_inst->mlen * REG_SIZE, in compute_to_mrf()
3208 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in compute_to_mrf()
3209 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
3213 inst->src[0], scan_inst->dst, scan_inst->size_written); in compute_to_mrf()
3215 const unsigned rel_offset = reg_offset(scan_inst->dst) - in compute_to_mrf()
3223 scan_inst->dst.nr = inst->dst.nr + rel_offset / REG_SIZE * 4; in compute_to_mrf()
3228 if (scan_inst->size_written < 2 * REG_SIZE) in compute_to_mrf()
3229 scan_inst->dst.nr &= ~BRW_MRF_COMPR4; in compute_to_mrf()
3235 scan_inst->dst.nr = inst->dst.nr + rel_offset / REG_SIZE; in compute_to_mrf()
3238 scan_inst->dst.file = MRF; in compute_to_mrf()
3239 scan_inst->dst.offset = inst->dst.offset + rel_offset % REG_SIZE; in compute_to_mrf()
3240 scan_inst->saturate |= inst->saturate; in compute_to_mrf()
3568 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in insert_gen4_pre_send_dependency_workarounds()
3572 if (block->start() == scan_inst && block->num != 0) { in insert_gen4_pre_send_dependency_workarounds()
3585 if (scan_inst->dst.file == VGRF) { in insert_gen4_pre_send_dependency_workarounds()
3586 for (unsigned i = 0; i < regs_written(scan_inst); i++) { in insert_gen4_pre_send_dependency_workarounds()
3587 int reg = scan_inst->dst.nr + i; in insert_gen4_pre_send_dependency_workarounds()
3594 if (scan_inst->exec_size == 16) in insert_gen4_pre_send_dependency_workarounds()
3601 clear_deps_for_inst_src(scan_inst, needs_dep, first_write_grf, write_len); in insert_gen4_pre_send_dependency_workarounds()
3634 foreach_inst_in_block_starting_from(fs_inst, scan_inst, inst) { in insert_gen4_post_send_dependency_workarounds()
3636 if (block->end() == scan_inst && block->num != cfg->num_blocks - 1) { in insert_gen4_post_send_dependency_workarounds()
3639 DEP_RESOLVE_MOV(fs_builder(this, block, scan_inst), in insert_gen4_post_send_dependency_workarounds()
3646 clear_deps_for_inst_src(scan_inst, needs_dep, first_write_grf, write_len); in insert_gen4_post_send_dependency_workarounds()
3651 if (scan_inst->dst.file == VGRF && in insert_gen4_post_send_dependency_workarounds()
3652 scan_inst->dst.nr >= first_write_grf && in insert_gen4_post_send_dependency_workarounds()
3653 scan_inst->dst.nr < first_write_grf + write_len && in insert_gen4_post_send_dependency_workarounds()
3654 needs_dep[scan_inst->dst.nr - first_write_grf]) { in insert_gen4_post_send_dependency_workarounds()
3655 DEP_RESOLVE_MOV(fs_builder(this, block, scan_inst), in insert_gen4_post_send_dependency_workarounds()
3656 scan_inst->dst.nr); in insert_gen4_post_send_dependency_workarounds()
3657 needs_dep[scan_inst->dst.nr - first_write_grf] = false; in insert_gen4_post_send_dependency_workarounds()