diff options
author | Eric Anholt <[email protected]> | 2013-12-22 23:29:31 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-22 19:23:21 -0800 |
commit | a76e5dce4fc8d50f8699c108833f24e80167d706 (patch) | |
tree | 1518cbcd4155eeff04dea015ec5f8f5837bf0d04 /src/mesa/drivers/dri/i965/brw_shader.cpp | |
parent | 1e3bd9f9a5af90295788c5d71ea27c61eb7bd984 (diff) |
i965: Move compiler debugging output to stderr.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 48ad8ac12d6..643c140aa7c 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -251,12 +251,12 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) _mesa_reference_program(ctx, &prog, NULL); if (ctx->Shader.Flags & GLSL_DUMP) { - printf("\n"); - printf("GLSL IR for linked %s program %d:\n", - _mesa_shader_stage_to_string(shader->base.Stage), - shProg->Name); - _mesa_print_ir(stdout, shader->base.ir, NULL); - printf("\n"); + fprintf(stderr, "\n"); + fprintf(stderr, "GLSL IR for linked %s program %d:\n", + _mesa_shader_stage_to_string(shader->base.Stage), + shProg->Name); + _mesa_print_ir(stderr, shader->base.ir, NULL); + fprintf(stderr, "\n"); } } @@ -266,12 +266,11 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) if (!sh) continue; - printf("GLSL %s shader %d source for linked program %d:\n", - _mesa_shader_stage_to_string(sh->Stage), - i, - shProg->Name); - printf("%s", sh->Source); - printf("\n"); + fprintf(stderr, "GLSL %s shader %d source for linked program %d:\n", + _mesa_shader_stage_to_string(sh->Stage), + i, shProg->Name); + fprintf(stderr, "%s", sh->Source); + fprintf(stderr, "\n"); } } @@ -668,7 +667,7 @@ backend_visitor::dump_instructions() int ip = 0; foreach_list(node, &this->instructions) { backend_instruction *inst = (backend_instruction *)node; - printf("%d: ", ip++); + fprintf(stderr, "%d: ", ip++); dump_instruction(inst); } } |