i965: ir: dump floats as %-g rather than %f, so we can see denormals
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 11 Feb 2016 06:03:56 +0000 (19:03 +1300)
committerBen Widawsky <benjamin.widawsky@intel.com>
Thu, 11 Feb 2016 20:10:29 +0000 (12:10 -0800)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 0ce7ed1562bdc5137cf2fd7328a973f39d19b6c9..7620858e36ef47192bc01125ee5a6835a6489f04 100644 (file)
@@ -4739,7 +4739,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
       case IMM:
          switch (inst->src[i].type) {
          case BRW_REGISTER_TYPE_F:
-            fprintf(file, "%ff", inst->src[i].f);
+            fprintf(file, "%-gf", inst->src[i].f);
             break;
          case BRW_REGISTER_TYPE_W:
          case BRW_REGISTER_TYPE_D: