summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/compiler
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2009-08-27 17:12:22 +0200
committerNicolai Hähnle <[email protected]>2009-08-27 18:13:48 +0200
commiteb6e281966f603fff4ec525250b4b22c9f90f98b (patch)
tree6db72195cbcfb60f9bcb4a747f9ad3669f7e9cb8 /src/mesa/drivers/dri/r300/compiler
parent570d4e375a327787441c2c7c4ae698e8993a5d6b (diff)
r300: Debug messages are written to stderr, so fflush that
Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c4
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c8
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
index d39b82be71c..76c3a7ecfd2 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
@@ -106,7 +106,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
if (c->Base.Debug) {
_mesa_printf("Fragment Program: After native rewrite:\n");
rc_print_program(&c->Base.Program);
- fflush(stdout);
+ fflush(stderr);
}
if (c->is_r500) {
@@ -128,7 +128,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
if (c->Base.Debug) {
_mesa_printf("Compiler: after NqSSA-DCE:\n");
rc_print_program(&c->Base.Program);
- fflush(stdout);
+ fflush(stderr);
}
if (c->is_r500) {
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
index 6c1a0386891..93a516105e6 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);
}
}
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c b/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c
index 48616ac461c..4c26db5d244 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c
@@ -549,7 +549,7 @@ static void emit_all_tex(struct pair_state *s)
if (s->Compiler->Base.Debug) {
_mesa_printf(" ");
_mesa_print_instruction(inst);
- fflush(stdout);
+ fflush(stderr);
}
struct radeon_pair_texture_instruction rpti;