i965: Print argument types in dump_instruction().

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Matt Turner 2013-12-02 13:10:29 -08:00
parent 21e92e74c8
commit 637dda1c30
2 changed files with 10 additions and 2 deletions

View File

@ -2888,7 +2888,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
printf("???");
break;
}
printf(", ");
printf(":%s, ", reg_encoding[inst->dst.type]);
for (int i = 0; i < 3 && inst->src[i].file != BAD_FILE; i++) {
if (inst->src[i].negate)
@ -2968,6 +2968,10 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
if (inst->src[i].abs)
printf("|");
if (inst->src[i].file != IMM) {
printf(":%s", reg_encoding[inst->src[i].type]);
}
if (i < 2 && inst->src[i + 1].file != BAD_FILE)
printf(", ");
}

View File

@ -1163,7 +1163,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
if (inst->dst.writemask & 8)
printf("w");
}
printf(", ");
printf(":%s, ", reg_encoding[inst->dst.type]);
for (int i = 0; i < 3 && inst->src[i].file != BAD_FILE; i++) {
if (inst->src[i].negate)
@ -1251,6 +1251,10 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
if (inst->src[i].abs)
printf("|");
if (inst->src[i].file != IMM) {
printf(":%s", reg_encoding[inst->src[i].type]);
}
if (i < 2 && inst->src[i + 1].file != BAD_FILE)
printf(", ");
}