Mesa (master): mesa/st: Flush stdout after pritingin the GLSL.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Nov 14 14:44:59 UTC 2011


Module: Mesa
Branch: master
Commit: 8f9fc8b9d208cf601d126721709315aa3c1c2024
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f9fc8b9d208cf601d126721709315aa3c1c2024

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Nov 14 14:43:25 2011 +0000

mesa/st: Flush stdout after pritingin the GLSL.

Otherwise it gets all garbled with stderr.

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index b133164..17b6117 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -4991,6 +4991,7 @@ get_mesa_program(struct gl_context *ctx,
       _mesa_print_ir(shader->ir, NULL);
       printf("\n");
       printf("\n");
+      fflush(stdout);
    }
 
    prog->Instructions = NULL;




More information about the mesa-commit mailing list