nir: Call fflush() at the end of nir_print_shader()
authorMatt Turner <mattst88@gmail.com>
Mon, 26 Nov 2018 19:29:41 +0000 (11:29 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 28 Nov 2018 06:29:53 +0000 (22:29 -0800)
commit1a210268b85fc4e4f3896d41cd889a9f88455542
tree265f266b60bcd9ba0123d8d59e07155f660ef27c
parente113b21cb77976eb527373b50c03235448a83f51
nir: Call fflush() at the end of nir_print_shader()

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.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/nir/nir_print.c