i965: Print argument types in dump_instruction().
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Dec 2013 21:10:29 +0000 (13:10 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Dec 2013 04:05:43 +0000 (20:05 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp

index c21239f0528ddff1ce89e1a8e6bd0aea24d3a794..f10f5c0de184b0cb66a939dc72c9fac510107647 100644 (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(", ");
    }
index 13f69f1f166f74bee1602dd11f570b8ac726ec95..06ae0524c41eeb5db61f8d672b8126b84fb0064e 100644 (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(", ");
    }