Lines Matching defs:scan_inst
1014 foreach_inst_in_block_reverse_starting_from(vec4_instruction, scan_inst,
1016 _scan_inst = scan_inst;
1019 scan_inst->dst, scan_inst->size_written)) {
1023 if (scan_inst->mlen)
1030 if (scan_inst->is_math()) {
1042 if (scan_inst->opcode == VS_OPCODE_UNPACK_FLAGS_SIMD4X2)
1047 * But if scan_inst is a non type-converting 'mov', we can fix
1051 inst->dst.type != scan_inst->dst.type &&
1052 !(scan_inst->opcode == BRW_OPCODE_MOV &&
1053 scan_inst->dst.type == scan_inst->src[0].type))
1060 if (type_sz(inst->src[0].type) != type_sz(scan_inst->src[0].type))
1063 /* Check that scan_inst writes the same amount of data as the
1067 if (scan_inst->size_written != inst->size_written)
1071 if (!scan_inst->can_reswizzle(devinfo, inst->dst.writemask,
1081 if (DIV_ROUND_UP(scan_inst->size_written,
1082 type_sz(scan_inst->dst.type)) > 8 ||
1083 scan_inst->dst.offset != inst->src[0].offset)
1087 if (!scan_inst->predicate)
1088 chans_remaining &= ~scan_inst->dst.writemask;
1102 scan_inst->src[i], scan_inst->size_read(i)))
1112 scan_inst->dst, scan_inst->size_written) &&
1113 (inst->dst.writemask & scan_inst->dst.writemask) != 0) {
1121 if (to_mrf && scan_inst->mlen > 0) {
1122 unsigned start = scan_inst->base_mrf;
1123 unsigned end = scan_inst->base_mrf + scan_inst->mlen;
1131 scan_inst->src[i], scan_inst->size_read(i)))
1141 * a scan_inst pointing to the earliest instruction involved in
1145 vec4_instruction *scan_inst = _scan_inst;
1146 while (scan_inst != inst) {
1147 if (scan_inst->dst.file == VGRF &&
1148 scan_inst->dst.nr == inst->src[0].nr &&
1149 scan_inst->dst.offset == inst->src[0].offset) {
1150 scan_inst->reswizzle(inst->dst.writemask,
1152 scan_inst->dst.file = inst->dst.file;
1153 scan_inst->dst.nr = inst->dst.nr;
1154 scan_inst->dst.offset = inst->dst.offset;
1156 inst->dst.type != scan_inst->dst.type) {
1157 /* If we have reached this point, scan_inst is a non
1162 scan_inst->dst.type = inst->dst.type;
1163 scan_inst->src[0].type = inst->src[0].type;
1165 scan_inst->saturate |= inst->saturate;
1167 scan_inst = (vec4_instruction *)scan_inst->next;