i965/fs: Add a couple more algebraic cases that help some ARB_fp patterns.
authorEric Anholt <eric@anholt.net>
Thu, 20 Sep 2012 09:06:07 +0000 (11:06 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 8 Oct 2012 15:38:49 +0000 (08:38 -0700)
commit9cfc00a84c7a7176a385808e0b92705e79955505
treec839ca376bca6c2cb3ae3aeeb905755d9c31f965
parentd81d7a4b65565a873338f54b0a17795d91ccc625
i965/fs: Add a couple more algebraic cases that help some ARB_fp patterns.

ARB_fp doesn't go through the GLSL optimizer, and these were things you see
frequently thanks to conditionals being lowered to SLT/SGE and MUL.

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