switch (inst->dst.file) {
case GRF:
printf("vgrf%d", inst->dst.reg);
- if (inst->dst.reg_offset)
+ if (virtual_grf_sizes[inst->dst.reg] != 1)
printf("+%d", inst->dst.reg_offset);
break;
case MRF:
switch (inst->src[i].file) {
case GRF:
printf("vgrf%d", inst->src[i].reg);
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf("+%d", inst->src[i].reg_offset);
break;
case MRF:
break;
case UNIFORM:
printf("u%d", inst->src[i].reg);
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf(".%d", inst->src[i].reg_offset);
break;
case BAD_FILE:
break;
}
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf(".%d", inst->src[i].reg_offset);
if (inst->src[i].file != IMM) {