mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
r300: flush stdout to get consistent debugging info
This commit is contained in:
parent
7ff2dcbbdc
commit
22c0652c38
2 changed files with 5 additions and 0 deletions
|
|
@ -214,8 +214,10 @@ void r300TranslateFragmentShader(GLcontext *ctx, struct gl_fragment_program *fp)
|
|||
compiler.program = _mesa_clone_program(ctx, &fp->Base);
|
||||
|
||||
if (RADEON_DEBUG & DEBUG_PIXEL) {
|
||||
fflush(stdout);
|
||||
_mesa_printf("Fragment Program: Initial program:\n");
|
||||
_mesa_print_program(compiler.program);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
insert_WPOS_trailer(&compiler);
|
||||
|
|
@ -240,6 +242,7 @@ void r300TranslateFragmentShader(GLcontext *ctx, struct gl_fragment_program *fp)
|
|||
if (RADEON_DEBUG & DEBUG_PIXEL) {
|
||||
_mesa_printf("Fragment Program: After native rewrite:\n");
|
||||
_mesa_print_program(compiler.program);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
if (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) {
|
||||
|
|
@ -263,6 +266,7 @@ void r300TranslateFragmentShader(GLcontext *ctx, struct gl_fragment_program *fp)
|
|||
if (RADEON_DEBUG & DEBUG_PIXEL) {
|
||||
_mesa_printf("Compiler: after NqSSA-DCE:\n");
|
||||
_mesa_print_program(compiler.program);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
if (!r300->vtbl.FragmentProgramEmit(&compiler))
|
||||
|
|
|
|||
|
|
@ -609,6 +609,7 @@ static void emit_all_tex(struct pair_state *s)
|
|||
if (s->Debug) {
|
||||
_mesa_printf(" ");
|
||||
_mesa_print_instruction(inst);
|
||||
fflush(stdout);
|
||||
}
|
||||
s->Error = s->Error || !s->Handler->EmitTex(s->UserData, inst);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue