nir: add auxiliary functions to detect if a mode is enabled
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 1 Feb 2019 10:23:28 +0000 (11:23 +0100)
committerAndres Gomez <agomez@igalia.com>
Tue, 17 Sep 2019 20:39:18 +0000 (23:39 +0300)
commit45668a8be112878a2d34a6ba11684b0ff60df4ed
tree683710907b018e27e8c39b8fbabe5bd42a7d6e67
parent84781e1f1d8f68248bd39f817e4bc6dac3944320
nir: add auxiliary functions to detect if a mode is enabled

v2:
- Added more functions.

v3:
- Simplify most of the functions (Caio).

v4:
- Updated to renamed enum values (Andres).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com> [v2]
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> [v3]
src/compiler/nir/nir.h