Mesa (master): i965/fs: Print reg and reg_offset separately for ATTR files.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Oct 1 18:05:01 UTC 2015


Module: Mesa
Branch: master
Commit: 604ce8253ae796ecf9763f1612e2fff25591cb07
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=604ce8253ae796ecf9763f1612e2fff25591cb07

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Aug 25 16:09:46 2015 -0700

i965/fs: Print reg and reg_offset separately for ATTR files.

Reading this output was really confusing.  reg represents attribute
slots; reg_offset is the x/y/z/w component (0..3) within a vec4 slot.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 64215ae..b269ade 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -4517,7 +4517,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
          fprintf(file, "***m%d***", inst->src[i].reg);
          break;
       case ATTR:
-         fprintf(file, "attr%d", inst->src[i].reg + inst->src[i].reg_offset);
+         fprintf(file, "attr%d+%d", inst->src[i].reg, inst->src[i].reg_offset);
          break;
       case UNIFORM:
          fprintf(file, "u%d", inst->src[i].reg + inst->src[i].reg_offset);




More information about the mesa-commit mailing list