i965/fs: Don't double-emit SEND dependency workarounds at control flow.
authorEric Anholt <eric@anholt.net>
Wed, 20 Mar 2013 00:36:10 +0000 (17:36 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2013 23:17:26 +0000 (16:17 -0700)
commitce316f62efa208b1a43fe81831126fc75c5807c5
tree7bbc55fa891cbfea2166a433808837f1cb5fd823
parent3cf69b228404791cf15231321b6a18b5701be0a6
i965/fs: Don't double-emit SEND dependency workarounds at control flow.

We weren't setting needs_dep[i] in the loops, so we'd continue on to
potentially add the same workaround MOVs to the later basic block
boundaries, too.  We can either set needs_dep[i] to exit through the
normal path, or we can just return since we know we're done.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp