[Mesa-dev] [PATCH] i965: ir: dump floats as %-g rather than %f, so we can see denormals
Ben Widawsky
ben at bwidawsk.net
Thu Feb 11 06:19:45 UTC 2016
On Thu, Feb 11, 2016 at 07:03:56PM +1300, Chris Forbes wrote:
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
After offline discussion with Chris:
Reviewed-by: Ben Widawsky <benjamin.widawsky at intel.com>
Though in fairness, I don't use this as much as others, so it might be nice to
have someone chime in who is absolutely dependent on dump_instructions.
> ---
> src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 41a3f81..8734560 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -4726,7 +4726,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:
> --
> 2.7.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list