diff options
author | Jason Ekstrand <[email protected]> | 2018-10-18 12:04:09 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-16 21:03:02 +0000 |
commit | 11dc1307794e811aa8cfa5c9dace713d82db09ec (patch) | |
tree | 88595d35198b3a5bc2e3c4e63c07cd68390281c6 /src/intel | |
parent | 191a1dce92803a99dae774b47264ff32da7b6689 (diff) |
nir: Add a bool to int32 lowering pass
We also enable it in all of the NIR drivers.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |