summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-08-13 14:42:40 -0700
committerJason Ekstrand <[email protected]>2014-09-30 10:29:14 -0700
commit4232a776a699d80601496802ab2d817374a31f56 (patch)
treeb4204343d944b20f115a36e22c2ce36f325750ed
parent5390ca8ce93028d2d6016d4817e92427d09e4a21 (diff)
i965/fs: Handle printing of registers better.
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index cd90989c8dd..5d7e8670532 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2921,7 +2921,9 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
switch (inst->dst.file) {
case GRF:
fprintf(file, "vgrf%d", inst->dst.reg);
- if (virtual_grf_sizes[inst->dst.reg] != 1 ||
+ if (inst->dst.width != dispatch_width)
+ fprintf(file, "@%d", inst->dst.width);
+ if (virtual_grf_sizes[inst->dst.reg] != inst->dst.width / 8 ||
inst->dst.subreg_offset)
fprintf(file, "+%d.%d",
inst->dst.reg_offset, inst->dst.subreg_offset);
@@ -2976,7 +2978,9 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
switch (inst->src[i].file) {
case GRF:
fprintf(file, "vgrf%d", inst->src[i].reg);
- if (virtual_grf_sizes[inst->src[i].reg] != 1 ||
+ if (inst->src[i].width != dispatch_width)
+ fprintf(file, "@%d", inst->src[i].width);
+ if (virtual_grf_sizes[inst->src[i].reg] != inst->src[i].width / 8 ||
inst->src[i].subreg_offset)
fprintf(file, "+%d.%d", inst->src[i].reg_offset,
inst->src[i].subreg_offset);