r300: Debug messages are written to stderr, so fflush that
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
This commit is contained in:
@@ -106,7 +106,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
|
|||||||
if (c->Base.Debug) {
|
if (c->Base.Debug) {
|
||||||
_mesa_printf("Fragment Program: After native rewrite:\n");
|
_mesa_printf("Fragment Program: After native rewrite:\n");
|
||||||
rc_print_program(&c->Base.Program);
|
rc_print_program(&c->Base.Program);
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->is_r500) {
|
if (c->is_r500) {
|
||||||
@@ -128,7 +128,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
|
|||||||
if (c->Base.Debug) {
|
if (c->Base.Debug) {
|
||||||
_mesa_printf("Compiler: after NqSSA-DCE:\n");
|
_mesa_printf("Compiler: after NqSSA-DCE:\n");
|
||||||
rc_print_program(&c->Base.Program);
|
rc_print_program(&c->Base.Program);
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->is_r500) {
|
if (c->is_r500) {
|
||||||
|
@@ -603,7 +603,7 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler)
|
|||||||
if (compiler->Base.Debug) {
|
if (compiler->Base.Debug) {
|
||||||
fprintf(stderr, "Vertex program after native rewrite:\n");
|
fprintf(stderr, "Vertex program after native rewrite:\n");
|
||||||
rc_print_program(&compiler->Base.Program);
|
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) {
|
if (compiler->Base.Debug) {
|
||||||
fprintf(stderr, "Vertex program after source conflict resolve:\n");
|
fprintf(stderr, "Vertex program after source conflict resolve:\n");
|
||||||
rc_print_program(&compiler->Base.Program);
|
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) {
|
if (compiler->Base.Debug) {
|
||||||
fprintf(stderr, "Vertex program after NQSSADCE:\n");
|
fprintf(stderr, "Vertex program after NQSSADCE:\n");
|
||||||
rc_print_program(&compiler->Base.Program);
|
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;
|
compiler->code->OutputsWritten = compiler->Base.Program.OutputsWritten;
|
||||||
|
|
||||||
if (compiler->Base.Debug) {
|
if (compiler->Base.Debug) {
|
||||||
printf("Final vertex program code:\n");
|
fprintf(stderr, "Final vertex program code:\n");
|
||||||
r300_vertex_program_dump(compiler->code);
|
r300_vertex_program_dump(compiler->code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -549,7 +549,7 @@ static void emit_all_tex(struct pair_state *s)
|
|||||||
if (s->Compiler->Base.Debug) {
|
if (s->Compiler->Base.Debug) {
|
||||||
_mesa_printf(" ");
|
_mesa_printf(" ");
|
||||||
_mesa_print_instruction(inst);
|
_mesa_print_instruction(inst);
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct radeon_pair_texture_instruction rpti;
|
struct radeon_pair_texture_instruction rpti;
|
||||||
|
@@ -212,10 +212,10 @@ static void translate_fragment_program(GLcontext *ctx, struct r300_fragment_prog
|
|||||||
compiler.AllocateHwInputs = &allocate_hw_inputs;
|
compiler.AllocateHwInputs = &allocate_hw_inputs;
|
||||||
|
|
||||||
if (compiler.Base.Debug) {
|
if (compiler.Base.Debug) {
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
_mesa_printf("Fragment Program: Initial program:\n");
|
_mesa_printf("Fragment Program: Initial program:\n");
|
||||||
_mesa_print_program(&cont->Base.Base);
|
_mesa_print_program(&cont->Base.Base);
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc_mesa_to_rc_program(&compiler.Base, &cont->Base.Base);
|
rc_mesa_to_rc_program(&compiler.Base, &cont->Base.Base);
|
||||||
|
@@ -225,7 +225,7 @@ static struct r300_vertex_program *build_program(GLcontext *ctx,
|
|||||||
if (compiler.Base.Debug) {
|
if (compiler.Base.Debug) {
|
||||||
fprintf(stderr, "Initial vertex program:\n");
|
fprintf(stderr, "Initial vertex program:\n");
|
||||||
_mesa_print_program(&vp->Base->Base);
|
_mesa_print_program(&vp->Base->Base);
|
||||||
fflush(stdout);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesa_vp->IsPositionInvariant) {
|
if (mesa_vp->IsPositionInvariant) {
|
||||||
|
Reference in New Issue
Block a user