nir: Fix constant evaluation of bfm.
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Jan 2016 20:13:24 +0000 (12:13 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 13 Jan 2016 18:35:12 +0000 (10:35 -0800)
commit92f177386954caced2e7ddca156917cf166f9c23
treef2bdcfe953170f5d35d9fd7a90f1346f586e4c43
parent7dc2e5f94024746ab2e39f77ab778fe3b89c0eb1
nir: Fix constant evaluation of bfm.

NIR's bfm, like Intel/AMD's hardware instructions and GLSL IR's
ir_binop_bfm takes <bits> as src0 and <offset> as src1.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/nir/nir_opcodes.py