From: Jason Ekstrand Date: Tue, 16 Sep 2014 22:56:47 +0000 (-0700) Subject: i965/fs: Print BAD_FILE registers in dump_instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72a3780f26951c405c35a1ae51598f7b0a65b92f;p=mesa.git i965/fs: Print BAD_FILE registers in dump_instruction Sometimes these show up in LOAD_PAYLOAD instructions and it's nice to be able to see them. Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index eebc31c9564..e93010b59f5 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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)