i965/fs: Optimize gl_FrontFacing calculation on Gen4/5.
authorMatt Turner <mattst88@gmail.com>
Sun, 10 Aug 2014 17:28:34 +0000 (10:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 19 Aug 2014 01:35:56 +0000 (18:35 -0700)
commit19c6617adfec618889bb52d5398b8ac3d5969c18
tree6757766670271ae4644ebfa776a7c824d13d057b
parentd1c43ed48777115072809fdb394bccae88ffe83c
i965/fs: Optimize gl_FrontFacing calculation on Gen4/5.

Doesn't use fewer instructions, but it does avoid writing the flag
register and if we want to switch the representation of true for Gen4/5
in the future, we can just delete the AND instruction.
src/mesa/drivers/dri/i965/brw_fs.cpp