glsl: Remove ir_print_visitor.h includes and usage
authorEric Anholt <eric@anholt.net>
Wed, 12 Jun 2013 23:21:28 +0000 (16:21 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Jun 2013 17:04:29 +0000 (10:04 -0700)
commit426ca34b7a2c3b9edfc0189daece8de3aff80627
tree8a401b75205b058c6d5b4c3ea17ecd7fdd5007ce
parent2b049aa53e12accf2c5be88d1d9b66dbcab47bfb
glsl: Remove ir_print_visitor.h includes and usage

We have ir->print() to do the old declaration of a visitor and having the
IR accept the visitor (yuck!).  And now you can call _mesa_print_ir()
safely anywhere that you know what an ir_instruction is.

A couple of missing printf("\n")s are added in error paths -- when an
expression is handed to the visitor, it doesn't print '\n' (since it might
be a step in printing a whole expression tree).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
18 files changed:
src/glsl/ir_rvalue_visitor.cpp
src/glsl/main.cpp
src/glsl/opt_array_splitting.cpp
src/glsl/opt_noop_swizzle.cpp
src/glsl/opt_structure_splitting.cpp
src/glsl/test_optpass.cpp
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/main/ff_fragment_shader.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp