i965: Do our lowering passes before the loop of optimization.
authorEric Anholt <eric@anholt.net>
Fri, 11 Mar 2011 22:50:17 +0000 (14:50 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 15 Mar 2011 17:14:52 +0000 (10:14 -0700)
commitb60651a17ba85af14e9d7b9a1398e065adb58665
treeda0e3ba4cbdb7e4723aa0b84113f816af3e34f7c
parentc75427f4c8767e131e5fb3de44fbc9d904cb992d
i965: Do our lowering passes before the loop of optimization.

The optimization loop won't reinsert noise instructions or quadop
vectors, so we were traversing the tree for nothing.  Lowering vector
indexing was in the loop after do_common_optimization() to avoid the
work if it ended up that the index was actually constant, but that has
been called already in the core.
src/mesa/drivers/dri/i965/brw_fs.cpp