i965/fs: Print BAD_FILE registers in dump_instruction
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Sep 2014 22:56:47 +0000 (15:56 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
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@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index eebc31c95644494e23d6192229e26349f0e4c616..e93010b59f52f21764aeb3f2e0c24de521ca2ae0 100644 (file)
@@ -2900,7 +2900,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)