Home
last modified time | relevance | path

Searched refs:scan_inst (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/intel/compiler/
Dbrw_fs_saturate_propagation.cpp66 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in opt_saturate_propagation_local()
67 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in opt_saturate_propagation_local()
69 if (scan_inst->is_partial_write() || in opt_saturate_propagation_local()
70 (scan_inst->dst.type != inst->dst.type && in opt_saturate_propagation_local()
71 !scan_inst->can_change_types())) in opt_saturate_propagation_local()
74 if (scan_inst->saturate) { in opt_saturate_propagation_local()
78 if (scan_inst->can_do_saturate()) { in opt_saturate_propagation_local()
79 if (scan_inst->dst.type != inst->dst.type) { in opt_saturate_propagation_local()
80 scan_inst->dst.type = inst->dst.type; in opt_saturate_propagation_local()
81 for (int i = 0; i < scan_inst->sources; i++) { in opt_saturate_propagation_local()
[all …]
Dbrw_vec4_cmod_propagation.cpp70 foreach_inst_in_block_reverse_starting_from(vec4_instruction, scan_inst, inst) { in opt_cmod_propagation_local()
72 scan_inst->dst, scan_inst->size_written)) { in opt_cmod_propagation_local()
73 if ((scan_inst->predicate && scan_inst->opcode != BRW_OPCODE_SEL) || in opt_cmod_propagation_local()
74 scan_inst->dst.offset != inst->src[0].offset || in opt_cmod_propagation_local()
75 (scan_inst->dst.writemask != WRITEMASK_X && in opt_cmod_propagation_local()
76 scan_inst->dst.writemask != WRITEMASK_XYZW) || in opt_cmod_propagation_local()
77 (scan_inst->dst.writemask == WRITEMASK_XYZW && in opt_cmod_propagation_local()
79 (inst->dst.writemask & ~scan_inst->dst.writemask) != 0 || in opt_cmod_propagation_local()
80 scan_inst->exec_size != inst->exec_size || in opt_cmod_propagation_local()
81 scan_inst->group != inst->group) { in opt_cmod_propagation_local()
[all …]
Dbrw_fs_cmod_propagation.cpp90 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in opt_cmod_propagation_local()
91 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in opt_cmod_propagation_local()
93 if (scan_inst->is_partial_write() || in opt_cmod_propagation_local()
94 scan_inst->dst.offset != inst->src[0].offset || in opt_cmod_propagation_local()
95 scan_inst->exec_size != inst->exec_size) in opt_cmod_propagation_local()
100 scan_inst->opcode == BRW_OPCODE_CMP && in opt_cmod_propagation_local()
115 if (scan_inst->dst.type != inst->dst.type && in opt_cmod_propagation_local()
116 (scan_inst->dst.type == BRW_REGISTER_TYPE_F || in opt_cmod_propagation_local()
127 scan_inst->flags_written()) { in opt_cmod_propagation_local()
141 if (scan_inst->opcode == BRW_OPCODE_CMP || in opt_cmod_propagation_local()
[all …]
Dbrw_fs_register_coalesce.cpp127 foreach_inst_in_block(fs_inst, scan_inst, block) { in can_coalesce_vars()
135 if (scan_inst == inst) in can_coalesce_vars()
141 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in can_coalesce_vars()
143 regions_overlap(scan_inst->dst, scan_inst->size_written, in can_coalesce_vars()
255 foreach_block_and_inst(block, fs_inst, scan_inst, cfg) { in register_coalesce()
256 if (scan_inst->dst.file == VGRF && in register_coalesce()
257 scan_inst->dst.nr == src_reg) { in register_coalesce()
258 scan_inst->dst.nr = dst_reg; in register_coalesce()
259 scan_inst->dst.offset = scan_inst->dst.offset % REG_SIZE + in register_coalesce()
260 dst_reg_offset[scan_inst->dst.offset / REG_SIZE] * REG_SIZE; in register_coalesce()
[all …]
Dbrw_vec4.cpp1259 foreach_inst_in_block_reverse_starting_from(vec4_instruction, scan_inst, in opt_register_coalesce()
1261 _scan_inst = scan_inst; in opt_register_coalesce()
1264 scan_inst->dst, scan_inst->size_written)) { in opt_register_coalesce()
1268 if (scan_inst->mlen) in opt_register_coalesce()
1275 if (scan_inst->is_math()) { in opt_register_coalesce()
1287 inst->dst.type != scan_inst->dst.type && in opt_register_coalesce()
1288 !(scan_inst->opcode == BRW_OPCODE_MOV && in opt_register_coalesce()
1289 scan_inst->dst.type == scan_inst->src[0].type)) in opt_register_coalesce()
1296 if (type_sz(inst->src[0].type) != type_sz(scan_inst->src[0].type)) in opt_register_coalesce()
1303 if (scan_inst->size_written != inst->size_written) in opt_register_coalesce()
[all …]
Dbrw_fs.cpp2854 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in compute_to_mrf()
2855 if (regions_overlap(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
2866 if (scan_inst->is_partial_write()) in compute_to_mrf()
2873 if (!region_contained_in(scan_inst->dst, scan_inst->size_written, in compute_to_mrf()
2878 if (scan_inst->mlen) in compute_to_mrf()
2885 if (scan_inst->is_math()) { in compute_to_mrf()
2892 inst->src[0], scan_inst->dst, scan_inst->size_written); in compute_to_mrf()
2901 if (block->start() == scan_inst) in compute_to_mrf()
2908 for (int i = 0; i < scan_inst->sources; i++) { in compute_to_mrf()
2909 if (regions_overlap(scan_inst->src[i], scan_inst->size_read(i), in compute_to_mrf()
[all …]