nir: Add 1-bit Boolean opcodes
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Oct 2018 15:40:20 +0000 (10:40 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Sun, 16 Dec 2018 21:03:02 +0000 (21:03 +0000)
commit191a1dce92803a99dae774b47264ff32da7b6689
tree10836b4e5f35eb837018ff75487b24cecfe9ce35
parent615cc26b97ad520b90a8d3b3f9bdaa49c78dfda5
nir: Add 1-bit Boolean opcodes

We also have to add support for 1-bit integers while we're here so we
get 1-bit variants of iand, ior, and inot.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_lower_alu_to_scalar.c
src/compiler/nir/nir_opcodes.py
src/compiler/nir/nir_search.c