i965: Lower bitfieldInsert.
authorMatt Turner <mattst88@gmail.com>
Thu, 11 Apr 2013 22:49:32 +0000 (15:49 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 6 May 2013 17:17:14 +0000 (10:17 -0700)
commit1d09a8c3cdf02ed2c17f263d120d45e96562a5e1
tree059c3189b92e795fdf4301015d88563916f77502
parentacd2bccd852f1e4edbac2e57dd47139908e79b5d
i965: Lower bitfieldInsert.

v2: Only lower bitfieldInsert to BFM+BFI (and don't lower
    bitfieldExtract at all) since three-source instructions are now
    usable in the vertex shader.
v3: Lower bitfield_insert in the same pass with everything else, since
    it doesn't produce any instructions to be lowered (the other two
    lowering passes that were in a previous iteration of this series
    emitted subtractions which needed to be lowered).

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> [v2]
src/mesa/drivers/dri/i965/brw_shader.cpp