Re: [Mesa-dev] [PATCH] nir: Call fflush() at the end of nir_print_shader()

2018-11-27 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/27/18 10:08 AM, Matt Turner wrote: We normally call with stderr which is unbuffered, so this won't affect that, but it does let me call nir_print_shader(nir, fopen("log", "w+")) from gdb and actually get the whole shader in my file. --- src/compiler/nir/nir_pri

[Mesa-dev] [PATCH] nir: Call fflush() at the end of nir_print_shader()

2018-11-27 Thread Matt Turner
We normally call with stderr which is unbuffered, so this won't affect that, but it does let me call nir_print_shader(nir, fopen("log", "w+")) from gdb and actually get the whole shader in my file. --- src/compiler/nir/nir_print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/ni