From 11dc1307794e811aa8cfa5c9dace713d82db09ec Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 18 Oct 2018 12:04:09 -0500 Subject: nir: Add a bool to int32 lowering pass We also enable it in all of the NIR drivers. Reviewed-by: Eric Anholt Reviewed-by: Bas Nieuwenhuizen Tested-by: Bas Nieuwenhuizen --- src/intel/compiler/brw_nir.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/intel/compiler') diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 44a720c6506..594edde5413 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -822,6 +822,8 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, nir_print_shader(nir, stderr); } + OPT(nir_lower_bool_to_int32); + OPT(nir_convert_from_ssa, true); if (!is_scalar) { -- cgit v1.2.3