nvc0/ir: detect AND/SHR pairs and convert into EXTBF
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 19 Aug 2015 01:07:33 +0000 (21:07 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 20 Aug 2015 21:58:30 +0000 (17:58 -0400)
commit51499bb5ff5626b893383545c494c7f808763404
tree6fd8063c7097e7a1a6c2f07b8f20516bca2ebef1
parent2a4af36517333ef61d5f7ca2264fec3f49ee3662
nvc0/ir: detect AND/SHR pairs and convert into EXTBF

Some shaders appear to extract bits using shift/and combos. Detect
(some) of those and convert to EXTBF instead.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp