i965: Recognize saturates and turn them into a saturated mov.
authorEric Anholt <eric@anholt.net>
Fri, 19 Nov 2010 02:36:06 +0000 (10:36 +0800)
committerEric Anholt <eric@anholt.net>
Sat, 20 Nov 2010 03:09:31 +0000 (19:09 -0800)
commit19631fab35ca4d5ca64d606922f3f20774b27645
tree27a248c09a675598f67f377bd03c7dc93197c9ec
parent02939d643f878ce3a3dcd2e7b2c6f035c64ecda7
i965: Recognize saturates and turn them into a saturated mov.

On pre-gen6, this turns 4 instructions into 1.  We could still do
better by folding the saturate into the instruction generating the
value if nobody else uses it, but that should be a separate pass.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h