projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
011cad8
)
st/mesa: log shaders, GLSL info log with _mesa_log()
author
Brian Paul
<brianp@vmware.com>
Tue, 14 Apr 2015 16:54:34 +0000
(10:54 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 15 Apr 2015 22:30:49 +0000
(16:30 -0600)
As with previous patch.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index c05a4563e636275142b91b01df7db3ece8c280fd..04258a1851c713bc415c41b000c6906380270572 100644
(file)
--- 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;