i965/fs: Do a general SEND dependency workaround for the original 965.
authorEric Anholt <eric@anholt.net>
Tue, 5 Feb 2013 23:46:22 +0000 (15:46 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 15 Feb 2013 14:17:46 +0000 (06:17 -0800)
commitc37992c54d753e732783f712dea2d483450371dd
treede885579f8fbbdc3c310d5927b136f874e7af51f
parent6dbe94c12cd1b3b912a7083055178e0dfd7372af
i965/fs: Do a general SEND dependency workaround for the original 965.

We'd been ad-hoc inserting instructions in some SEND messages with no
knowledge of when it was required (so extra instructions), but not all SENDs
(so not often enough).  This should do much better than that, though it's
still flow-control-ignorant.

v2: Use BRW_MAX_MRF instead of magic numbers.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58960
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
NOTE: Candidate for the stable branches.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_emit.cpp