[Mesa-dev] [PATCH 05/41] i965/fs: Handle printing of registers better.

Jason Ekstrand jason at jlekstrand.net
Sat Sep 20 10:22:54 PDT 2014


---
 src/mesa/drivers/dri/i965/brw_fs.cpp | 8 ++++++--
 1 file 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 4443cc6..bb7bc6c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2917,7 +2917,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);
@@ -2972,7 +2974,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);
-- 
2.1.0



More information about the mesa-dev mailing list