diff options
author | Brian Paul <[email protected]> | 2015-04-14 10:54:34 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-04-15 16:30:49 -0600 |
commit | e1d095053b2b50109f77fd9eb524e8e1c7d025af (patch) | |
tree | 4a1aae8b6c0829df1e552502211a191ab77769a9 | |
parent | 011cad806a6e42caecfef0e9fc77c6db0333dcfe (diff) |
st/mesa: log shaders, GLSL info log with _mesa_log()
As with previous patch.
Reviewed-by: José Fonseca <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index c05a4563e63..04258a1851c 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5532,14 +5532,12 @@ get_mesa_program(struct gl_context *ctx, v->emit(NULL, TGSI_OPCODE_END); if (ctx->_Shader->Flags & GLSL_DUMP) { - printf("\n"); - printf("GLSL IR for linked %s program %d:\n", + _mesa_log("\n"); + _mesa_log("GLSL IR for linked %s program %d:\n", _mesa_shader_stage_to_string(shader->Stage), shader_program->Name); - _mesa_print_ir(stdout, shader->ir, NULL); - printf("\n"); - printf("\n"); - fflush(stdout); + _mesa_print_ir(_mesa_get_log_file(), shader->ir, NULL); + _mesa_log("\n\n"); } prog->Instructions = NULL; |