Mesa (master): i965/fs: Remove extraneous newline in dump_instruction() for CMP.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 12 20:14:00 UTC 2013


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Aug  4 22:35:01 2013 -0700

i965/fs: Remove extraneous newline in dump_instruction() for CMP.

This resulted in printouts like:

   246: cmp.cmod.f0.0
    ???, vgrf152, 0.000000f, (null),

With this patch, CMP is properly printed on one line.

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index f404b0b..c2d89ef 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2704,7 +2704,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
           (brw->gen < 5 || (inst->opcode != BRW_OPCODE_SEL &&
                               inst->opcode != BRW_OPCODE_IF &&
                               inst->opcode != BRW_OPCODE_WHILE))) {
-         printf(".f0.%d\n", inst->flag_subreg);
+         printf(".f0.%d", inst->flag_subreg);
       }
    }
    printf(" ");




More information about the mesa-commit mailing list