glsl: Add a file argument to the IR printer.
authorEric Anholt <eric@anholt.net>
Fri, 21 Feb 2014 02:00:23 +0000 (18:00 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 23 Feb 2014 03:23:21 +0000 (19:23 -0800)
commit1e3bd9f9a5af90295788c5d71ea27c61eb7bd984
tree04fe9e73cb62284f72031e76741a63b9b8a3d638
parentf28c9208652143b4925bd97ce9823728c34d34a5
glsl: Add a file argument to the IR printer.

While we want to be able to print to stdout for glsl_compiler, for
debugging drivers we want to be able to dump to stderr because that's
where other driver debug (like LIBGL_DEBUG) tends to go, and because some
apps actually close stdout to shut up their own messages (such as the X
Server, or NWN).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_parser_extras.cpp
src/glsl/ir.h
src/glsl/ir_print_visitor.cpp
src/glsl/ir_print_visitor.h
src/glsl/main.cpp
src/glsl/opt_array_splitting.cpp
src/glsl/test_optpass.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/main/shaderapi.c
src/mesa/program/ir_to_mesa.cpp