nir: Add lowering from ibitfield_extract/ubitfield_extract to shifts.
authorEric Anholt <eric@anholt.net>
Wed, 2 May 2018 20:02:21 +0000 (13:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jun 2018 20:44:28 +0000 (13:44 -0700)
commitaf88acf4c4e2e14161872752fb9fb4683f9c8845
treef4485cbe4711c48f86fccd5bfba9fb5c81022367
parent74618ccbcab6d785152c2840525d5bef08ed0696
nir: Add lowering from ibitfield_extract/ubitfield_extract to shifts.

V3D doesn't have opcodes for ibfe/ubfe, so we need to lower similarly to
glsl/lower_instructions.cpp.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py