i965/vec4: Allow propagation of instructions with saturate flag to sel
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 4 Jul 2014 11:52:36 +0000 (04:52 -0700)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sun, 31 Aug 2014 18:04:09 +0000 (21:04 +0300)
commit7841a246b93d8d8aeb65df5805c0e9d05567c57e
tree06302961fde0239ca32d1a0349b50fb1e2badb7a
parent40aeb558ce8a7ffaaa6f81be16419b9b238c16d8
i965/vec4: 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
    - Remove extra parenthesis when assigning src_reg value
      from copy_entry (Matt Turner)
v4: - Take channels into consideration when propagating saturated instructions.

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