OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e113b21
)
nir: Call fflush() at the end of nir_print_shader()
author
Matt Turner
<mattst88@gmail.com>
Mon, 26 Nov 2018 19:29:41 +0000
(11:29 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 28 Nov 2018 06:29:53 +0000
(22:29 -0800)
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
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_print.c
b/src/compiler/nir/nir_print.c
index
e20c28f
..
8077a29
100644
(file)
--- a/
src/compiler/nir/nir_print.c
+++ b/
src/compiler/nir/nir_print.c
@@
-1312,6
+1312,7
@@
void
nir_print_shader(nir_shader *shader, FILE *fp)
{
nir_print_shader_annotated(shader, fp, NULL);
+ fflush(fp);
}
void