[Mesa-dev] [PATCH 11/12] i965/fs: Print BAD_FILE registers in dump_instruction

Jason Ekstrand jason at jlekstrand.net
Fri Sep 19 13:10:29 PDT 2014


Sometimes these show up in LOAD_PAYLOAD instructions and it's nice to be
able to see them.

Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.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 a41cb4f..a0b7c6a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2896,7 +2896,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
    }
    fprintf(file, ":%s, ", brw_reg_type_letters(inst->dst.type));
 
-   for (int i = 0; i < inst->sources && inst->src[i].file != BAD_FILE; i++) {
+   for (int i = 0; i < inst->sources; i++) {
       if (inst->src[i].negate)
          fprintf(file, "-");
       if (inst->src[i].abs)
-- 
2.1.0



More information about the mesa-dev mailing list