i965/fs: Use the embedded compare in SEL on gen6+.
authorEric Anholt <eric@anholt.net>
Thu, 12 May 2011 16:03:24 +0000 (09:03 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 May 2011 19:23:50 +0000 (12:23 -0700)
commitc331b3123ecda127919458e24848b7c1596525ac
treeed09f17fb8c7eaee4524997812fe47d69da1f25b
parent089aa313b40b495e9d9a9d209fe3851d43807f6e
i965/fs: Use the embedded compare in SEL on gen6+.

This avoids the extra CMP and the predication on SEL, so in addition
to one less instruction, it makes scheduling less constrained.

Improves glbenchmark Egypt performance 0.6% +/- 0.2% (n=3).  Reduces
FS instruction count across affected shaders in shader-db by 1.3%
without regressing any.

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