i965/fs: Add support for "if" statements in 16-wide mode on gen6+.
authorEric Anholt <eric@anholt.net>
Tue, 10 May 2011 19:55:12 +0000 (12:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 May 2011 20:57:17 +0000 (13:57 -0700)
commit136eb2bde769713b100351ff96bceb970f068c0a
tree539b829ece242593f809dd4a4b196faf21eed52c
parent27b03926618ddcafabb7b61e652fe6458b017b24
i965/fs: Add support for "if" statements in 16-wide mode on gen6+.

It turns out there's nothing in the hardware preventing this.  It
appears that it ought to work on pre-gen6 as well, but just produces
GPU hangs.

Improves glbenchmark Egypt framerate 4.4% +/- 0.3% (n=3), and Pro by
2.6% +/- 0.6% (n=3).

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