nvc0/ir: Emit OP_SHFL
authorBoyan Ding <boyan.j.ding@gmail.com>
Mon, 10 Apr 2017 14:55:59 +0000 (22:55 +0800)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 13 Apr 2017 06:24:52 +0000 (02:24 -0400)
commitc32e150008dbae1da2a69031056ece7f7f7febb2
treef1c484feb6776a357b0276066ac9aec2aa13c83c
parentd941ef38292dd86469a792c8359e0fc8c4fa154c
nvc0/ir: Emit OP_SHFL

v2: (Samuel Pitoiset)
Add an assertion to check if the target is Kepler
Make sure that asImm() is not NULL

v3: (Ilia Mirkin)
Check the range of immediate value of OP_SHFL
Use the new setPDSTL API

Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp