From: Chris Forbes Date: Thu, 11 Feb 2016 06:03:56 +0000 (+1300) Subject: i965: ir: dump floats as %-g rather than %f, so we can see denormals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2c8b5ece5790825dba951c35e4c5aab003e3217;p=mesa.git i965: ir: dump floats as %-g rather than %f, so we can see denormals Signed-off-by: Chris Forbes Reviewed-by: Ben Widawsky --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 0ce7ed1562b..7620858e36e 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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: