diff options
author | Matt Turner <[email protected]> | 2013-12-02 13:10:29 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-12-04 20:05:43 -0800 |
commit | 637dda1c307aee921ecc646b75f891deab6585a9 (patch) | |
tree | 551a8886551e69c770f71cbf94f696e3904a07da /src | |
parent | 21e92e74c84e0422a5868736f6cb3a408220a294 (diff) |
i965: Print argument types in dump_instruction().
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c21239f0528..f10f5c0de18 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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(", "); } diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 13f69f1f166..06ae0524c41 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -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(", "); } |