i965/vs: Add support for bit instructions.
authorMatt Turner <mattst88@gmail.com>
Thu, 18 Apr 2013 01:57:58 +0000 (18:57 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 6 May 2013 17:17:14 +0000 (10:17 -0700)
commitacd2bccd852f1e4edbac2e57dd47139908e79b5d
tree6a4973003f0b4ff64a2fea2bd8859907664565e1
parent1f0f26d60c148e360908af34130c4e00dba8f3df
i965/vs: Add support for bit instructions.

v2: Rebase on LRP addition.
    Use fix_3src_operand() when emitting BFE and BFI2.
    Add BFE and BFI2 to is_3src_inst check in
      brw_vec4_copy_propagation.cpp.
    Subtract result of FBH from 31 (unless an error) to convert
      MSB counts to LSB counts

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp