i965/fs: Handle printing of registers better.
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Aug 2014 21:42:40 +0000 (14:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index cd90989c8dd027c083de9aee16c831462c3e14da..5d7e8670532f3b728236a32449764f5e66a1e9f8 100644 (file)
@@ -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);