Lines Matching refs:scan_inst
1294 foreach_inst_in_block_reverse_starting_from(vec4_instruction, scan_inst, in opt_register_coalesce()
1296 _scan_inst = scan_inst; in opt_register_coalesce()
1299 scan_inst->dst, scan_inst->size_written)) { in opt_register_coalesce()
1303 if (scan_inst->mlen) in opt_register_coalesce()
1310 if (scan_inst->is_math()) { in opt_register_coalesce()
1322 if (scan_inst->opcode == VS_OPCODE_UNPACK_FLAGS_SIMD4X2) in opt_register_coalesce()
1331 inst->dst.type != scan_inst->dst.type && in opt_register_coalesce()
1332 !(scan_inst->opcode == BRW_OPCODE_MOV && in opt_register_coalesce()
1333 scan_inst->dst.type == scan_inst->src[0].type)) in opt_register_coalesce()
1340 if (type_sz(inst->src[0].type) != type_sz(scan_inst->src[0].type)) in opt_register_coalesce()
1347 if (scan_inst->size_written != inst->size_written) in opt_register_coalesce()
1351 if (!scan_inst->can_reswizzle(devinfo, inst->dst.writemask, in opt_register_coalesce()
1361 if (DIV_ROUND_UP(scan_inst->size_written, in opt_register_coalesce()
1362 type_sz(scan_inst->dst.type)) > 8 || in opt_register_coalesce()
1363 scan_inst->dst.offset != inst->src[0].offset) in opt_register_coalesce()
1367 if (!scan_inst->predicate) in opt_register_coalesce()
1368 chans_remaining &= ~scan_inst->dst.writemask; in opt_register_coalesce()
1382 scan_inst->src[i], scan_inst->size_read(i))) in opt_register_coalesce()
1392 scan_inst->dst, scan_inst->size_written) && in opt_register_coalesce()
1393 (inst->dst.writemask & scan_inst->dst.writemask) != 0) { in opt_register_coalesce()
1401 if (to_mrf && scan_inst->mlen > 0) { in opt_register_coalesce()
1402 unsigned start = scan_inst->base_mrf; in opt_register_coalesce()
1403 unsigned end = scan_inst->base_mrf + scan_inst->mlen; in opt_register_coalesce()
1411 scan_inst->src[i], scan_inst->size_read(i))) in opt_register_coalesce()
1425 vec4_instruction *scan_inst = _scan_inst; in opt_register_coalesce() local
1426 while (scan_inst != inst) { in opt_register_coalesce()
1427 if (scan_inst->dst.file == VGRF && in opt_register_coalesce()
1428 scan_inst->dst.nr == inst->src[0].nr && in opt_register_coalesce()
1429 scan_inst->dst.offset == inst->src[0].offset) { in opt_register_coalesce()
1430 scan_inst->reswizzle(inst->dst.writemask, in opt_register_coalesce()
1432 scan_inst->dst.file = inst->dst.file; in opt_register_coalesce()
1433 scan_inst->dst.nr = inst->dst.nr; in opt_register_coalesce()
1434 scan_inst->dst.offset = inst->dst.offset; in opt_register_coalesce()
1436 inst->dst.type != scan_inst->dst.type) { in opt_register_coalesce()
1442 scan_inst->dst.type = inst->dst.type; in opt_register_coalesce()
1443 scan_inst->src[0].type = inst->src[0].type; in opt_register_coalesce()
1445 scan_inst->saturate |= inst->saturate; in opt_register_coalesce()
1447 scan_inst = (vec4_instruction *)scan_inst->next; in opt_register_coalesce()