mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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>
This commit is contained in:
parent
e113b21cb7
commit
1a210268b8
1 changed files with 1 additions and 0 deletions
|
|
@ -1312,6 +1312,7 @@ void
|
|||
nir_print_shader(nir_shader *shader, FILE *fp)
|
||||
{
|
||||
nir_print_shader_annotated(shader, fp, NULL);
|
||||
fflush(fp);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue