i965/fs: Allow propagation of instructions with saturate flag to sel
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Thu, 3 Jul 2014 11:14:39 +0000 (04:14 -0700)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sun, 31 Aug 2014 18:04:09 +0000 (21:04 +0300)
commit40aeb558ce8a7ffaaa6f81be16419b9b238c16d8
treec0aff97085fb51c1fb207012c390d8613c4e259d
parent0e2ba3ee827f77af0b1f322d95c650f6f7f4da88
i965/fs: Allow propagation of instructions with saturate flag to sel

When sel conditon is bounded within 0 and 1.0. This allows code as:
mov.sat a b
sel.ge  dst a 0.25F

To be propagated as:
sel.ge.sat dst b 0.25F

v3: Syntax clarifications in inst->saturate assignment (Matt Turner)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp