i965: Dump linked shaders on MESA_GLSL=dump.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Sep 2012 20:27:58 +0000 (13:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 29 Sep 2012 07:36:45 +0000 (00:36 -0700)
commit33dbac78a8b6094e3b266fbfa0ee0b33bd859a76
tree826c35719ca577cfdcb95a5c7d2c7df366a794cd
parent5cadb3ef7e6c1a67c45b0fdb2b0c2c1a369a97d8
i965: Dump linked shaders on MESA_GLSL=dump.

Often, the original shader IR isn't terribly interesting because a lot
of crucial optimizations haven't been done (such as inlining built-ins).

ir_to_mesa used to print this out for us, but since we don't use it, we
have to do it ourselves.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_shader.cpp