summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
diff options
context:
space:
mode:
authorNicolai Hähnle <nhaehnle@gmail.com>2009-08-27 17:12:22 +0200
committerNicolai Hähnle <nhaehnle@gmail.com>2009-08-27 18:13:48 +0200
commiteb6e281966f603fff4ec525250b4b22c9f90f98b (patch)
tree6db72195cbcfb60f9bcb4a747f9ad3669f7e9cb8 /src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
parent570d4e375a327787441c2c7c4ae698e8993a5d6b (diff)
r300: Debug messages are written to stderr, so fflush that
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
index 6c1a038689..93a516105e 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
@@ -603,7 +603,7 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler)
if (compiler->Base.Debug) {
fprintf(stderr, "Vertex program after native rewrite:\n");
rc_print_program(&compiler->Base.Program);
- fflush(stdout);
+ fflush(stderr);
}
{
@@ -620,7 +620,7 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler)
if (compiler->Base.Debug) {
fprintf(stderr, "Vertex program after source conflict resolve:\n");
rc_print_program(&compiler->Base.Program);
- fflush(stdout);
+ fflush(stderr);
}
{
@@ -637,7 +637,7 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler)
if (compiler->Base.Debug) {
fprintf(stderr, "Vertex program after NQSSADCE:\n");
rc_print_program(&compiler->Base.Program);
- fflush(stdout);
+ fflush(stderr);
}
}
@@ -649,7 +649,7 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler)
compiler->code->OutputsWritten = compiler->Base.Program.OutputsWritten;
if (compiler->Base.Debug) {
- printf("Final vertex program code:\n");
+ fprintf(stderr, "Final vertex program code:\n");
r300_vertex_program_dump(compiler->code);
}
}