Reviewed-by: Julien Isorce <jiso...@oblong.com> On 5 April 2017 at 20:03, Edmondo Tommasina <edmondo.tommas...@gmail.com> wrote:
> Flush the HUD value streams to the dump files after every newline. > > v2: check that fopen succeeded (Julien) > > Tested-by: Julien Isorce <jiso...@oblong.com> > --- > src/gallium/auxiliary/hud/hud_context.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/gallium/auxiliary/hud/hud_context.c > b/src/gallium/auxiliary/hud/hud_context.c > index 29ef9eee31..f492c81fe6 100644 > --- a/src/gallium/auxiliary/hud/hud_context.c > +++ b/src/gallium/auxiliary/hud/hud_context.c > @@ -972,6 +972,8 @@ hud_graph_set_dump_file(struct hud_graph *gr) > strcat(dump_file, "/"); > strcat_without_spaces(dump_file, gr->name); > gr->fd = fopen(dump_file, "w+"); > + if (gr->fd) > + setvbuf(gr->fd, NULL, _IOLBF, 0); > free(dump_file); > } > } > -- > 2.11.0 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev