mesa: Fix up the remove_dead_code pass to operate on a channel basis.
authorEric Anholt <eric@anholt.net>
Fri, 12 Jun 2009 19:37:25 +0000 (12:37 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 6 Nov 2009 21:16:49 +0000 (13:16 -0800)
commitee0a9e6e10060287747d9dd4afead3cbbb168e09
treee9f5b56bb417cbe2f58087ca8ffed148b50302d3
parent3105f3aa88e4b59eed3c7f175af77fbdb4af5924
mesa: Fix up the remove_dead_code pass to operate on a channel basis.

This cleans up a bunch of instructions in GLSL programs to have limited
writemasks, which would translate to wins in shaders that hit the i965
brw_wm_glsl.c path by depending less on in-driver optimizations.  It will
also help hit other optimization passes I'm looking at.
src/mesa/shader/prog_optimize.c