glsl: Pass stdout to _mesa_print_ir from st_glsl_to_tgsi.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 23 Feb 2014 06:08:55 +0000 (22:08 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 23 Feb 2014 06:10:11 +0000 (22:10 -0800)
Fixes the Gallium build since commit 1e3bd9f9a5af90295788c5d71ea27c.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75389
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 94fa9c8eacd9d8638114ab06ddc9b9b3709f19df..3b348366de1fac497dbed0e0f5b557f0216afa99 100644 (file)
@@ -5141,7 +5141,7 @@ get_mesa_program(struct gl_context *ctx,
       printf("GLSL IR for linked %s program %d:\n",
              _mesa_shader_stage_to_string(shader->Stage),
              shader_program->Name);
-      _mesa_print_ir(shader->ir, NULL);
+      _mesa_print_ir(stdout, shader->ir, NULL);
       printf("\n");
       printf("\n");
       fflush(stdout);